Skip to content

How to run the demo on CPU? #1483

Answered by zengyh1900
LiuCMU asked this question in How-to
Nov 29, 2022 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

python demo/restoration_demo.py

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!

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LiuCMU
Comment options

You must be logged in to vote
2 replies
@zengyh1900
Comment options

@LiuCMU
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How-to
Labels
None yet
2 participants