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

About test.py #9

Open
mast1ren opened this issue Apr 6, 2024 · 1 comment
Open

About test.py #9

mast1ren opened this issue Apr 6, 2024 · 1 comment

Comments

@mast1ren
Copy link

mast1ren commented Apr 6, 2024

Hi, thank you for your excellent work and your open-source code.
I have some questions I would like to ask, a regressor is used in test.py to evaluate different patches, and a pretrained weight is loaded before inference,

regressor = get_regressor(cfg)
regressor.to(device)
regressor.eval()
regressor.load_state_dict(torch.load('regressor_model/regressor.pth'))

how do I get the weight of the regressor, it seems that there is no such a path in this repo.
If it is possible to release the training method and pretrained weight for it?
Thank you!

@Lupenghang
Copy link

Hi, thank you for your excellent work and your open-source code. I have some questions I would like to ask, a regressor is used in test.py to evaluate different patches, and a pretrained weight is loaded before inference,

regressor = get_regressor(cfg)
regressor.to(device)
regressor.eval()
regressor.load_state_dict(torch.load('regressor_model/regressor.pth'))

how do I get the weight of the regressor, it seems that there is no such a path in this repo. If it is possible to release the training method and pretrained weight for it? Thank you!

Can I have your contact information?

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