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

Remove duplicate code for downloading SD15_WEIGHTS #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marckohlbrugge
Copy link

@marckohlbrugge marckohlbrugge commented Aug 6, 2023

I'm new to Cog and Python, so I could be wrong. But it seems like the download script is trying to download the SD15 weights twice.

Since it's cached, it doesn't impact performance. But it seems redundant.

p = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, cache_dir=TMP_CACHE
)
p.save_pretrained(SD15_WEIGHTS)

pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, cache_dir=TMP_CACHE)
pipe.save_pretrained(SD15_WEIGHTS)

@marckohlbrugge marckohlbrugge changed the title Remove duplicate code for downloading S15_WEIGHTS Remove duplicate code for downloading SD15_WEIGHTS Aug 6, 2023
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.

1 participant