Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

86 tutorial updates #183

Merged
merged 22 commits into from
Mar 27, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'master' into 86-tutorial
  • Loading branch information
wyli committed Mar 19, 2020
commit f7304b05bbf157e061842be9ebf20ad7f774db5f
8 changes: 5 additions & 3 deletions examples/unet_segmentation_3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@
"outputs": [],
"source": [
"# create a training data loader\n",
"train_ds = NiftiDataset(images[:20], segs[:20], transform=train_imtrans, seg_transform=train_segtrans)\n",
"train_loader = DataLoader(train_ds, batch_size=5, num_workers=8, pin_memory=torch.cuda.is_available())\n",
"logging.basicConfig(stream=sys.stdout, level=logging.INFO)\n",
"\n",
"train_ds = NiftiDataset(images[:20], segs[:20], transform= train_imtrans, seg_transform= train_segtrans)\n",
"train_loader = DataLoader(train_ds, batch_size=5, shuffle=True, num_workers=8, pin_memory=torch.cuda.is_available())\n",
"\n",
"train_epochs = 30\n",
"state = trainer.run(train_loader, train_epochs)"
Expand Down Expand Up @@ -314,7 +316,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.6"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.