Commit
Β·
747dadf
1
Parent(s):
0945694
update
Browse files
app.py
CHANGED
|
@@ -41,7 +41,6 @@ class FitDiTGenerator:
|
|
| 41 |
self.dwprocessor = DWposeDetector(model_root=model_root, device=device)
|
| 42 |
self.parsing_model = Parsing(model_root=model_root, device=device)
|
| 43 |
|
| 44 |
-
@spaces.GPU
|
| 45 |
def generate_mask(self, vton_img, category, offset_top, offset_bottom, offset_left, offset_right):
|
| 46 |
with torch.inference_mode():
|
| 47 |
vton_img = Image.open(vton_img)
|
|
@@ -306,4 +305,4 @@ if __name__ == "__main__":
|
|
| 306 |
parser.add_argument("--fp16", action="store_true", help="Load model with fp16, default is bf16")
|
| 307 |
args = parser.parse_args()
|
| 308 |
demo = create_demo(repo_path, args.device, args.fp16)
|
| 309 |
-
demo.launch(
|
|
|
|
| 41 |
self.dwprocessor = DWposeDetector(model_root=model_root, device=device)
|
| 42 |
self.parsing_model = Parsing(model_root=model_root, device=device)
|
| 43 |
|
|
|
|
| 44 |
def generate_mask(self, vton_img, category, offset_top, offset_bottom, offset_left, offset_right):
|
| 45 |
with torch.inference_mode():
|
| 46 |
vton_img = Image.open(vton_img)
|
|
|
|
| 305 |
parser.add_argument("--fp16", action="store_true", help="Load model with fp16, default is bf16")
|
| 306 |
args = parser.parse_args()
|
| 307 |
demo = create_demo(repo_path, args.device, args.fp16)
|
| 308 |
+
demo.launch()
|