Coder Social home page Coder Social logo

Comments (9)

cccusername avatar cccusername commented on August 25, 2024

I rebuild the caffe,but new error appear as fellow:

**_ColorizeImageCaffe instantiated
gpu_id = 0, net_path = ./models/global_model/deploy_nodist.prototxt, model_path = ./models/global_model/global_model.caffemodel

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
ImportError: No module named caffe_traininglayers

---------------------------------------------------------------------------
SystemError                               Traceback (most recent call last)
<ipython-input-29-29cd1cf45678> in <module>()
      4 # Colorization network
      5 cid = CI.ColorizeImageCaffeGlobDist(Xd)
----> 6 cid.prep_net(gpu_id,prototxt_path='./models/global_model/deploy_nodist.prototxt',            caffemodel_path='./models/global_model/global_model.caffemodel')
      7 
      8 # Global distribution network - extracts global color statistics from an image

/home/choi/HandsomeCHAN/interactive-deep-colorization-master/data/colorize_image.py in prep_net(self, gpu_id, prototxt_path, caffemodel_path)
    233         if gpu_id == -1:
    234             caffe.set_mode_cpu()
--> 235         else:
    236             caffe.set_device(gpu_id)
    237             caffe.set_mode_gpu()

SystemError: NULL result without error in PyObject_Call_**

I will very appreciate that if you can tell me how to fix this error,thank you!

from interactive-deep-colorization.

junyanz avatar junyanz commented on August 25, 2024

Are you able to run standard caffe test (make runtest)? @richzhang

from interactive-deep-colorization.

richzhang avatar richzhang commented on August 25, 2024

Did you add the ./caffe_files to your PYTHONPATH?

from interactive-deep-colorization.

cccusername avatar cccusername commented on August 25, 2024

I did, but it doesn`t work. Now i have solve my problem by install the lastest caffe. Thank you!

from interactive-deep-colorization.

kaustubholpadkar avatar kaustubholpadkar commented on August 25, 2024

I rebuild the caffe,but new error appear as fellow:

**_ColorizeImageCaffe instantiated
gpu_id = 0, net_path = ./models/global_model/deploy_nodist.prototxt, model_path = ./models/global_model/global_model.caffemodel

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
ImportError: No module named caffe_traininglayers

---------------------------------------------------------------------------
SystemError                               Traceback (most recent call last)
<ipython-input-29-29cd1cf45678> in <module>()
      4 # Colorization network
      5 cid = CI.ColorizeImageCaffeGlobDist(Xd)
----> 6 cid.prep_net(gpu_id,prototxt_path='./models/global_model/deploy_nodist.prototxt',            caffemodel_path='./models/global_model/global_model.caffemodel')
      7 
      8 # Global distribution network - extracts global color statistics from an image

/home/choi/HandsomeCHAN/interactive-deep-colorization-master/data/colorize_image.py in prep_net(self, gpu_id, prototxt_path, caffemodel_path)
    233         if gpu_id == -1:
    234             caffe.set_mode_cpu()
--> 235         else:
    236             caffe.set_device(gpu_id)
    237             caffe.set_mode_gpu()

SystemError: NULL result without error in PyObject_Call_**

I will very appreciate that if you can tell me how to fix this error,thank you!

I am facing the same issue even with latest caffe version. Can you suggest any solution?

from interactive-deep-colorization.

cccusername avatar cccusername commented on August 25, 2024

@kaustubholpadkar My caffe version is 1.0.0, maybe you could try it.If it still does`t work, you could try this work of the pytorch version. https://github.com/richzhang/colorization-pytorch

from interactive-deep-colorization.

kaustubholpadkar avatar kaustubholpadkar commented on August 25, 2024

@cccusername I am using the same caffe version. I want to do Global Histogram Style Transfer and I could not find PyTorch repo has that support right now.
I made my code work by commenting out lines 407, 408, 409 from data/colorize_image.py

from interactive-deep-colorization.

Benitoite avatar Benitoite commented on August 25, 2024

407, 408, 409 from data/colorize_image.py

@kaustubholpadkar were you referring to a different commit than the latest master?

from interactive-deep-colorization.

kaustubholpadkar avatar kaustubholpadkar commented on August 25, 2024

407, 408, 409 from data/colorize_image.py

@kaustubholpadkar were you referring to a different commit than the latest master?

Nope. I am using the latest master only.

from interactive-deep-colorization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.