xingpng commited on
Commit
baeefe0
1 Parent(s): 95797dd
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -23,15 +23,15 @@ from transformers import BlipProcessor, BlipForConditionalGeneration
23
  device = "cuda" if torch.cuda.is_available() else "cpu"
24
 
25
  import os
26
- # os.system("git lfs install")
27
- # os.system("git clone https://huggingface.co/h94/IP-Adapter")
28
- # os.system("mv IP-Adapter/sdxl_models sdxl_models")
29
 
30
  from huggingface_hub import hf_hub_download
31
 
32
- hf_hub_download(repo_id="h94/IP-Adapter", filename="sdxl_models/image_encoder", local_dir="./sdxl_models/image_encoder")
33
  hf_hub_download(repo_id="InstantX/CSGO", filename="csgo_4_32.bin", local_dir="./CSGO/csgo_4_32.bin")
34
- # os.system('rm -rf IP-Adapter/models')
35
  base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
36
  image_encoder_path = "sdxl_models/image_encoder"
37
  csgo_ckpt ='./CSGO/csgo_4_32.bin'
 
23
  device = "cuda" if torch.cuda.is_available() else "cpu"
24
 
25
  import os
26
+ os.system("git lfs install")
27
+ os.system("git clone https://huggingface.co/h94/IP-Adapter")
28
+ os.system("mv IP-Adapter/sdxl_models sdxl_models")
29
 
30
  from huggingface_hub import hf_hub_download
31
 
32
+ # hf_hub_download(repo_id="h94/IP-Adapter", filename="sdxl_models/image_encoder", local_dir="./sdxl_models/image_encoder")
33
  hf_hub_download(repo_id="InstantX/CSGO", filename="csgo_4_32.bin", local_dir="./CSGO/csgo_4_32.bin")
34
+ os.system('rm -rf IP-Adapter/models')
35
  base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
36
  image_encoder_path = "sdxl_models/image_encoder"
37
  csgo_ckpt ='./CSGO/csgo_4_32.bin'