Should "SOLVER.STEPS" and "SOLVER.MAX_ITER" in config be changed when changing "SOLVER.IMS_PER_BATCH" during training?
Thanks for your excellent work. One question is that should "SOLVER.STEPS" and "SOLVER.MAX_ITER" in config be changed when changing "SOLVER.IMS_PER_BATCH" during training, or will they be corrected automatically? (If so, please point out the exact code location)
Yes, these parameters are set without considering the batch size. If you reduce batch size, you are expected to increase the steps accordingly.
Thanks. But I still have a question: why not set cfg.SOLVER.REFERENCE_WORLD_SIZE directly in the config file, so that the “auto_scale_workers“ function of the “detectron2.engine.DefaultTrainer“ class will automatically scale the hyperparameters?https://github.com/facebookresearch/detectron2/blob/main/detectron2/engine/defaults.py#LL633C9-L633C27