Spaces:
Runtime error
Runtime error
make missing subdir
Browse files
app.py
CHANGED
@@ -27,13 +27,15 @@ def run_on_gpu(input_point_cloud: gr.utils.NamedString,
|
|
27 |
|
28 |
in_file = '{}'.format(input_point_cloud.name)
|
29 |
out_dir = os.path.dirname(in_file)
|
30 |
-
|
31 |
out_file_basename = os.path.basename(in_file) + '.ply'
|
32 |
out_file = os.path.join(out_dir, os.path.basename(in_file), out_file_basename)
|
33 |
print('in_file:', in_file)
|
34 |
print('out_dir:', out_dir)
|
|
|
35 |
print('out_file:', out_file)
|
36 |
os.makedirs(out_dir, exist_ok=True)
|
|
|
37 |
|
38 |
model_path = 'models/ppsurf_50nn/version_0/checkpoints/last.ckpt'
|
39 |
|
|
|
27 |
|
28 |
in_file = '{}'.format(input_point_cloud.name)
|
29 |
out_dir = os.path.dirname(in_file)
|
30 |
+
out_subdir = os.path.join(out_dir, os.path.basename(in_file))
|
31 |
out_file_basename = os.path.basename(in_file) + '.ply'
|
32 |
out_file = os.path.join(out_dir, os.path.basename(in_file), out_file_basename)
|
33 |
print('in_file:', in_file)
|
34 |
print('out_dir:', out_dir)
|
35 |
+
print('out_subdir:', out_subdir)
|
36 |
print('out_file:', out_file)
|
37 |
os.makedirs(out_dir, exist_ok=True)
|
38 |
+
os.makedirs(out_subdir, exist_ok=True)
|
39 |
|
40 |
model_path = 'models/ppsurf_50nn/version_0/checkpoints/last.ckpt'
|
41 |
|