Skip to content

Commit

Permalink
update SwAV example (#960)
Browse files Browse the repository at this point in the history
Co-authored-by: Jirka Borovec <[email protected]>
Co-authored-by: Jirka B <[email protected]>
  • Loading branch information
3 people authored May 19, 2023
1 parent c5137b4 commit ab9e2e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/source/models/self_supervised.rst
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,13 @@ To Train::
gpus=1,
num_samples=dm.num_unlabeled_samples,
dataset='stl10',
batch_size=batch_size
batch_size=batch_size,
nmb_crops=(2,4)
)

# fit
trainer = pl.Trainer(precision=16)
trainer.fit(model)
trainer = pl.Trainer(precision=16, accelerator='auto')
trainer.fit(model, datamodule=dm)

Pre-trained ImageNet
********************
Expand Down

0 comments on commit ab9e2e7

Please sign in to comment.