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

Add preload models step #150

Merged
merged 3 commits into from
Sep 26, 2022
Merged

Add preload models step #150

merged 3 commits into from
Sep 26, 2022

Conversation

carson-katri
Copy link
Owner

This is run every time the GeneratorProcess is started, so you don't need to do more than one thing in the preferences window. I also did not use the preload_models.py script from InvokeAI for more control over how it works.

@carson-katri
Copy link
Owner Author

The progress is now shown for each model download:

Screen Shot 2022-09-26 at 7 09 08 PM

@carson-katri carson-katri merged commit cfc5a14 into main Sep 26, 2022
@carson-katri carson-katri deleted the preload_models branch September 26, 2022 23:15
@carson-katri
Copy link
Owner Author

carson-katri commented Sep 27, 2022

@NullSenseStudio @blastframe
There was a bug in this PR, but this one seems to be ok: https://github.com/carson-katri/dream-textures/actions/runs/3132180840
Can someone else give this a try before I release?

(lmk if you don’t want me to ping you btw, sorry!)

@blastframe
Copy link
Contributor

@carson-katri I'm happy to help if I can. Downloading now.

@carson-katri
Copy link
Owner Author

@blastframe Thanks! if you can, delete the huggingface caches in %HOMEPATH%\.cache before generating your first image.

@NullSenseStudio
Copy link
Collaborator

I can test too, but won't be until tomorrow if you're okay with waiting.

@NullSenseStudio
Copy link
Collaborator

Worked perfectly for me. Also deleted torch within .cache to make sure the checkpoint_liberty_with_aug.pth file there would download too.

@NullSenseStudio
Copy link
Collaborator

Is there any reason why the artifact is nested within a second .zip?

@carson-katri
Copy link
Owner Author

The upload-artifact action creates a zip even if you pass it a zip to upload. And I need to compress it first or it compresses the directory bizarrely. I think it was trying to compress each file in the directory as its own artifact when I didn’t compress it first.

JasonHoku pushed a commit to JasonHoku/dream-textures that referenced this pull request Dec 20, 2022
* Add preload models step to generator_process main

* Only run preload_models if models are detected as missing

* Show progress in info
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

Successfully merging this pull request may close these issues.

3 participants