Skip to content

Commit

Permalink
X train; + config
Browse files Browse the repository at this point in the history
  • Loading branch information
slegroux committed Feb 14, 2025
1 parent 3dfb603 commit 4f79301
Show file tree
Hide file tree
Showing 7 changed files with 576 additions and 98 deletions.
19 changes: 19 additions & 0 deletions config/model/image/diffusorx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
_target_: nimrod.models.diffusion.DiffusorX
_partial_: true # we init optim & sched later

nnet:
_target_: diffusers.UNet2DModel
block_out_channels: [32, 64, 128, 256]
sample_size: 32
in_channels: 1
out_channels: 1

noise_scheduler:
_target_: diffusers.DDPMScheduler
num_train_timesteps: 1000
beta_start: 0.00085
beta_end: 0.012


# optimizer
# scheduler%
6 changes: 1 addition & 5 deletions nbs/models.conv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2533,13 +2533,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "python3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
6 changes: 1 addition & 5 deletions nbs/models.core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1341,13 +1341,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "python3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
202 changes: 124 additions & 78 deletions nbs/models.diffusion.ipynb

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions nbs/models.resnet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -698,13 +698,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "python3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
6 changes: 1 addition & 5 deletions nbs/models.unet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "python3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
429 changes: 429 additions & 0 deletions tutorials/diffusion.ipynb

Large diffs are not rendered by default.

0 comments on commit 4f79301

Please sign in to comment.