aifeifei798 commited on
Commit
2f9718f
·
verified ·
1 Parent(s): 9e573b2

Update feifeilib/feifeimodload.py

Browse files
Files changed (1) hide show
  1. feifeilib/feifeimodload.py +7 -7
feifeilib/feifeimodload.py CHANGED
@@ -24,10 +24,10 @@ def feifeimodload():
24
  adapter_name="feifei",
25
  )
26
 
27
- pipe.load_lora_weights(
28
- hf_hub_download("adirik/flux-cinestill", "lora.safetensors"),
29
- adapter_name="fluxcinestill",
30
- )
31
 
32
  #pipe.load_lora_weights(
33
  # hf_hub_download(
@@ -53,8 +53,8 @@ def feifeimodload():
53
  #)
54
 
55
  pipe.set_adapters(
56
- ["feifei","fluxcinestill"],
57
- adapter_weights=[1,1],
58
  )
59
 
60
  pipe.fuse_lora(
@@ -62,7 +62,7 @@ def feifeimodload():
62
  lora_scale=1.0,
63
  )
64
 
65
- pipe.vae.enable_tiling()
66
  pipe.unload_lora_weights()
67
  torch.cuda.empty_cache()
68
  return pipe
 
24
  adapter_name="feifei",
25
  )
26
 
27
+ #pipe.load_lora_weights(
28
+ # hf_hub_download("adirik/flux-cinestill", "lora.safetensors"),
29
+ # adapter_name="fluxcinestill",
30
+ #)
31
 
32
  #pipe.load_lora_weights(
33
  # hf_hub_download(
 
53
  #)
54
 
55
  pipe.set_adapters(
56
+ ["feifei"],
57
+ adapter_weights=[0.9],
58
  )
59
 
60
  pipe.fuse_lora(
 
62
  lora_scale=1.0,
63
  )
64
 
65
+ #pipe.vae.enable_tiling()
66
  pipe.unload_lora_weights()
67
  torch.cuda.empty_cache()
68
  return pipe