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
CodeFormer_pytorch
Commits
f6a2baec
Commit
f6a2baec
authored
Sep 19, 2024
by
dcuai
Browse files
Update dtk24.04.1
parent
76be49e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
README.md
README.md
+6
-14
No files found.
README.md
View file @
f6a2baec
...
...
@@ -31,9 +31,9 @@
### Docker
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:
1
.1
3.1-centos7.6
-dtk
-23
.04.1-py3
9-latest
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:
2
.1
.0-ubuntu20.04
-dtk
24
.04.1-py3
.10
docker run --shm-size 10g --network=host --name=codeformer --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v 项目地址(绝对路径):/home/ -it <your IMAGE ID> bash
docker run --shm-size 10g --network=host --name=codeformer --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v
/opt/hyhal:/opt/hyhal -v
项目地址(绝对路径):/home/ -it <your IMAGE ID> bash
pip install -r requirements.txt
...
...
@@ -42,11 +42,7 @@
python basicsr/setup.py develop
# 以下内容可选,仅在视频增强时需要
yum install epel-release -y
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm -y
yum install ffmpeg ffmpeg-devel -y
apt update && apt install ffmpeg
### Dockerfile
...
...
@@ -54,7 +50,7 @@
docker build -t <IMAGE_NAME>:<TAG> .
# <your IMAGE ID>用以上拉取的docker的镜像ID替换
docker run -it --shm-size 10g --network=host --name=codeformer --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined <your IMAGE ID> bash
docker run -it --shm-size 10g --network=host --name=codeformer --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
-v /opt/hyhal:/opt/hyhal
<your IMAGE ID> bash
pip install -r requirements.txt
...
...
@@ -63,11 +59,7 @@
python basicsr/setup.py develop
# 以下内容可选,仅在视频增强时需要
yum install epel-release -y
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm -y
yum install ffmpeg ffmpeg-devel -y
apt update && apt install ffmpeg
## 数据集
...
...
@@ -111,7 +103,7 @@
python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
注意:
`vqgan`
为
`net_g_xxx.pth`
,
`net_d`
为第一阶段生成。
注意:
`vqgan`
为
`net_g_xxx.pth`
为第二阶段生成
,
`net_d`
为第一阶段生成。
## 推理
...
...
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