2409
Browse files- TRAIN.md → README.md +9 -8
- samples/unet_192x384_0.jpg +3 -0
- samples/unet_256x384_0.jpg +3 -0
- samples/unet_320x384_0.jpg +3 -0
- samples/unet_384x192_0.jpg +3 -0
- samples/unet_384x256_0.jpg +3 -0
- samples/unet_384x320_0.jpg +3 -0
- samples/unet_384x384_0.jpg +3 -0
- train.py +1 -1
- unet/diffusion_pytorch_model.safetensors +1 -1
TRAIN.md → README.md
RENAMED
|
@@ -2,42 +2,43 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
```
|
| 9 |
apt update
|
| 10 |
apt install git-lfs
|
| 11 |
git config --global credential.helper store
|
| 12 |
```
|
| 13 |
-
|
| 14 |
|
| 15 |
```
|
| 16 |
python -m pip install --upgrade pip
|
| 17 |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu129 -U # cu129 - change
|
| 18 |
pip install flash-attn --no-build-isolation # optional
|
| 19 |
```
|
| 20 |
-
|
| 21 |
|
| 22 |
```
|
| 23 |
git clone https://huggingface.co/AiArtLab/sdxs3d
|
| 24 |
cd sdxs3d/
|
| 25 |
pip install -r requirements.txt -U
|
| 26 |
```
|
| 27 |
-
|
| 28 |
|
| 29 |
```
|
| 30 |
mkdir datasets
|
| 31 |
cd datasets
|
| 32 |
-
huggingface-cli download AiArtLab/
|
| 33 |
```
|
| 34 |
-
|
| 35 |
|
| 36 |
```
|
| 37 |
huggingface-cli login
|
| 38 |
wandb login
|
| 39 |
```
|
| 40 |
-
|
| 41 |
|
| 42 |
```
|
| 43 |
nohup accelerate launch train.py &
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
+
## train
|
| 6 |
+
|
| 7 |
+
update:
|
| 8 |
|
| 9 |
```
|
| 10 |
apt update
|
| 11 |
apt install git-lfs
|
| 12 |
git config --global credential.helper store
|
| 13 |
```
|
| 14 |
+
pip + torch:
|
| 15 |
|
| 16 |
```
|
| 17 |
python -m pip install --upgrade pip
|
| 18 |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu129 -U # cu129 - change
|
| 19 |
pip install flash-attn --no-build-isolation # optional
|
| 20 |
```
|
| 21 |
+
repo:
|
| 22 |
|
| 23 |
```
|
| 24 |
git clone https://huggingface.co/AiArtLab/sdxs3d
|
| 25 |
cd sdxs3d/
|
| 26 |
pip install -r requirements.txt -U
|
| 27 |
```
|
| 28 |
+
dataset:
|
| 29 |
|
| 30 |
```
|
| 31 |
mkdir datasets
|
| 32 |
cd datasets
|
| 33 |
+
huggingface-cli download AiArtLab/mjnj384 --local-dir mjnj --repo-type dataset
|
| 34 |
```
|
| 35 |
+
auth:
|
| 36 |
|
| 37 |
```
|
| 38 |
huggingface-cli login
|
| 39 |
wandb login
|
| 40 |
```
|
| 41 |
+
run it!
|
| 42 |
|
| 43 |
```
|
| 44 |
nohup accelerate launch train.py &
|
samples/unet_192x384_0.jpg
ADDED
|
Git LFS Details
|
samples/unet_256x384_0.jpg
ADDED
|
Git LFS Details
|
samples/unet_320x384_0.jpg
ADDED
|
Git LFS Details
|
samples/unet_384x192_0.jpg
ADDED
|
Git LFS Details
|
samples/unet_384x256_0.jpg
ADDED
|
Git LFS Details
|
samples/unet_384x320_0.jpg
ADDED
|
Git LFS Details
|
samples/unet_384x384_0.jpg
ADDED
|
Git LFS Details
|
train.py
CHANGED
|
@@ -51,7 +51,7 @@ torch.backends.cuda.matmul.allow_tf32 = True
|
|
| 51 |
torch.backends.cudnn.allow_tf32 = True
|
| 52 |
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
| 53 |
dtype = torch.float32
|
| 54 |
-
save_barrier = 1.
|
| 55 |
warmup_percent = 0.01
|
| 56 |
percentile_clipping = 95 # 8bit optim
|
| 57 |
betta2 = 0.97
|
|
|
|
| 51 |
torch.backends.cudnn.allow_tf32 = True
|
| 52 |
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
| 53 |
dtype = torch.float32
|
| 54 |
+
save_barrier = 1.05
|
| 55 |
warmup_percent = 0.01
|
| 56 |
percentile_clipping = 95 # 8bit optim
|
| 57 |
betta2 = 0.97
|
unet/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6184944280
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a1cab2d1280864a43c1fbba96bc6f29e344293ace5a004733a7bcd4a4e54c99
|
| 3 |
size 6184944280
|