alexnasa commited on
Commit
9cecb83
·
verified ·
1 Parent(s): 61ed52f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -18,19 +18,19 @@ import tempfile
18
  from PIL import Image
19
  import torch
20
  import gradio as gr
21
- # import string
22
- # import random, time, math
23
-
24
- # from src.flux.generate import generate_from_test_sample, seed_everything
25
- # from src.flux.pipeline_tools import CustomFluxPipeline, load_modulation_adapter, load_dit_lora
26
- # from src.utils.data_utils import get_train_config, image_grid, pil2tensor, json_dump, pad_to_square, cv2pil, merge_bboxes
27
- # from eval.tools.face_id import FaceID
28
- # from eval.tools.florence_sam import ObjectDetector
29
- # import shutil
30
- # import yaml
31
- # import numpy as np
32
- # from huggingface_hub import snapshot_download, hf_hub_download
33
- # import os
34
 
35
  # # FLUX.1-dev
36
  # snapshot_download(
 
18
  from PIL import Image
19
  import torch
20
  import gradio as gr
21
+ import string
22
+ import random, time, math
23
+
24
+ from src.flux.generate import generate_from_test_sample, seed_everything
25
+ from src.flux.pipeline_tools import CustomFluxPipeline, load_modulation_adapter, load_dit_lora
26
+ from src.utils.data_utils import get_train_config, image_grid, pil2tensor, json_dump, pad_to_square, cv2pil, merge_bboxes
27
+ from eval.tools.face_id import FaceID
28
+ from eval.tools.florence_sam import ObjectDetector
29
+ import shutil
30
+ import yaml
31
+ import numpy as np
32
+ from huggingface_hub import snapshot_download, hf_hub_download
33
+ import os
34
 
35
  # # FLUX.1-dev
36
  # snapshot_download(