Spaces:
Runtime error
Runtime error
lixiang46 commited on
Commit ·
0805db6
1
Parent(s): dbe8337
update
Browse files10 unmodified lines1112131415161710 unmodified linesdef start_tryon(person_img, garment_img, seed, randomize_seed):if person_img is None or garment_img is 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()10 unmodified lines1112131415161710 unmodified linesdef start_tryon(person_img, garment_img, seed, randomize_seed):if person_img is None or garment_img is None:return 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()
app.py+1-1