Spaces:
Paused
Paused
fix event parameter type
Browse files
app.py
CHANGED
|
@@ -28,8 +28,11 @@ def run_on_gpu(input_shape):
|
|
| 28 |
def main():
|
| 29 |
description = '''# [PPSurf](https://github.com/cg-tuwien/ppsurf)
|
| 30 |
|
| 31 |
-
Supported file formats:
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 33 |
Best results for 50k-250k points.
|
| 34 |
|
| 35 |
This method is meant for scans of single and few objects.
|
|
@@ -38,9 +41,9 @@ def main():
|
|
| 38 |
Inference takes about 2 minutes.
|
| 39 |
'''
|
| 40 |
|
| 41 |
-
def convert_to_ply(input_point_cloud_upload:
|
| 42 |
-
print('inputs:', input_point_cloud_upload
|
| 43 |
-
input_shape = input_point_cloud_upload
|
| 44 |
if not input_shape.endswith('.ply'):
|
| 45 |
# load file
|
| 46 |
from ppsurf.source.occupancy_data_module import OccupancyDataModule
|
|
|
|
| 28 |
def main():
|
| 29 |
description = '''# [PPSurf](https://github.com/cg-tuwien/ppsurf)
|
| 30 |
|
| 31 |
+
Supported file formats:
|
| 32 |
+
- PLY, STL, OBJ and other mesh files,
|
| 33 |
+
- XYZ as whitespace-separated text file,
|
| 34 |
+
- NPY and NPZ (key='arr_0'),
|
| 35 |
+
- LAS and LAZ (version 1.0-1.4), COPC and CRS.
|
| 36 |
Best results for 50k-250k points.
|
| 37 |
|
| 38 |
This method is meant for scans of single and few objects.
|
|
|
|
| 41 |
Inference takes about 2 minutes.
|
| 42 |
'''
|
| 43 |
|
| 44 |
+
def convert_to_ply(input_point_cloud_upload: str):
|
| 45 |
+
print('inputs:', input_point_cloud_upload)
|
| 46 |
+
input_shape = input_point_cloud_upload
|
| 47 |
if not input_shape.endswith('.ply'):
|
| 48 |
# load file
|
| 49 |
from ppsurf.source.occupancy_data_module import OccupancyDataModule
|