layerdiffusion commited on
Commit
3e2f27a
1 Parent(s): 95b168f
.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- *.safetensors
2
 
3
  # Byte-compiled / optimized / DLL files
4
  __pycache__/
 
1
+ # *.safetensors
2
 
3
  # Byte-compiled / optimized / DLL files
4
  __pycache__/
app.py CHANGED
@@ -12,7 +12,7 @@ from diffusers.models.attention_processor import AttnProcessor2_0
12
  from transformers import CLIPTextModel, CLIPTokenizer
13
  from briarmbg import BriaRMBG
14
  from enum import Enum
15
- from torch.hub import download_url_to_file
16
 
17
 
18
  # 'stablediffusionapi/realistic-vision-v51'
@@ -49,7 +49,7 @@ unet.forward = hooked_unet_forward
49
  # Load
50
 
51
  model_path = './models/iclight_sd15_fc.safetensors'
52
- download_url_to_file(url='https://huggingface.co/lllyasviel/ic-light/resolve/main/iclight_sd15_fc.safetensors', dst=model_path)
53
  sd_offset = sf.load_file(model_path)
54
  sd_origin = unet.state_dict()
55
  keys = sd_origin.keys()
 
12
  from transformers import CLIPTextModel, CLIPTokenizer
13
  from briarmbg import BriaRMBG
14
  from enum import Enum
15
+ # from torch.hub import download_url_to_file
16
 
17
 
18
  # 'stablediffusionapi/realistic-vision-v51'
 
49
  # Load
50
 
51
  model_path = './models/iclight_sd15_fc.safetensors'
52
+ # download_url_to_file(url='https://huggingface.co/lllyasviel/ic-light/resolve/main/iclight_sd15_fc.safetensors', dst=model_path)
53
  sd_offset = sf.load_file(model_path)
54
  sd_origin = unet.state_dict()
55
  keys = sd_origin.keys()
models/iclight_sd15_fc.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a033fbaaa2f3f7859fa6a4477ee63ebbf9c116bf3569d5811856d2807f3468cd
3
+ size 1719148312
models/model_download_here ADDED
@@ -0,0 +1 @@
 
 
1
+ model download here