Spaces:
Runtime error
Runtime error
Update luciddreamer.py
Browse files- 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 |
-
|
|
|
|
| 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)
|