Comments (1)
Soo...I tried this before as well, namely because i wanted to see if I could run bigger images (more memory with CPU of course).
The way to really force CPU is putting this up top in the notebook before the pytorch related imports:
import os
os.environ['CUDA_VISIBLE_DEVICES'] = ''
When I tried that myself, it seemed to have done the trick, but then the processing was super slow and I just abandoned the effort in the meantime. The reason why I abandoned it was because I looked up the CPU performance issue and the man himself (Soumith Chintala) said this:
@Zhangchenkai you will see great improvement if you build from source from these instructions: https://github.com/pytorch/pytorch#from-source
The instructions will build and link with mkl-dnn and that will show you remarkable improvements to what you see.
I think that's probably the issue I saw. I didn't go ahead and build from source because it wasn't pressing and I'm a bit lazy. You could try it...I just don't know for certain if that's actually the issue.
Please, if you're so inclined and do try it out, please let me know! We can put it in the readme then because that'll probably be helpful to a lot of people.
from deoldify.
Related Issues (20)
- Having trouble trying to colorize and save a single image.. HOT 8
- trying to run this as an extension in stable diffusion extension is not working HOT 1
- Can you help fix a bug in AnimeColorDeOldify? HOT 1
- Can you create a model for coloring anime (art, sketch, manga horizontal and vertical)? HOT 1
- How to stablize the colors between frames of a video? HOT 3
- simple command line interface? HOT 1
- dataset distribute HOT 2
- Some problems occurred during the training HOT 1
- video building only works for mp4s HOT 3
- Dependencies in `requirements.txt` have module conflicts. HOT 4
- I develop a deoldify plugin for stable-diffusion-webui,can you add to readme? HOT 2
- Everything fails HOT 4
- How to adjust bach during inference? HOT 2
- The weight link (https://www.dropbox.com/s/7r2wu0af6okv280/colorize_gen_192.h5) in dana-kelley repository is broken, would you please share again? HOT 3
- How to output result without show image HOT 1
- TypeError: 'NoneType' object is not subscriptable HOT 2
- unable to run HOT 1
- Any known update for MyHeritage edition? HOT 1
- Get error when Create black and white training images HOT 1
- RuntimeError: Given input size: (512x1x1). Calculated output size: (512x0x0). Output size is too small HOT 2
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 deoldify.