Spaces:
Running on Zero
Running on Zero
Update run/gradio_ootd.py
Browse files19 unmodified lines20212223242526272841 unmodified lines70717273747519 unmodified linesparsing_model_hd = Parsing(0)ootd_model_hd = OOTDiffusionHD(0)openpose_model_dc = OpenPose(1)parsing_model_dc = Parsing(1)ootd_model_dc = OOTDiffusionDC(1)category_dict = ['upperbody', 'lowerbody', 'dress']41 unmodified linesreturn imagesdef process_dc(vton_img, garm_img, category, n_samples, n_steps, image_scale, seed):model_type = 'dc'if category == 'Upper-body':19 unmodified lines20212223242526272841 unmodified lines7071727374757619 unmodified linesparsing_model_hd = Parsing(0)ootd_model_hd = OOTDiffusionHD(0)openpose_model_dc = OpenPose(0)parsing_model_dc = Parsing(0)ootd_model_dc = OOTDiffusionDC(0)category_dict = ['upperbody', 'lowerbody', 'dress']41 unmodified linesreturn images@spaces.GPUdef process_dc(vton_img, garm_img, category, n_samples, n_steps, image_scale, seed):model_type = 'dc'if category == 'Upper-body':
run/gradio_ootd.py+4-3