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

recognition/__init__.py from 'cuda' to device parameter #46

Open
jeffatllatos opened this issue Jan 18, 2024 · 0 comments
Open

recognition/__init__.py from 'cuda' to device parameter #46

jeffatllatos opened this issue Jan 18, 2024 · 0 comments

Comments

@jeffatllatos
Copy link

Can you change this line only so we can use CPU or GPU.

FROM:
model = Backbone(num_layers=50, drop_ratio=0.6, mode='ir_se').to('cuda').eval()

TO:
model = Backbone(num_layers=50, drop_ratio=0.6, mode='ir_se').to(device).eval()

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