Spaces:
Build error
Build error
Update run/gradio_ootd.py
Browse files14 unmodified lines151617181920212223247 unmodified lines3233343536373839404142434414 unmodified linesfrom ootd.inference_ootd_hd import OOTDiffusionHDfrom ootd.inference_ootd_dc import OOTDiffusionDCfrom huggingface_hub import hf_hub_downloadhf_hub_download(repo_id="levihsu/OOTDiffusion", filename="checkpoints", local_dir="./")openpose_model_hd = OpenPose(0)parsing_model_hd = Parsing(0)7 unmodified linescategory_dict = ['upperbody', 'lowerbody', 'dress']category_dict_utils = ['upper_body', 'lower_body', 'dresses']example_path = os.path.join(os.path.dirname(__file__), 'examples')model_hd = os.path.join(example_path, 'model/model_1.png')garment_hd = os.path.join(example_path, 'garment/03244_00.jpg')model_dc = os.path.join(example_path, 'model/model_8.png')garment_dc = os.path.join(example_path, 'garment/048554_1.jpg')def process_hd(vton_img, garm_img, n_samples, n_steps, image_scale, seed):model_type = 'hd'category = 0 # 0:upperbody; 1:lowerbody; 2:dress14 unmodified lines1516171819207 unmodified lines2829303132333435363738394014 unmodified linesfrom ootd.inference_ootd_hd import OOTDiffusionHDfrom ootd.inference_ootd_dc import OOTDiffusionDCopenpose_model_hd = OpenPose(0)parsing_model_hd = Parsing(0)7 unmodified linescategory_dict = ['upperbody', 'lowerbody', 'dress']category_dict_utils = ['upper_body', 'lower_body', 'dresses']example_path = os.path.join(os.path.dirname(__file__), 'examples')model_hd = os.path.join(example_path, 'model/model_1.png')garment_hd = os.path.join(example_path, 'garment/03244_00.jpg')model_dc = os.path.join(example_path, 'model/model_8.png')garment_dc = os.path.join(example_path, 'garment/048554_1.jpg')+@spaces.GPUdef process_hd(vton_img, garm_img, n_samples, n_steps, image_scale, seed):model_type = 'hd'category = 0 # 0:upperbody; 1:lowerbody; 2:dress
run/gradio_ootd.py+1-5