How to run the demo on CPU? #1483
-
Hi, I'm trying to run this demo. But I got the following error message due to a lack of memory in GPU.
Since my GPU memory is limited (8GB), and CPU memory is plenty (128G). Is it possible to run this demo on CPU so that I can get rid of the memory issues? If so, how could I do it? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
oh, I figured it out: |
Beta Was this translation helpful? Give feedback.
-
Hi @LiuCMU, btw, we have upgraded the demo experience in branch dev-1.x, which is our develop branch. Any feedback are welcome! |
Beta Was this translation helpful? Give feedback.
-
Hey @zengyh1900 The documentation version is a little confusing for me. I followed the documentation to install MMEditing. It suggests the "latested" version in the bottom-left, which I thought is the 1.x version. But I ended up with A side note: I tried Anyway, thanks for the great job. MMEdit is an excellent project. |
Beta Was this translation helpful? Give feedback.
Hi @LiuCMU,
you can also try by running
CUDA_VISIBLE_DEVICES=-1 python demo/restoration_demo.py xxxxx
so that it can not detect GPU device and will run it on CPU.btw, we have upgraded the demo experience in branch dev-1.x, which is our develop branch.
In dev-1.x you can try the demo by API in notebook https://github.com/open-mmlab/mmediting/blob/dev-1.x/demo/mmediting_inference_tutorial.ipynb
or try it by CLI https://github.com/open-mmlab/mmediting/tree/dev-1.x/demo
Any feedback are welcome!