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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -30,10 +30,10 @@ else:
30
  huggingface_token = os.getenv("HUGGINFACE_TOKEN")
31
 
32
  model_path = snapshot_download(
33
- repo_id="black-forest-labs/FLUX.1-dev",
34
  repo_type="model",
35
  ignore_patterns=["*.md", "*..gitattributes"],
36
- local_dir="FLUX.1-dev",
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
- 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
 
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