DavidGillsjo / polygon-HGT

Polygon Detection for Room Layout Estimation using Heterogenous Graphs and Wireframes
MIT License
25 stars 4 forks source link

Cuspatial version #6

Open stansf opened 12 months ago

stansf commented 12 months ago

Hello! What version of the cuspatial package are you actually using?

In instruction Docker image rapidsai/rapidsai:cuda11.5-runtime-ubuntu20.04-py3.8 is used which has rapids of version 23.04. But, probably, in this version the API of cuspatial.point_in_polygon was changed and test.py fails:

TypeError: point_in_polygon() got an unexpected keyword argument 'poly_points_x'

LucBourrat1 commented 12 months ago

Hello @stansf ,

I have same problems, it looks like arguments of the function cuspatial.point_in_polygon() are not correct, according to the documentation: https://docs.rapids.ai/api/cuspatial/nightly/api_docs/spatial/#cuspatial.point_in_polygon

The signature is: cuspatial.point_in_polygon(points: GeoSeries, polygons: GeoSeries)

I use cuspatial 23.8.1.

I managed to make it work with a workaround:



This workaround worked for me, but inference time is a bit long and I think it is due to this function call, I get around 5s/image on a Nvidia P100 GPU, and I don't know how fast it should be.

Tell me if that works for you
DavidGillsjo commented 11 months ago

Thanks for reporting the issue. I'll adapt the project to the latest cuspatial docker and lock down the version.

If I run into problems I'll lock to an older cuspatial docker.

baudcode commented 8 months ago

@DavidGillsjo Did you manage to update the docker? Can't get this to work at all on my machine.

DavidGillsjo commented 8 months ago

I did manage to get the code running with the newer cu-spatial version. See this branch.

Unfortunately I did not get the same performance with the old model weights, so there might be a bug or possibly a need to retrain the model using the new functions.

I'm afraid I don't have the time or resources to retrain the model, but if I find some time I will continue with the debugging.

ebrahimkhalilabbasi commented 7 months ago

Hello @DavidGillsjo, Have you made any progress in improving the results (weights) for the inference_issues branch?