Code Monkey home page Code Monkey logo

Comments (1)

jantic avatar jantic commented on June 19, 2024

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.

pytorch/pytorch#9873

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)

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.