recoilme
commited on
Commit
·
5d81018
1
Parent(s):
bcd912d
2809
Browse files- result_grid.jpg +2 -2
- src/cherrypick.ipynb +3 -3
- src/sample.ipynb +0 -0
- train.py +3 -3
- unet/diffusion_pytorch_model.fp16.safetensors +0 -3
- unet/diffusion_pytorch_model.safetensors +2 -2
result_grid.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
src/cherrypick.ipynb
CHANGED
|
@@ -1452,7 +1452,7 @@
|
|
| 1452 |
"pipeid = \"AiArtLab/sdxs\"\n",
|
| 1453 |
"variant = \"fp16\" if torch.cuda.is_available() else None\n",
|
| 1454 |
"\n",
|
| 1455 |
-
"unet = UNet2DConditionModel.from_pretrained(\"/workspace/
|
| 1456 |
" , subfolder=\"unet\", variant=variant).to(device, dtype=dtype).eval()\n",
|
| 1457 |
"vae = AutoencoderKL.from_pretrained(pipeid, subfolder=\"vae\", variant=variant).to(device, dtype=dtype).eval()\n",
|
| 1458 |
"scheduler = DDPMScheduler.from_pretrained(pipeid, subfolder=\"scheduler\")\n",
|
|
@@ -1577,7 +1577,7 @@
|
|
| 1577 |
" print(\"Images generated and saved to:\", output_folder)\n",
|
| 1578 |
"\n",
|
| 1579 |
"# Example usage\n",
|
| 1580 |
-
"dataset_path = \"/workspace/
|
| 1581 |
"generate_and_save_images(dataset_path)\n"
|
| 1582 |
]
|
| 1583 |
},
|
|
@@ -1606,7 +1606,7 @@
|
|
| 1606 |
"name": "python",
|
| 1607 |
"nbconvert_exporter": "python",
|
| 1608 |
"pygments_lexer": "ipython3",
|
| 1609 |
-
"version": "3.11.
|
| 1610 |
}
|
| 1611 |
},
|
| 1612 |
"nbformat": 4,
|
|
|
|
| 1452 |
"pipeid = \"AiArtLab/sdxs\"\n",
|
| 1453 |
"variant = \"fp16\" if torch.cuda.is_available() else None\n",
|
| 1454 |
"\n",
|
| 1455 |
+
"unet = UNet2DConditionModel.from_pretrained(\"/workspace/sdxs3d\"#pipeid\n",
|
| 1456 |
" , subfolder=\"unet\", variant=variant).to(device, dtype=dtype).eval()\n",
|
| 1457 |
"vae = AutoencoderKL.from_pretrained(pipeid, subfolder=\"vae\", variant=variant).to(device, dtype=dtype).eval()\n",
|
| 1458 |
"scheduler = DDPMScheduler.from_pretrained(pipeid, subfolder=\"scheduler\")\n",
|
|
|
|
| 1577 |
" print(\"Images generated and saved to:\", output_folder)\n",
|
| 1578 |
"\n",
|
| 1579 |
"# Example usage\n",
|
| 1580 |
+
"dataset_path = \"/workspace/sdxs3d/datasets/mjnj\"\n",
|
| 1581 |
"generate_and_save_images(dataset_path)\n"
|
| 1582 |
]
|
| 1583 |
},
|
|
|
|
| 1606 |
"name": "python",
|
| 1607 |
"nbconvert_exporter": "python",
|
| 1608 |
"pygments_lexer": "ipython3",
|
| 1609 |
+
"version": "3.11.11"
|
| 1610 |
}
|
| 1611 |
},
|
| 1612 |
"nbformat": 4,
|
src/sample.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.py
CHANGED
|
@@ -28,9 +28,9 @@ from collections import deque
|
|
| 28 |
# --------------------------- Параметры ---------------------------
|
| 29 |
ds_path = "/workspace/sdxs3d/datasets/mjnj"
|
| 30 |
project = "unet"
|
| 31 |
-
batch_size =
|
| 32 |
-
base_learning_rate =
|
| 33 |
-
min_learning_rate =
|
| 34 |
num_epochs = 50
|
| 35 |
# samples/save per epoch
|
| 36 |
sample_interval_share = 5
|
|
|
|
| 28 |
# --------------------------- Параметры ---------------------------
|
| 29 |
ds_path = "/workspace/sdxs3d/datasets/mjnj"
|
| 30 |
project = "unet"
|
| 31 |
+
batch_size = 96
|
| 32 |
+
base_learning_rate = 6e-5
|
| 33 |
+
min_learning_rate = 9e-6
|
| 34 |
num_epochs = 50
|
| 35 |
# samples/save per epoch
|
| 36 |
sample_interval_share = 5
|
unet/diffusion_pytorch_model.fp16.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:072a5932b339f1c98d492fe71c74a374de6c0e5480dab5f0c393aed03818b6e1
|
| 3 |
-
size 3092571208
|
|
|
|
|
|
|
|
|
|
|
|
unet/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:072a5932b339f1c98d492fe71c74a374de6c0e5480dab5f0c393aed03818b6e1
|
| 3 |
+
size 3092571208
|