Polygonization-by-Frame-Field-Learning
Polygonization-by-Frame-Field-Learning copied to clipboard
Error during Model Evaluation: ValueError: need at least one array to concatenate
After training on INRIA dataset using the polygonized_unetresnet_leaderboard run, I tried to evaluate the model using --mode eval on the same config. The error was faced in the tensorpoly.py file inside the transforms folder.
File "Polygonization-by-Frame-Field-Learning/pytorch_lydorn/torch_lydorn/torchvision/transforms/tensorpoly.py", line 78, in polygons_to_tensorpoly pos = np.concatenate(polygon_list, axis=0) File "<array_function internals>", line 180, in concatenate ValueError: need at least one array to concatenate
Here, the polygon list is empty, there are no polygons there so it is not finding any arrays to concatenate. It is in the polygon_to_tensorpoly function and the author has mentioned in the comments in Line 50 # TODO: If there are no polygons but it has not been implemented. I would like to ask if anyone had come across this problem. I would glad to learn more about it.
Thank you.