Skip to content

Use replicate-weights #92

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Use replicate-weights #92

wants to merge 5 commits into from

Conversation

chigozienri
Copy link

Use replicate-weights

@chigozienri chigozienri requested a review from a team December 3, 2023 21:50
print("Loading pipeline...")
WeightsDownloader.download_if_not_exists(SAFETY_URL, SAFETY_CACHE)
safety_checker = StableDiffusionSafetyChecker.from_pretrained(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably include a revision, same as https://github.com/replicate/cog-deepfloyd-if/pull/2

safety_checker = StableDiffusionSafetyChecker.from_pretrained(
SAFETY_MODEL_ID,
cache_dir=MODEL_CACHE,
local_files_only=True,
)

WeightsDownloader.download_if_not_exists(SD_URL, SD_MODEL_CACHE)
self.pipe = StableDiffusionPipeline.from_pretrained(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably include a revision

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.

2 participants