Spaces:
Runtime error
Runtime error
write output next to input
Browse files
app.py
CHANGED
@@ -24,15 +24,10 @@ def run_on_gpu(input_point_cloud: gr.utils.NamedString,
|
|
24 |
|
25 |
sys.path.append(os.path.abspath('ppsurf'))
|
26 |
import subprocess
|
27 |
-
import uuid
|
28 |
|
29 |
in_file = '{}'.format(input_point_cloud.name)
|
30 |
-
|
31 |
-
|
32 |
-
out_dir = 'outputs/{}'.format(rand_hash)
|
33 |
-
out_file_basename = os.path.basename(in_file) + '.obj'
|
34 |
-
out_file = os.path.join(out_dir, os.path.basename(in_file), out_file_basename)
|
35 |
-
os.makedirs(out_dir, exist_ok=True)
|
36 |
|
37 |
model_path = 'models/ppsurf_50nn/version_0/checkpoints/last.ckpt'
|
38 |
|
|
|
24 |
|
25 |
sys.path.append(os.path.abspath('ppsurf'))
|
26 |
import subprocess
|
|
|
27 |
|
28 |
in_file = '{}'.format(input_point_cloud.name)
|
29 |
+
out_dir = os.path.dirname(in_file)
|
30 |
+
out_file = in_file + '_out.obj'
|
|
|
|
|
|
|
|
|
31 |
|
32 |
model_path = 'models/ppsurf_50nn/version_0/checkpoints/last.ckpt'
|
33 |
|