HorizonNet icon indicating copy to clipboard operation
HorizonNet copied to clipboard

Error in inference.py

Open muachichi opened this issue 4 years ago • 0 comments

After I trained by my customized data I want to evaluate the model on the test set. But when I run the inference.py for general shape estimation, the error came out and progress interrupted:

Traceback (most recent call last): File "inference.py", line 198, in args.min_v, args.r) File "inference.py", line 112, in inference if not Polygon(xy2d).is_valid: File "/home/anaconda3/lib/python3.7/site-packages/shapely/geometry/polygon.py", line 240, in init ret = geos_polygon_from_py(shell, holes) File "/home/anaconda3/lib/python3.7/site-packages/shapely/geometry/polygon.py", line 494, in geos_polygon_from_py ret = geos_linearring_from_py(shell) File "shapely/speedups/_speedups.pyx", line 239, in shapely.speedups._speedups.geos_linearring_from_py ValueError: A LinearRing must have at least 3 coordinate tuples

Is it the reason that corners estimations are so bad that it could not generate a polygon? Could you tell me why this happened? Thanks a lot.

muachichi avatar Jan 21 '20 08:01 muachichi