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
stable_diffusion_ait
Commits
8394d5b3
Commit
8394d5b3
authored
Oct 24, 2024
by
dcuai
Browse files
Update README.md
parent
2fa23146
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
README.md
README.md
+4
-7
No files found.
README.md
View file @
8394d5b3
...
@@ -14,17 +14,14 @@ stable diffusion的核心是latent diffusion model,latent diffusion model结构
...
@@ -14,17 +14,14 @@ stable diffusion的核心是latent diffusion model,latent diffusion model结构
## 环境配置
## 环境配置
在
[
光源
](
https://sourcefind.cn/#/service-list
)
可拉取推理的docker镜像。stable_diffusion_ait推荐的镜像如下:
在
[
光源
](
https://sourcefind.cn/#/service-list
)
可拉取推理的docker镜像。stable_diffusion_ait推荐的镜像如下:
```
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/
custom:ait-0.0.1_
dtk24.04
_
py310
docker pull image.sourcefind.cn:5000/dcu/admin/base/
pytorch:2.1.0-ubuntu20.04-
dtk24.04
.1-
py3
.
10
docker run -d -t -v /opt/hyhal:/opt/hyhal:ro --privileged --device=/dev/kfd --device=/dev/dri/ --network=host --group-add video --name sd-test image.sourcefind.cn:5000/dcu/admin/base/
custom:ait-0.0.1_
dtk24.04
_
py310
docker run -d -t -v /opt/hyhal:/opt/hyhal:ro --privileged --device=/dev/kfd --device=/dev/dri/ --network=host --group-add video --name sd-test image.sourcefind.cn:5000/dcu/admin/base/
pytorch:2.1.0-ubuntu20.04-
dtk24.04
.1-
py3
.
10
docker exec -it sd-test bash
docker exec -it sd-test bash
source /opt/dtk/env.sh
source /opt/dtk/env.sh
pip3 install click timm
```
```
## 推理
## 推理
**install ait**
```
cd stable_diffusion_ait
pip3 install dist/aitemplate-0.0.1-py3-none-any.whl
```
#### 01_resnet-50
#### 01_resnet-50
```
```
cd examples/01_resnet-50
cd examples/01_resnet-50
...
...
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