mirror of
https://github.com/clearml/clearml
synced 2025-04-05 05:10:06 +00:00
Fix example requirements
This commit is contained in:
parent
56230faa5b
commit
3643446f56
1
examples/frameworks/ignite/requirements.txt
Normal file
1
examples/frameworks/ignite/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
pytorch-ignite
|
@ -61,7 +61,7 @@ if __name__ == '__main__':
|
||||
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument('--batch_size', default=32, type=int)
|
||||
parser.add_argument('--epochs', default=3, type=int)
|
||||
parser.add_argument('--max_epochs', default=3, type=int)
|
||||
parser = pl.Trainer.add_argparse_args(parser)
|
||||
parser = LitClassifier.add_model_specific_args(parser)
|
||||
args = parser.parse_args()
|
||||
@ -86,7 +86,6 @@ if __name__ == '__main__':
|
||||
# training
|
||||
# ------------
|
||||
trainer = pl.Trainer.from_argparse_args(args)
|
||||
trainer.max_epochs = args.epochs
|
||||
trainer.fit(model, train_loader, val_loader)
|
||||
|
||||
# ------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
clearml
|
||||
pytorch_lightning ~= 1.1.2
|
||||
pytorch_lightning >= 1.1.2
|
||||
torch
|
||||
torchvision
|
||||
|
Loading…
Reference in New Issue
Block a user