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 generate.py bug for loading trained model #8

Open
YYZ1021 opened this issue Apr 14, 2023 · 1 comment
Open

A generate.py bug for loading trained model #8

YYZ1021 opened this issue Apr 14, 2023 · 1 comment

Comments

@YYZ1021
Copy link

YYZ1021 commented Apr 14, 2023

Hi,

When I generate images by using my model, I found it will output nothing.

I have debugded the code and I found that you didn't pass the option 'network' into the 'main' function.

def main(ckpt, end_ckpt, outdir, subdirs, seeds, class_idx, max_batch_size, save_images, pfgmpp, aug_dim, edm, use_pickle, device=torch.device('cuda'), **sampler_kwargs):

And the 'main' function will search the model checkpoint in the 'outdir' path.
stats = glob.glob(os.path.join(outdir, "training-state-*.pkl"))

Now I put the model checkpoint into the 'outdir' folder, and it works.

However, it may be confused. Please check it, thank you.

@Newbeeer
Copy link
Owner

Thanks for spotting this. I will add this feature tomorrow.

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