Comments (9)
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.
Are you able to run standard caffe test (make runtest
)? @richzhang
from interactive-deep-colorization.
Did you add the ./caffe_files to your PYTHONPATH?
from interactive-deep-colorization.
I did, but it doesn`t work. Now i have solve my problem by install the lastest caffe. Thank you!
from interactive-deep-colorization.
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.
@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.
@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.
407, 408, 409 from data/colorize_image.py
@kaustubholpadkar were you referring to a different commit than the latest master
?
from interactive-deep-colorization.
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)
- Local hints render area too small HOT 4
- gpu [GPU_ID]??? Interactive Deep Colorization windows 10 64-bit HOT 12
- OSError Preventing Deepcolor Function? HOT 7
- img_pred = cid.net_forward(input_ab,input_mask) Colab crashes while prediction in Global Demo file HOT 2
- SystemError: <Boost.Python.function object at 0x17369c0> returned NULL without setting an error HOT 1
- Trouble installing PyQt4 on windows 10 using Anaconda HOT 1
- Retain the Original Colors
- Windows 7 GUI not starting HOT 2
- RuntimeError: Error(s) in loading state_dict for SIGGRAPHGenerator
- Wrong color value in put_point function
- Just a note if pip install pytorch torchvision doesn't work
- error: "name 'unicode' is not defined" HOT 1
- On Windows 10 with pytorch, it will only use the CPU despite saying it's using the GPU HOT 1
- Failed to load module "appmenu-gtk-module" HOT 1
- What is a,b value for black color. HOT 3
- The QT5 version expects qt4 libraries. it is impossible for a lay person like me to get QT4 on Modern Linux distros HOT 2
- can you make it even harder to setup enviroment ? HOT 1
- Question about training and demo
- Question about the paper
- Model URL no longer working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interactive-deep-colorization.