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

the load_checkpoints func is confused #35

Open
gyula-coder opened this issue Jul 11, 2024 · 3 comments
Open

the load_checkpoints func is confused #35

gyula-coder opened this issue Jul 11, 2024 · 3 comments

Comments

@gyula-coder
Copy link

gyula-coder commented Jul 11, 2024

initially, the load_checkpoints is imported at the line 20 of generate_objautoencoder by from utils import yield_forever, load_checkpoints, save_checkpoints but there is no load_checkpoints. After I change the utils to training_utils, the load_checkpoints is imported correctly.

But when I run the generate_objautoencoder.py, the check of optimizer's path, opt_path, before model.load_state_dict in load_checkpoints will failed and result early return. So autoencoder's parameter is still initial !

@tangjiapeng
Copy link
Owner

Hi have you debugged this issu ? If not yet, can you provide some error information ?

@gyula-coder
Copy link
Author

yes, I modified the load_checkpoints and let it to only load the autoencoder's checkpoint. It works.
I find there are lot of mismatch betweeen code and path, which makes running code is hard when preprocessing the data.
What‘s more, the preprocessed data is unavailable because of it's predefine path added when preprocessing, which is used when retrive_objfeats is True.

At last, I change lots of path to make the generate_diffusion.py running.

@tangjiapeng
Copy link
Owner

yes, you always need to change the paths.

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