Spaces:
Running
on
Zero
Running
on
Zero
parokshsaxena
commited on
Commit
β’
1f56321
1
Parent(s):
3c43186
deploy
Browse files
app.py
CHANGED
@@ -129,6 +129,7 @@ POSE_HEIGHT = int(HEIGHT/4) #int(HEIGHT/2)
|
|
129 |
@spaces.GPU
|
130 |
def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed):
|
131 |
device = "cuda"
|
|
|
132 |
|
133 |
openpose_model.preprocessor.body_estimation.model.to(device)
|
134 |
pipe.to(device)
|
|
|
129 |
@spaces.GPU
|
130 |
def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed):
|
131 |
device = "cuda"
|
132 |
+
# device = 'cuda:0' if torch.cuda.is_available() else 'cpu'
|
133 |
|
134 |
openpose_model.preprocessor.body_estimation.model.to(device)
|
135 |
pipe.to(device)
|