Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,11 @@ import torch
|
|
25 |
import gradio as gr
|
26 |
import string
|
27 |
import random, time, math
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
from src.flux.generate import generate_from_test_sample, seed_everything
|
30 |
# from src.flux.pipeline_tools import CustomFluxPipeline, load_modulation_adapter, load_dit_lora
|
@@ -35,7 +40,6 @@ from src.flux.generate import generate_from_test_sample, seed_everything
|
|
35 |
# import yaml
|
36 |
# import numpy as np
|
37 |
# from huggingface_hub import snapshot_download, hf_hub_download
|
38 |
-
# import os
|
39 |
|
40 |
# # FLUX.1-dev
|
41 |
# snapshot_download(
|
|
|
25 |
import gradio as gr
|
26 |
import string
|
27 |
import random, time, math
|
28 |
+
import os
|
29 |
+
|
30 |
+
|
31 |
+
os.environ["NCCL_P2P_DISABLE"]="1"
|
32 |
+
os.environ["NCCL_IB_DISABLE"]="1"
|
33 |
|
34 |
from src.flux.generate import generate_from_test_sample, seed_everything
|
35 |
# from src.flux.pipeline_tools import CustomFluxPipeline, load_modulation_adapter, load_dit_lora
|
|
|
40 |
# import yaml
|
41 |
# import numpy as np
|
42 |
# from huggingface_hub import snapshot_download, hf_hub_download
|
|
|
43 |
|
44 |
# # FLUX.1-dev
|
45 |
# snapshot_download(
|