Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualisation of Inference #2

Open
Ankit-Vohra opened this issue Aug 8, 2022 · 3 comments
Open

Visualisation of Inference #2

Ankit-Vohra opened this issue Aug 8, 2022 · 3 comments

Comments

@Ankit-Vohra
Copy link

Hello Author,
First of all want to comment your approach looks promising and I want to test it
I'm facing a couple of issues

  1. How to store the inference visualisation?
  2. Can we convert the output polygon into ESRI Shapefile or GeoJSON?
  3. Is it possible to store the black and white mask?
@SarahwXU
Copy link
Owner

SarahwXU commented Aug 9, 2022

Hi,
Thanks for your interest.
For the question 1, you can look into the function “save_viz” from utils/visualizer.py.

def save_viz(image, polys, save_path, filename):

For the question 2, it is sure that the output polygons could be converted into ESRI Shapefile or GeoJSON as long as you have the geographic coordinates. But the public AICrowd dataset does not provide that, so we do not give the code.
For the question 3, the predicted mask is acquired here:
remask_pred = remask_pred.softmax(1)[:, 1:]
. You may set a breakpoint or add the save code.

@Ankit-Vohra
Copy link
Author

Is there any way I can use my personal developed model and just try the image post processing work which you are doing to regularise the building edges

@SarahwXU
Copy link
Owner

First of all, I am not sure that I fully understand your meaning. A detailed description about the function of your personal developed model would help. Our work of HiSup emphasizes the interaction among the three representations (vertices, line segments, masks) and the joint training under all supervisions boosts the performance. From what I understand, you could add the supervisions from HiSup to your model, therefore, get a regular polygonal mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants