NIRVANALAN commited on
Commit
2ce902e
·
1 Parent(s): 61175c7
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -109,7 +109,7 @@ def main(args):
109
 
110
  # args.rendering_kwargs = rendering_options_defaults(args)
111
 
112
- dist_util.setup_dist(args)
113
  logger.configure(dir=args.logdir)
114
 
115
  th.cuda.empty_cache()
@@ -466,7 +466,6 @@ if __name__ == "__main__":
466
  # args = create_argparser().parse_args()
467
 
468
  # args.local_rank = int(os.environ["LOCAL_RANK"])
469
- # args.local_rank = 0
470
  # args.gpus = th.cuda.device_count()
471
 
472
  # args.rendering_kwargs = rendering_options_defaults(args)
@@ -474,6 +473,9 @@ if __name__ == "__main__":
474
  args = json.load(f)
475
  args = EasyDict(args)
476
 
 
 
 
477
 
478
  # ! demo
479
  # zero = torch.Tensor([0]).cuda()
 
109
 
110
  # args.rendering_kwargs = rendering_options_defaults(args)
111
 
112
+ # dist_util.setup_dist(args)
113
  logger.configure(dir=args.logdir)
114
 
115
  th.cuda.empty_cache()
 
466
  # args = create_argparser().parse_args()
467
 
468
  # args.local_rank = int(os.environ["LOCAL_RANK"])
 
469
  # args.gpus = th.cuda.device_count()
470
 
471
  # args.rendering_kwargs = rendering_options_defaults(args)
 
473
  args = json.load(f)
474
  args = EasyDict(args)
475
 
476
+ args.local_rank = 0
477
+ args.gpus = 1
478
+
479
 
480
  # ! demo
481
  # zero = torch.Tensor([0]).cuda()