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

How to open .npy file as shown in the paper ? #25

Open
Roy2xc opened this issue Sep 8, 2021 · 4 comments
Open

How to open .npy file as shown in the paper ? #25

Roy2xc opened this issue Sep 8, 2021 · 4 comments

Comments

@Roy2xc
Copy link

Roy2xc commented Sep 8, 2021

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!!!

@patriksabol
Copy link

You can use following script at master/scripts/plot_framefield.py

@Anne-69
Copy link

Anne-69 commented Sep 9, 2021

Can the author Roy2xc get the output after running an Inference on an image?

@Roy2xc
Copy link
Author

Roy2xc commented Sep 9, 2021

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"])

@cyy-1234
Copy link

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

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

4 participants