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

Argument parser does not recognise mps #1182

Open
rociorey opened this issue Aug 16, 2023 · 1 comment
Open

Argument parser does not recognise mps #1182

rociorey opened this issue Aug 16, 2023 · 1 comment

Comments

@rociorey
Copy link

rociorey commented Aug 16, 2023

Your issue may already be reported!
Please search on the issue tracker before creating one.

Context

I am running

python neural_style/neural_style.py train --dataset "path" --style-image "image-path" --save-model-dir "path"
 --epochs 2 --cuda 1
  • Pytorch version: 2.0.1 with CUDA 11.8
  • Operating System and version: Windows 11 Pro

Your Environment

  • Installed using source? [yes/no]:
  • Are you planning to deploy it using docker container? [yes/no]: yes
  • Is it a CPU or GPU environment?: GPU
  • Which example are you using: fast-neural-style

Current Behavior

I get the error AttributeError: 'Namespace' object has no attribute 'mps'

I have tried to set the gpu id to 0 as referenced in issue number 1134, still not working.

@msaroufim
Copy link
Member

Hmm I think this was a recent regression #1064

Could you try commenting out the mps specific bits from the code and see if that solves the problem?

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

2 participants