hf2vad icon indicating copy to clipboard operation
hf2vad copied to clipboard

about visualization code

Open Smallwhite999 opened this issue 2 years ago • 4 comments

Hello, author, your work is very good and meaningful. Can you give the visualization related code in the visualization process, such as the visual comparison between reconstruction and prediction, such as Figure 6 and Figure 11, thanks!

Smallwhite999 avatar Mar 09 '22 07:03 Smallwhite999

matplotlib.pyplot would help.

LiUzHiAn avatar Mar 19 '22 11:03 LiUzHiAn

matplotlib.pyplot would help.

If you can, can you share your visualization code? In order to further understand and learn your paper, thank you very much!

Smallwhite999 avatar Mar 19 '22 12:03 Smallwhite999

Basically, you just need to visualize the reconstruction or prediction results with respect to the input data.

For the flows, please check https://github.com/LiUzHiAn/hf2vad/blob/0f34301dd291562d9377621d5c1fcc6550f571fc/utils/flow_utils.py#L74-L111 for help and do some basic image oprations. And for the images, just calculate the MSE or MAE, then plot them using pyplot. Thanks.

LiUzHiAn avatar Mar 19 '22 13:03 LiUzHiAn

Basically, you just need to visualize the reconstruction or prediction results with respect to the input data.

For the flows, please check

https://github.com/LiUzHiAn/hf2vad/blob/0f34301dd291562d9377621d5c1fcc6550f571fc/utils/flow_utils.py#L74-L111

for help and do some basic image oprations. And for the images, just calculate the MSE or MAE, then plot them using pyplot. Thanks.

when I run the code,I got this error “numpy.core._exceptions.MemoryError: Unable to allocate 426. TiB for an array with shape (117107452696000,) and data type float32”,how is this possible? I have checked that the .npy shape is (240, 360, 2)。

wolfworld6 avatar Jun 21 '22 10:06 wolfworld6