Spaces:
Runtime error
Runtime error
lixiang46 commited on
Commit ·
2398aef
1
Parent(s): aae94cd
check empty image
Browse files9 unmodified lines1011121314151617130 unmodified lines1481491501491511521539 unmodified lines
def start_tryon(person_img, garment_img, seed, randomize_seed): if person_img == None or garment_img == None: return None, None, None, "Empty image" if randomize_seed: seed = random.randint(0, MAX_SEED) encoded_person_img = cv2.imencode('.jpg', cv2.cvtColor(person_img, cv2.COLOR_RGB2BGR))[1].tobytes()130 unmodified lines label=None )
image1.clear()
image1.change( fn = change_imgs,app.py+2-1