Polygonization-by-Frame-Field-Learning
Polygonization-by-Frame-Field-Learning copied to clipboard
How to open .npy file as shown in the paper ?
As the title... I run an inference and got a "crossfield" dir with the output "X.npy" inside. I guess this is the frame field in Paper, but how to show it? I tried using numpy but not work, which function did you use? Could you give me some hint? Thank you very much!!!
You can use following script at master/scripts/plot_framefield.py
Can the author Roy2xc get the output after running an Inference on an image?
Can the author Roy2xc get the output after running an Inference on an image?
Yes, by modifying the inference_from_filepath , just set config["compute_seg"] = True, and config["eval_params"]["save_individual_outputs"]["seg_mask"] =True Then you can find the output.
if config["compute_seg"]:
if config["eval_params"]["save_individual_outputs"]["seg_mask"]:
seg_mask = 0.5 < tile_data["seg"][0]
save_utils.save_seg_mask(seg_mask, out_base_filepath, "mask", tile_data["image_filepath"])
if config["eval_params"]["save_individual_outputs"]["seg"]:
save_utils.save_seg(tile_data["seg"], out_base_filepath, "seg", tile_data["image_filepath"])
if config["eval_params"]["save_individual_outputs"]["seg_luxcarta"]:
save_utils.save_seg_luxcarta_format(tile_data["seg"], out_base_filepath, "seg_luxcarta_format",
tile_data["image_filepath"])
run an inference and got a "crossfield"
Hello, how did you achieve "run an inference and got a "crossfield", can you tell me which py file is running? Sorry, my English is not good