LPX55 commited on
Commit
88b51e4
·
verified ·
1 Parent(s): ee8a870

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- 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"
@@ -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 = 1024 * 1024
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):