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
chenpangpang
ComfyUI-PhotoMaker-ZHO
Commits
5cea14f1
Commit
5cea14f1
authored
Aug 02, 2024
by
chenpangpang
Browse files
feat: 增加模型,图片;增加下载模型代码
parent
133c21e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
Dockerfile
Dockerfile
+4
-4
hf_down.py
hf_down.py
+13
-0
xiaozhan.jpeg
xiaozhan.jpeg
+0
-0
No files found.
Dockerfile
View file @
5cea14f1
...
...
@@ -19,9 +19,9 @@ RUN mv /root/$IMAGE/$IMAGE_UPPER /root/ComfyUI/custom_nodes/$IMAGE_UPPER && \
FROM
image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04
ARG
IMAGE=comfyui-photomaker-zho
ARG
IMAGE_UPPER=ComfyUI-PhotoMaker-ZHO
COPY
chenyh/$IMAGE/frpc_linux_amd64_v0.2 /opt/conda/lib/python3.10/site-packages/gradio/
RUN
chmod
+x /opt/conda/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.2
#COPY chenyh/$IMAGE/coqui/XTTS-v2 /root/.local/share/tts/tts_models--multilingual--multi-dataset--xtts_v2
COPY
chenyh/$IMAGE/SG161222/RealVisXL_V3.0 /root/ComfyUI/SG161222/RealVisXL_V3.0
COPY
chenyh/$IMAGE/TencentARC/PhotoMaker/photomaker-v1.bin /root/ComfyUI/photomaker-v1.bin
COPY
--from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
COPY
--from=base /root/ComfyUI /root/ComfyUI
COPY
--from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/
\ No newline at end of file
COPY
--from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/
COPY
--from=base /root/$IMAGE/xiaozhan.jpeg /root/ComfyUI/input/
\ No newline at end of file
hf_down.py
0 → 100644
View file @
5cea14f1
# pip install huggingface-cli
import
os
import
requests
import
json
os
.
environ
[
'HF_ENDPOINT'
]
=
'https://hf-mirror.com'
model_list
=
[
"SG161222/RealVisXL_V3.0"
]
for
model_path
in
model_list
:
os
.
system
(
f
"huggingface-cli download --resume-download
{
model_path
}
--local-dir ./
{
model_path
}
--local-dir-use-symlinks False"
)
\ No newline at end of file
xiaozhan.jpeg
0 → 100644
View file @
5cea14f1
1.2 MB
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