Skip to content

Commit

Permalink
Revert "switch back to full model"
Browse files Browse the repository at this point in the history
This reverts commit 4dccac5.
  • Loading branch information
gadicc committed Sep 12, 2022
1 parent 4dccac5 commit bbae240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ def init():

model = StableDiffusionPipeline.from_pretrained(
"CompVis/stable-diffusion-v1-4",
# revision="fp16",
# torch_dtype=torch.float16,
scheduler=lms,
use_auth_token=HF_AUTH_TOKEN
).to("cuda")
revision="fp16",
torch_dtype=torch.float16,
scheduler=lms, use_auth_token=HF_AUTH_TOKEN).to("cuda")

# Inference is ran for every server call
# Reference your preloaded global model variable here.
Expand Down
4 changes: 2 additions & 2 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def download_model():

model = StableDiffusionPipeline.from_pretrained(
"CompVis/stable-diffusion-v1-4",
#revision="fp16",
#torch_dtype=torch.float16,
revision="fp16",
torch_dtype=torch.float16,
scheduler=lms,
use_auth_token=HF_AUTH_TOKEN
)
Expand Down

0 comments on commit bbae240

Please sign in to comment.