svjack commited on
Commit
132c4bb
·
verified ·
1 Parent(s): 91cfaba

Update luciddreamer.py

Browse files
Files changed (1) hide show
  1. luciddreamer.py +2 -1
luciddreamer.py CHANGED
@@ -209,7 +209,8 @@ class LucidDreamer:
209
  fpath = os.path.join(dpath, 'gsplat.ply')
210
  os.makedirs(dpath, exist_ok=True)
211
  if not os.path.exists(fpath):
212
- os.makedirs(fpath, exist_ok=True)
 
213
  self.gaussians.save_ply(fpath)
214
  else:
215
  self.gaussians.load_ply(fpath)
 
209
  fpath = os.path.join(dpath, 'gsplat.ply')
210
  os.makedirs(dpath, exist_ok=True)
211
  if not os.path.exists(fpath):
212
+ if not fpath.endswith(".ply"):
213
+ os.makedirs(fpath, exist_ok=True)
214
  self.gaussians.save_ply(fpath)
215
  else:
216
  self.gaussians.load_ply(fpath)