yslan commited on
Commit
6eb678b
1 Parent(s): 2a57a54
Files changed (2) hide show
  1. app.py +0 -1
  2. guided_diffusion/dist_util.py +4 -1
app.py CHANGED
@@ -30,7 +30,6 @@ version_str="".join([
30
  ])
31
  # install pytorch3d with the right version
32
  os.system('pip install iopath')
33
- os.system('pip install fvcore')
34
  os.system(f'pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html')
35
 
36
  import pytorch3d # check whether the version matches
 
30
  ])
31
  # install pytorch3d with the right version
32
  os.system('pip install iopath')
 
33
  os.system(f'pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html')
34
 
35
  import pytorch3d # check whether the version matches
guided_diffusion/dist_util.py CHANGED
@@ -65,7 +65,10 @@ def setup_dist(args):
65
 
66
  # dist.init_process_group(backend='nccl', init_method='env://', rank=args.local_rank, world_size=th.cuda.device_count(), timeout=datetime.timedelta(seconds=5400))
67
  # st() no mark
68
- dist.init_process_group(backend='nccl', init_method='env://', timeout=datetime.timedelta(seconds=54000))
 
 
 
69
  print(f"{args.local_rank=} init complete")
70
 
71
  # synchronize() # extra memory on rank 0, why?
 
65
 
66
  # dist.init_process_group(backend='nccl', init_method='env://', rank=args.local_rank, world_size=th.cuda.device_count(), timeout=datetime.timedelta(seconds=5400))
67
  # st() no mark
68
+ # dist.init_process_group(backend='nccl', init_method='env://', timeout=datetime.timedelta(seconds=54000))
69
+ # print(f"{args.local_rank=} init complete")
70
+
71
+ dist.init_process_group(backend='gloo', init_method='env://', timeout=datetime.timedelta(seconds=54000))
72
  print(f"{args.local_rank=} init complete")
73
 
74
  # synchronize() # extra memory on rank 0, why?