kyonimouto
commited on
Commit
·
9b3c31e
1
Parent(s):
cc5f95c
Update README.md
Browse files
README.md
CHANGED
@@ -11,13 +11,25 @@ metrics:
|
|
11 |
- metric1
|
12 |
---
|
13 |
|
14 |
-
Diffusion GANというコードを使ってつくりました
|
15 |
|
16 |
-
https://github.com/Zhendong-Wang/Diffusion-GAN
|
17 |
|
18 |
つかいかた
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
商用利用などはご遠慮ください
|
|
|
11 |
- metric1
|
12 |
---
|
13 |
|
14 |
+
Diffusion GANというコードを使ってつくりました
|
15 |
|
16 |
+
[Github:Zhendong-Wang/Diffusion-GAN](https://github.com/Zhendong-Wang/Diffusion-GAN)
|
17 |
|
18 |
つかいかた
|
19 |
+
- 環境をととのえる
|
20 |
+
- 最近のNVIDIA製GPUがついたパソコンにLinuxを入れることをおすすめします
|
21 |
+
- PytorchをCUDAありでインストールしてください
|
22 |
+
- (PyTorch: Get-Started)[https://pytorch.org/get-started/locally/]
|
23 |
+
- conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia
|
24 |
+
- Gitもインストールしてください
|
25 |
+
- sudo apt install git
|
26 |
+
- Diffusion-GANをgithubからローカルにcloneしてください
|
27 |
+
- git clone https://github.com/Zhendong-Wang/Diffusion-GAN
|
28 |
+
- diffusion-projected-ganというフォルダを開いてください
|
29 |
+
- ここの"Files and versions"から"best_model.pkl"をクリックしてダウンロードし、diffusion-projected-ganの中に保存してください
|
30 |
+
- 以下のコマンドで画像を生成します
|
31 |
+
- python gen_images.py --outdir=out --seeds=0-10 --network=./best_model.pkl
|
32 |
+
- パッケージがインストールされていないというエラーが出たら適宜インストールしてください
|
33 |
+
- outフォルダに生成された画像が入っています
|
34 |
|
35 |
商用利用などはご遠慮ください
|