[go: nahoru, domu]

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

Upgrade Fine_tuning_DetrForObjectDetection notebook to use PyTorch Lightning with MPS support #348

Open
plannaAlain opened this issue Aug 31, 2023 · 0 comments

Comments

@plannaAlain
Copy link

Since PyTorch Lightning 2.0.7 supports MPS, it would be helpful for all Mac users to have the notebook compatible with the latest version of Lighting.
trainer = Trainer(accelerator="mps", max_steps=20000, gradient_clip_val=0.1)
yields error:
ValueError: boxes1 must be in [x0, y0, x1, y1] (corner) format, but got tensor([], device='mps:0', size=(0, 4))

@plannaAlain plannaAlain changed the title Upgrade Fine_tuning_DetrForObjectDetection to use PyTorch Lightning with MPS support Upgrade Fine_tuning_DetrForObjectDetection notebook to use PyTorch Lightning with MPS support Aug 31, 2023
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