Commit ยท
bb81bd9
1
Parent(s): 5893dca
Move @spaces.GPU to start_tryon_wrapper for ZeroGPU detection
Browse files129 unmodified lines130131132133133134135112 unmodified lines248249250251252253254129 unmodified lines)pipe.unet_encoder = UNet_Encoder
@spaces.GPUdef start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed): device = "cuda" 112 unmodified lines else: return images[0], mask_gray
@spaces.GPUdef start_tryon_wrapper(dict, garm_img, garment_des, is_checked, is_checked_crop, denoise_steps, seed, state=None, request: gr.Request = None, view_name="front", filename_holder=None): # Call the GPU function result_img, mask_img = start_tryon(dict, garm_img, garment_des, is_checked, is_checked_crop, denoise_steps, seed)app.py+1-1