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

Potentially 2 LR Schedulers used for Object Detection Tutorial #2631

Open
JoanneLin168 opened this issue Oct 31, 2023 · 0 comments
Open

Potentially 2 LR Schedulers used for Object Detection Tutorial #2631

JoanneLin168 opened this issue Oct 31, 2023 · 0 comments
Labels
module: vision Torchvision issues

Comments

@JoanneLin168
Copy link

JoanneLin168 commented Oct 31, 2023

Link to tutorial: https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html

Hi there, I am following the object detection tutorial and have copied the necessary files from pytorch/vision/main/references/detection/. When inspecting the engine.train_one_epoch() function, I see that it creates a LR scheduler (LinearLR) there and calls lr_scheduler.step() inside train_one_epoch(), however in the tutorial it also creates its own LR scheduler (StepLR) in the main script, and also calls lr_scheduler.step() within the training loop.

Is this meant to be the case or should the tutorial be updated?

cc @datumbox @nairbv @fmassa @NicolasHug @YosuaMichael

@svekars svekars added torchvision Issues relating to image/video tutorials module: vision Torchvision issues and removed torchvision Issues relating to image/video tutorials labels Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: vision Torchvision issues
Projects
None yet
Development

No branches or pull requests

2 participants