Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Mask visualization problem #29

Closed
lzh00 opened this issue Sep 28, 2020 · 3 comments
Closed

Mask visualization problem #29

lzh00 opened this issue Sep 28, 2020 · 3 comments

Comments

@lzh00
Copy link

lzh00 commented Sep 28, 2020

I tried to visualize the mask image with the code below:

output = 1-(occ_mask - occ_mask.min()) / (occ_mask.max() - occ_mask.min())
io.imsave(os.path.join(seq_output_folder, fname), output)

The result is not the same with your paper claimed.
Are there any problems here?

@maximelianos
Copy link

The code is misleading - MaskFlownet model does not return occlusions. If you look at the paper, this model is composed of several MaskFlownet_S, with no occlusion output in the end (figure 2 in the paper).

Thus, occlusions can be obtained only from running MaskFlownet_S, and the results are similar to the visualization.
You don't need to use normalisation there, checking min and max shows that occlusions are in range [0, 1]. Meanwhile when I ran MaskFlownet, the output was obviously optical flow, not occlusions.

@lzh00
Copy link
Author

lzh00 commented Sep 30, 2020

@lizzardhub Thank you very much. I have tried to use MaskFlownet_S configuration and model, the output occ_mask is the same with paper claimed.

@lzh00 lzh00 closed this as completed Sep 30, 2020
@Yugt4732
Copy link

Thanks a lot. But, how can I infer in my own data by MaskFlownet_S?

@lizzardhub Thank you very much. I have tried to use MaskFlownet_S configuration and model, the output occ_mask is the same with paper claimed.

The code is misleading - MaskFlownet model does not return occlusions. If you look at the paper, this model is composed of several MaskFlownet_S, with no occlusion output in the end (figure 2 in the paper).

Thus, occlusions can be obtained only from running MaskFlownet_S, and the results are similar to the visualization.
You don't need to use normalisation there, checking min and max shows that occlusions are in range [0, 1]. Meanwhile when I ran MaskFlownet, the output was obviously optical flow, not occlusions.

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

No branches or pull requests

3 participants