Coder Social home page Coder Social logo

Comments (16)

JSEHV avatar JSEHV commented on August 25, 2024

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.

Tranvick avatar Tranvick commented on August 25, 2024

@js1982
How did you make DemoGlobalHistogramTransfer.ipynb work?
Have you fixed #1 somehow?

from interactive-deep-colorization.

JSEHV avatar JSEHV commented on August 25, 2024

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.

richzhang avatar richzhang commented on August 25, 2024

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.

blshkv avatar blshkv commented on August 25, 2024

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.

richzhang avatar richzhang commented on August 25, 2024

I'm not sure, but perhaps you can try to find how to do multi-threading with caffe?

from interactive-deep-colorization.

blshkv avatar blshkv commented on August 25, 2024

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.

mrlzc avatar mrlzc commented on August 25, 2024

@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.

blshkv avatar blshkv commented on August 25, 2024

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.

junyanz avatar junyanz commented on August 25, 2024

@mrlzc Did you compile the Caffe with the python layer support? See this post for more details.

from interactive-deep-colorization.

leoamr avatar leoamr commented on August 25, 2024

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.

mrlzc avatar mrlzc commented on August 25, 2024

@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.

leoamr avatar leoamr commented on August 25, 2024

@mrlzc increasing the memory solved the problem for me too, thank you very much.

from interactive-deep-colorization.

blshkv avatar blshkv commented on August 25, 2024

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.

junyanz avatar junyanz commented on August 25, 2024

@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.

captkkk avatar captkkk commented on August 25, 2024

OK, sorry for the trouble caused.

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.