Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generation/maisi/maisi_train_vae_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "4c251a32-390f-46dd-a613-75b12a7884c1",
"metadata": {
"scrolled": true
Expand Down Expand Up @@ -850,7 +850,7 @@
" with torch.no_grad():\n",
" with autocast(\"cuda\", enabled=args.amp):\n",
" images = batch[\"image\"]\n",
" reconstruction, _, _ = dynamic_infer(val_inferer, autoencoder, images)\n",
" reconstruction, z_mu, z_sigma = dynamic_infer(val_inferer, autoencoder, images)\n",
" reconstruction = reconstruction.to(device)\n",
" val_epoch_losses[\"recons_loss\"] += intensity_loss(reconstruction, images.to(device)).item()\n",
" val_epoch_losses[\"kl_loss\"] += KL_loss(z_mu, z_sigma).item()\n",
Expand Down