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

test on CPU #45

Open
tommywu1001 opened this issue Dec 27, 2024 · 2 comments
Open

test on CPU #45

tommywu1001 opened this issue Dec 27, 2024 · 2 comments

Comments

@tommywu1001
Copy link

Thanks to the author for the open source code! how to use the CPU for testing?

@songtianhui
Copy link
Collaborator

You can just find the code for setting the model's device

self.network = network.cuda()
and change it to cpu. And some codes for data processing
img_tensor = torch.tensor(img_arr).cuda().float().permute((2,0,1)).unsqueeze(dim=0)
.

@tommywu1001
Copy link
Author

tommywu1001 commented Jan 2, 2025 via email

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