Skip to content

Commit

Permalink
more parameters explained
Browse files Browse the repository at this point in the history
  • Loading branch information
huzeyann committed Dec 27, 2023
1 parent cd794d4 commit 3d548bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@
"import pytorch_lightning as pl\n",
"\n",
"\n",
"plmodel = PLModel(cfg, backbone, draw=True)\n",
"plmodel = PLModel(\n",
" cfg, \n",
" backbone, \n",
" draw=True, # draw on each epoch end\n",
" cached=True, # cache the features into cpu memory in first epoch\n",
")\n",
"# plmodel.validation_epoch_end() is called on validation epoch to draw\n",
"plmodel = plmodel.cuda()"
]
Expand Down Expand Up @@ -538,7 +543,7 @@
" accelerator=\"gpu\",\n",
" devices=[0],\n",
" gradient_clip_val=0.5,\n",
" precision=16,\n",
" precision=16, # set to 32 if you use GPU before 2080\n",
" limit_train_batches=1.0,\n",
" limit_val_batches=1.0,\n",
" enable_checkpointing=False,\n",
Expand Down

0 comments on commit 3d548bf

Please sign in to comment.