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

a bug in demo.py #31

Open
VillardX opened this issue Oct 30, 2024 · 1 comment
Open

a bug in demo.py #31

VillardX opened this issue Oct 30, 2024 · 1 comment

Comments

@VillardX
Copy link

when running demo.py on other cuda device instead of "cuda:0" , the following line will still use "cuda:0" memory,

model.load_state_dict(torch.load(args.ckpt_path)['model'])

I replace it as

model.load_state_dict(torch.load(args.ckpt_path, map_location=args.device)['model'])

@HengyiWang
Copy link
Owner

Thanks @VillardX, will update the code:)

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