You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at train_net.py we start multigpu training as:
if __name__ == "__main__":
args = default_argument_parser().parse_args()
print("Command Line Args:", args)
launch(main, args.num_gpus, num_machines=args.num_machines, machine_rank=args.machine_rank, dist_url=args.dist_url, args=(args,), )
What if I need to start multigpu training from within a function where I have some variables holding my dataset (like the usual detectron2 format dataset of list of dictionaries)? If I did not need to place launch within "if name == "main": " and could easily pass the dataset that would be easy. Is there any easy way to circumvent this problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at train_net.py we start multigpu training as:
What if I need to start multigpu training from within a function where I have some variables holding my dataset (like the usual detectron2 format dataset of list of dictionaries)? If I did not need to place launch within "if name == "main": " and could easily pass the dataset that would be easy. Is there any easy way to circumvent this problem?
Beta Was this translation helpful? Give feedback.
All reactions