Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,6 @@ dataset_snapshot_download(dataset_id="DiffSynth-Studio/examples_in_diffsynth", l
|
|
| 18 |
#with open(example_json, 'r') as f:
|
| 19 |
# examples = json.load(f)['examples']
|
| 20 |
|
| 21 |
-
for idx in range(len(examples)):
|
| 22 |
-
example_id = examples[idx]['example_id']
|
| 23 |
-
entity_prompts = examples[idx]['local_prompt_list']
|
| 24 |
-
examples[idx]['mask_lists'] = [Image.open(f"data/examples/eligen/qwen-image/example_{example_id}/{i}.png").convert('RGB') for i in range(len(entity_prompts))]
|
| 25 |
|
| 26 |
def create_canvas_data(background, masks):
|
| 27 |
if background.shape[-1] == 3:
|
|
|
|
| 18 |
#with open(example_json, 'r') as f:
|
| 19 |
# examples = json.load(f)['examples']
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
def create_canvas_data(background, masks):
|
| 23 |
if background.shape[-1] == 3:
|