Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
PhotoMaker_pytorch
Commits
4be56270
Commit
4be56270
authored
Jul 11, 2024
by
mashun1
Browse files
Merge branch 'master' into 'master'
update See merge request
!1
parents
72883819
06d21d2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
40 deletions
+37
-40
README.md
README.md
+37
-40
icon.png
icon.png
+0
-0
No files found.
README.md
View file @
4be56270
...
...
@@ -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

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

### 精度
无
## 应用场景
### 算法类别
`AIGC`
### 热点行业
`零售,广媒,设计`
## 源码仓库及问题反馈
*
https://developer.hpccube.com/codes/modelzoo/photomaker
...
...
icon.png
0 → 100644
View file @
4be56270
68.4 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment