Skip to content

Commit

Permalink
fix learning rate arg passing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybdub committed Sep 20, 2023
1 parent 369b0f0 commit 6536336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanosam/tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
else:
raise RuntimeError(f"Unsupported loss function {args.loss}")

optimizer = torch.optim.Adam(image_encoder_cnn.parameters(), lr=3e-4)
optimizer = torch.optim.Adam(image_encoder_cnn.parameters(), lr=args.learning_rate)

dataset = ImageFolder(args.images)

Expand Down

0 comments on commit 6536336

Please sign in to comment.