Commit 4be56270 authored by mashun1's avatar mashun1
Browse files

Merge branch 'master' into 'master'

update

See merge request !1
parents 72883819 06d21d2b
......@@ -49,16 +49,48 @@
## 推理
### 模型下载
### 命令
python gradio_demo/app.py
注意:若要使用lora,需要在`gradio_demo/app.py`中添加如下代码
print("Loading lora...")
lora_path = "./lora/SDXL-Caricaturized-Lora.safetensors"
pipe.load_lora_weights(os.path.dirname(lora_path), weight_name=os. path.basename(lora_path), adapter_name="xl_more_art-full")
pipe.set_adapters(["photomaker", "xl_more_art-full"], adapter_weights=[1.0, 0.5])
pipe.fuse_lora()
## result
![Alt text](readme_imgs/image-3.png)
https://huggingface.co/TencentARC/PhotoMaker
### 精度
https://hf-mirror.com/SG161222/RealVisXL_V3.0/tree/main
## 应用场景
### 算法类别
`AIGC`
### 热点行业
`零售,广媒,设计`
## 预训练权重
原始链接:[PhotoMaker](https://huggingface.co/TencentARC/PhotoMaker) | [SD](https://hf-mirror.com/SG161222/RealVisXL_V3.0/tree/main) | [Lora](https://huggingface.co/Norod78/SDXL-Caricaturized-Lora/tree/main)
[SCNet](http://113.200.138.88:18080/aimodels/)高速下载通道:[PhotoMaker](http://113.200.138.88:18080/aimodels/PhotoMaker) | [SD](http://113.200.138.88:18080/aimodels/RealVisXL_V3.0) | [Lora](http://113.200.138.88:18080/aimodels/SDXL-Caricaturized-Lora)
https://huggingface.co/Norod78/SDXL-Caricaturized-Lora/tree/main
pretrained_models/
└── photomaker-v1.bin
└── photomaker-v1.bin
SG161222/
├── model_index.json
......@@ -92,41 +124,6 @@ https://huggingface.co/Norod78/SDXL-Caricaturized-Lora/tree/main
lora/
└── SDXL-Caricaturized-Lora.safetensors
### 命令
python gradio_demo/app.py
注意:若要使用lora,需要在`gradio_demo/app.py`中添加如下代码
print("Loading lora...")
lora_path = "./lora/SDXL-Caricaturized-Lora.safetensors"
pipe.load_lora_weights(os.path.dirname(lora_path), weight_name=os. path.basename(lora_path), adapter_name="xl_more_art-full")
pipe.set_adapters(["photomaker", "xl_more_art-full"], adapter_weights=[1.0, 0.5])
pipe.fuse_lora()
## result
![Alt text](readme_imgs/image-3.png)
### 精度
## 应用场景
### 算法类别
`AIGC`
### 热点行业
`零售,广媒,设计`
## 源码仓库及问题反馈
* https://developer.hpccube.com/codes/modelzoo/photomaker
......
icon.png

68.4 KB

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment