feishen29 commited on
Commit
9fa8b06
1 Parent(s): 860c438

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,4 @@
1
  import sys
2
-
3
- sys.path.append('./')
4
  from PIL import Image
5
  import gradio as gr
6
  import numpy as np
@@ -76,6 +74,8 @@ if not os.path.exists(output_path):
76
  device = "cuda" if torch.cuda.is_available() else "cpu"
77
  args.device = device
78
 
 
 
79
  generator = torch.Generator(device=args.device).manual_seed(42)
80
  vae = AutoencoderKL.from_pretrained(args.pretrained_vae_model_path).to(dtype=torch.float16, device=args.device)
81
  tokenizer = CLIPTokenizer.from_pretrained(args.pretrained_model_name_or_path, subfolder="tokenizer")
 
1
  import sys
 
 
2
  from PIL import Image
3
  import gradio as gr
4
  import numpy as np
 
74
  device = "cuda" if torch.cuda.is_available() else "cpu"
75
  args.device = device
76
 
77
+ base_path = 'feishen29/IMAGDressing-v1'
78
+
79
  generator = torch.Generator(device=args.device).manual_seed(42)
80
  vae = AutoencoderKL.from_pretrained(args.pretrained_vae_model_path).to(dtype=torch.float16, device=args.device)
81
  tokenizer = CLIPTokenizer.from_pretrained(args.pretrained_model_name_or_path, subfolder="tokenizer")