haochengxia / vscode-pydata-viewer

Display PyData files (.npz .npy .pkl .pth) in VSCode.
https://marketplace.visualstudio.com/items?itemName=Percy.vscode-pydata-viewer
MIT License
14 stars 8 forks source link

Display data as image preview #17

Open Joaquin-Gajardo opened 7 months ago

Joaquin-Gajardo commented 7 months ago

Hi

I'm interested on quickly previewing some image data that I save as .pt files with floats between 0.0 and 1.0. Do you think it could be feasible to have functionality for previewing the files as an image if they have shape (3xHxW) or (HxWx3) for example? I'm looking at alternatives such as using tiff files (because I can also save them as float) and this vscode-tiff extension, but it only works for images saved as uint8.

Thanks!

haochengxia commented 7 months ago

Thank you for your suggestion! I appreciate your input. I will review it and assess its feasibility as soon as possible.