-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please guide install step by step #10
Comments
you have to be more clear -- what did you do? what interactive zip? did you follow the instructions on the caffe website? |
Hi sg-s, |
it's fine if you're not a coder -- but please be clear about what you did, and what error you got, otherwise no one can help you effectively. |
@sg-s, I'm not the person who opened this but there are multiple requests for a proper install guide/pre-configed VM/issues with requirements. #14 #3 #7 and #6 and they have not been answered. There are a large number of dependencies for this project (the short list in the readme is extended when you include the requirements for Caffe and OpenCV) and those requirements are poorly stated in the readme. For one, there is an incomplete prerequisites sections AND a requirements section; However, the real problem is Caffe which has a real mess of an installation guide. Instead of "Install Caffe and Python libraries (OpenCV)" in the getting started section it would be nice if someone who has successfully installed all of the prereqs from scratch would list out the whole process:
Literal step by step instructions where someone starting without Python or any of the other dependencies could be up without needing anything but the readme. Not just "install Caffe" but "Install Caffe following these steps: 1,2,3,4,5." It's also not clear how to switch to CPU mode and other config type things. Granted it's complicated due to the different package managers and Linux versions but I think a Ubuntu install guide would be a safe choice to cover most people. |
In case it helps someone here is what i did to get it running on debian stretch with python 3 (debians repository only has the caffe python module for python3). Install caffeMake sure that your /etc/apt/sources.list contains contrib and non-free sections if you want to install the CUDA version, for instance:
Install PyQt and sklearn
In case you don't have git, pip3 or wget already installed:
Install qdarkstyle package
Install Opencv
Download and start ideepcolor
Start ideepcolor.py for CPU usage If you are running the caffe-cuda version and see an error complaining about If you see an out of memory error like this: |
sidorencu@sidorencu-K52F:~/ideepcolor/interactive-deep-colorization$ python3 ideepcolor.py |
Something else seem to have installed skimage in my container. Updated post above |
sidorencu@sidorencu-K52F: |
I've set up a docker with ideepcolor, building on https://github.com/floydhub/dl-docker, maybe that will be helpful for some of you. GUI version docker run -ti --rm \ only works if you've done xhost +local:root before I've kind of tested this, but it's terribly slow and basically unusable on my laptop, so I cannot guarantee that everything works the way it should. Notebook docker run -it -p 8888:8888 -p 6006:6006 swallner/ideepcolor jupyter notebook access the notebook using your browser at http://localhost:8888 Based on @SleepProgger 's instructions, I've also built a Docker container which runs ideepcolor on Debian Stretch. You can run the GUI version with the following command: docker run -ti --rm -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix swallner/ideepcolor_debian /bin/sh -c 'cd ideepcolor/interactive-deep-colorization; python3 ideepcolor.py --cpu_mode' With this, I unfortunately see this issue: #2 |
Thank @SleepProgger for providing the installation guidelines. I updated the installation with more details. Let me know if I missed something. |
@SleepProgger that is a nice step by step guide for Ubuntu. How about the same for OSX? I am stuck on this error: MBP:ideepcolor2 vb$ python ideepcolor.py --cpu_mode I have run 'pip install --user scikit-image' successfully and still getting this error. |
@vbisbest Are you sure you installed the 'scikit-image' for the correct python version (python 3 in the case of my "tutorial") ? |
@SleepProgger I did get it installed and it fixed that issue. Now I am stuck on another one, I opened a new issue for that. |
@sabrinawallner I sort of have the docker image running on OSX. I am not getting a GUI though. The last few lines of output I get are: Setting ab cluster centers in layer: pred_ab And thats it. Is there supposed to be a GUI? Did a file get output somewhere? Thanks for your help. EDIT: I found the issue. I need to give docker 8GB ram and the GUI pops up. Now the issue is nothing happens when the cup is loaded. Clicking on colors puts a point on the "Drawing Pad" but the "Result" stays gray. Not sure what the issue is here. |
That is some serious hardware required... has anyone tried Quardro cards? |
I'm getting this error when I click on one of the Suggested Colors: Traceback (most recent call last): The color selection doesn't work and only gives an error. All the other functions work. |
Which color did you try to select? could you have a screenshot of UI? |
I cannot reproduce your bug. The current system works for me. My python is python 2.7. I added a debugging line that might help you find the issue. |
For anyone it may help in the future: Arch linux 64bits, python 3, nvidia card. Some dependencies may be missing if I already had them installed Install dependenciesFrom official repo's:
From AUR:Install python-scikit-image python-qdarkstyle pyqt4 Download ideepcolor
Fetch modelsexecute in main git directory, requires wget Fix errorWas needed in my case, may not be needed in yours. Solution found in #40 Start script
Tipyou can use |
In addition to the above. Note that I have not found it to be much better than without. Possibly the same is already included in the original. Instructions for training your own are on the colorization-pytorch page Training for pytorchInstall from Aurpython-torchvision-git Install training script
Install python dependencies
Download pretrained model
Execute main script with downloaded model(in install dir from main script see above post) |
Hi and thank you for your help. I've tried your method on my Debian Stretch VM. The installation went seemingly well. However when trying to start ideepcolor.py I get a lot of output to the terminal, but no GUI:
|
Hello @SleepProgger , first of all, thanks for the detailed step-by-step. |
Hi - below is a working environment.yml for the GUI, installed on Xubuntu 18.04 with miniconda.
|
I was able to install this on Windows with Python 3.6. I updated the repository in this forked version. |
Technology based on this is also now in Photoshop Elements 2020 |
I download Caffe and Interactive zip ..
But i can't run them?
i use mac os please guide step by step
Thanks
The text was updated successfully, but these errors were encountered: