ultralytics 8.0.39 add ByteTracker and BoT-SORT trackers and fixes (#984)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher
2023-02-15 20:48:46 +04:00
committed by GitHub
parent ed6c54da7a
commit e799592718
6 changed files with 11 additions and 10 deletions

View File

@ -101,6 +101,7 @@ class YOLO:
self.model, self.ckpt = weights, None
self.task = guess_model_task(weights)
self.ckpt_path = weights
self.overrides['model'] = weights
self.ModelClass, self.TrainerClass, self.ValidatorClass, self.PredictorClass = self._assign_ops_from_task()
def _check_is_pytorch_model(self):

View File

@ -184,7 +184,7 @@ class BaseTrainer:
finally:
ddp_cleanup(self, file)
else:
self._do_train(int(os.getenv("RANK", -1)), world_size)
self._do_train(RANK, world_size)
def _setup_ddp(self, rank, world_size):
# os.environ['MASTER_ADDR'] = 'localhost'