echoece commited on
Commit
e602c60
·
verified ·
1 Parent(s): b82629b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import torch
4
 
5
  # ⚠️ You can replace this with any try-on model, e.g. akhaliq/TryOnDiffusion
6
  model_id = "lllyasviel/TryOnDiffusion" # public
7
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16
8
  pipe = pipe.to("cuda" if torch.cuda.is_available() else "cpu")
9
 
10
  def try_on(person_img, cloth_img):
 
4
 
5
  # ⚠️ You can replace this with any try-on model, e.g. akhaliq/TryOnDiffusion
6
  model_id = "lllyasviel/TryOnDiffusion" # public
7
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
8
  pipe = pipe.to("cuda" if torch.cuda.is_available() else "cpu")
9
 
10
  def try_on(person_img, cloth_img):