Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -30,10 +30,10 @@ else:
|
|
30 |
huggingface_token = os.getenv("HUGGINFACE_TOKEN")
|
31 |
|
32 |
model_path = snapshot_download(
|
33 |
-
repo_id="
|
34 |
repo_type="model",
|
35 |
ignore_patterns=["*.md", "*..gitattributes"],
|
36 |
-
local_dir="FLUX.1-
|
37 |
token=huggingface_token, # type a new token-id.
|
38 |
)
|
39 |
|
@@ -45,10 +45,10 @@ controlnet = FluxControlNetModel.from_pretrained(
|
|
45 |
pipe = FluxControlNetPipeline.from_pretrained(
|
46 |
model_path, controlnet=controlnet, torch_dtype=torch.bfloat16
|
47 |
)
|
48 |
-
pipe.load_lora_weights(
|
49 |
-
|
50 |
-
)
|
51 |
-
pipe.set_adapters(["hyper-sd"], adapter_weights=[0.125])
|
52 |
pipe.to(device)
|
53 |
MAX_SEED = 1000000
|
54 |
MAX_PIXEL_BUDGET = 1024 * 1024
|
|
|
30 |
huggingface_token = os.getenv("HUGGINFACE_TOKEN")
|
31 |
|
32 |
model_path = snapshot_download(
|
33 |
+
repo_id="LPX55/FLUX.1-merged_uncensored",
|
34 |
repo_type="model",
|
35 |
ignore_patterns=["*.md", "*..gitattributes"],
|
36 |
+
local_dir="FLUX.1-merged_uncensored",
|
37 |
token=huggingface_token, # type a new token-id.
|
38 |
)
|
39 |
|
|
|
45 |
pipe = FluxControlNetPipeline.from_pretrained(
|
46 |
model_path, controlnet=controlnet, torch_dtype=torch.bfloat16
|
47 |
)
|
48 |
+
# pipe.load_lora_weights(
|
49 |
+
# hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors"), adapter_name="hyper-sd"
|
50 |
+
# )
|
51 |
+
# pipe.set_adapters(["hyper-sd"], adapter_weights=[0.125])
|
52 |
pipe.to(device)
|
53 |
MAX_SEED = 1000000
|
54 |
MAX_PIXEL_BUDGET = 1024 * 1024
|