Comments (16)
If you change in data/colorize_image.py under def prep_net...
caffe.set_device(gpu_id)
caffe.set_mode_gpu()
to
# caffe.set_device(gpu_id)
# caffe.set_mode_gpu()
caffe.set_mode_cpu()
it will work in CPU only mode (at least for the supplied Python Notebook demos DemoGlobalHistogramTransfer.ipynb & DemoInteractiveColorization.ipynb)
from interactive-deep-colorization.
@js1982
How did you make DemoGlobalHistogramTransfer.ipynb work?
Have you fixed #1 somehow?
from interactive-deep-colorization.
No issue at all you have. Installed it following these 2 guidelines on Ubuntu:
OpenCV 3.2.0
http://withr.me/install-opencv-on-ubuntu-16/
Caffe
http://caffe.berkeleyvision.org/installation.html
It's running on OpenBLAS and with CPU only mode
Regarding SciKit as mentioned in your other thread:
pip install scikit-image
Worked out of the 'box'
from interactive-deep-colorization.
I added a --cpu_mode flag. It is rather slow in cpu mode, so you'll have to be patient when interacting with the GUI!
from interactive-deep-colorization.
Ok, thanks. It works, but it is really slow. It is much slower than I could imanage actually.
It uses 1 cpu only (not threaded?) and it takes 4.30 min just to load the GUI interface and 1.40 min for each and every click (regardless of the operation).
Is anything can be optimised here which would benefit GPU users as well?
from interactive-deep-colorization.
I'm not sure, but perhaps you can try to find how to do multi-threading with caffe?
from interactive-deep-colorization.
It looks like that I have to use OpenBLAS and no further code change is required. I'll look into it.
Thank you for the great work!
from interactive-deep-colorization.
@blshkv
I like you use the cpu mode, but I follow this method to run the program directly down, do you have to meet this error?The error message is:
I0526 15:59:48.609108 5621 net.cpp:744] Ignoring source layer loss_log
Setting ab cluster centers in layer: pred_ab
Setting upsampling layer kernel: pred_313_us
test_imgs/mortar_pestle.jpg
scale = 2.000000
Has been killed
from interactive-deep-colorization.
sorry, no idea. I suggest to open a separate bug report, provide crash core, strace, system logs or anything else which could be useful to trace the problem.
from interactive-deep-colorization.
@mrlzc Did you compile the Caffe with the python layer support? See this post for more details.
from interactive-deep-colorization.
I have the same issue:
I0526 15:59:48.609108 5621 net.cpp:744] Ignoring source layer loss_log
Setting ab cluster centers in layer: pred_ab
Setting upsampling layer kernel: pred_313_us
test_imgs/mortar_pestle.jpg
scale = 2.000000
Has been killed
I re-compiled the Caffe with the python layer support, same error.
from interactive-deep-colorization.
@leoamr I have solved this problem,I use the ubuntu virtual machine, I changed the memory from 4G to 8G, to solve this problem,you can try it...good luck!
from interactive-deep-colorization.
@mrlzc increasing the memory solved the problem for me too, thank you very much.
from interactive-deep-colorization.
Guys, your problem is NOT related to this bug. This bug is fixed. Please stop flooding it with your logs and open a new one.
from interactive-deep-colorization.
@captkkk You probably should start a separate Github issue next time. For your question, you can remove .encode('utf-8'). See this post for more details.
from interactive-deep-colorization.
OK, sorry for the trouble caused.
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.