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 #22

Open
ss880426 opened this issue Jun 10, 2022 · 4 comments
Open

test #22

ss880426 opened this issue Jun 10, 2022 · 4 comments

Comments

@ss880426
Copy link

ss880426 commented Jun 10, 2022

How can I use the pretrained model to test?
I use
model = Trainer(gpu_ids, mode, pretrained_path)
model.load(pretrained_path)
but error
'NoneType' object has no attribute 'forward'

thanks

@ss880426
Copy link
Author

solved it
thanks!

@Priscilla2401
Copy link

Excuse me!
I have the same question, How did you solve it?

@Priscilla2401
Copy link

I want to use the pretrained model to test?
but I don't know how to do it

@ss880426
Copy link
Author

is work for me

model = Trainer(gpu_ids, mode, pretrained_path)
model.load(ckpt_model)
model.model.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

2 participants