Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ controlnet = FluxControlNetModel.from_pretrained(
|
|
| 43 |
"jasperai/Flux.1-dev-Controlnet-Upscaler", torch_dtype=torch.bfloat16
|
| 44 |
).to(device)
|
| 45 |
pipe = FluxControlNetPipeline.from_pretrained(
|
| 46 |
-
|
| 47 |
)
|
| 48 |
# pipe.load_lora_weights(
|
| 49 |
# hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors"), adapter_name="hyper-sd"
|
|
@@ -51,7 +51,7 @@ pipe = FluxControlNetPipeline.from_pretrained(
|
|
| 51 |
# pipe.set_adapters(["hyper-sd"], adapter_weights=[0.125])
|
| 52 |
pipe.to(device)
|
| 53 |
MAX_SEED = 1000000
|
| 54 |
-
MAX_PIXEL_BUDGET =
|
| 55 |
|
| 56 |
|
| 57 |
def process_input(input_image, upscale_factor, **kwargs):
|
|
|
|
| 43 |
"jasperai/Flux.1-dev-Controlnet-Upscaler", torch_dtype=torch.bfloat16
|
| 44 |
).to(device)
|
| 45 |
pipe = FluxControlNetPipeline.from_pretrained(
|
| 46 |
+
"LPX55/FLUX.1-merged_uncensored", controlnet=controlnet, torch_dtype=torch.bfloat16, token=huggingface_token,
|
| 47 |
)
|
| 48 |
# pipe.load_lora_weights(
|
| 49 |
# hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors"), adapter_name="hyper-sd"
|
|
|
|
| 51 |
# pipe.set_adapters(["hyper-sd"], adapter_weights=[0.125])
|
| 52 |
pipe.to(device)
|
| 53 |
MAX_SEED = 1000000
|
| 54 |
+
MAX_PIXEL_BUDGET = 2048 * 2048
|
| 55 |
|
| 56 |
|
| 57 |
def process_input(input_image, upscale_factor, **kwargs):
|