Skip to content
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

Use CPU to run test.py command get error #101

Open
Chen0729 opened this issue Jan 23, 2021 · 0 comments
Open

Use CPU to run test.py command get error #101

Chen0729 opened this issue Jan 23, 2021 · 0 comments

Comments

@Chen0729
Copy link

Hi,

I am trying to run test.py command on CPU so I modified gpu_ids to be 0 with the pre-trained models. I get the following errors:
Traceback (most recent call last):
File "test.py", line 18, in
model = create_model(opt)
File "C:\poseGAN\poseTransfer\Pose-Transfer-master\Pose-Transfer-master\models\models.py", line 13, in create_model
model.initialize(opt)
File "C:\poseGAN\poseTransfer\Pose-Transfer-master\Pose-Transfer-master\models\PATN.py", line 29, in initialize
self.input_P1_set = self.Tensor(nb, opt.P_input_nc, size, size)
File "C:\Users\anaconda3\lib\site-packages\torch\cuda_init_.py", line 172, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system.

May I ask if the software can be run on CPU for the testing phase please ? If yes, how to modify it to make it run on CPU.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant