CompressAI icon indicating copy to clipboard operation
CompressAI copied to clipboard

[onnx] Are entropy_bottleneck.compress and gaussian_conditional.compress can be convert to onnx?

Open YI-MAX-YAN opened this issue 2 years ago • 4 comments

Hi, I want to convert a compress_codec containing g_a h_a h_s entropy_bottleneck.compress, and gaussian_conditional.compress . However, the output of onnx is different from the pth. Is this suitable to convert entropy_bottleneck.compress to onnx? @fracape

YI-MAX-YAN avatar Aug 02 '23 13:08 YI-MAX-YAN

Hi, I want to convert a compress_codec containing g_a h_a h_s entropy_bottleneck.compress, and gaussian_conditional.compress . However, the output of onnx is different from the pth. Is this suitable to convert entropy_bottleneck.compress to onnx? @fracape

Hi, have you solved this problem yet? I would also like to try to convert them to onnx models, but don't know how to do it. If you know can you reply me? thanks!!!

GZLiao-sysu avatar Mar 29 '24 12:03 GZLiao-sysu

sorry i still cannot fix this problem

YI-MAX-YAN avatar Mar 31 '24 07:03 YI-MAX-YAN

sorry i still cannot fix this problem

Hi! I'm wondering if you've also encountered the following problem: When I tried to transport the result output, I found that a Unicode decoder error (utf-8) while converting the ONNX model, preventing the proper output of the result. Then I attempted to calculate the bpp using onnx, but the final result differed significantly from the PTH. To find the reason, I used the Netron to view the exported ONNX structure, which revealed that the calculation of bpp did not utilize entropy_bottleneck,_compression, and Gaussian_conditional_compression, but instead used a constant.

YuKDseele avatar May 14 '24 09:05 YuKDseele

sorry i still cannot fix this problem

Hi! I'm wondering if you've also encountered the following problem: When I tried to transport the result output, I found that a Unicode decoder error (utf-8) while converting the ONNX model, preventing the proper output of the result. Then I attempted to calculate the bpp using onnx, but the final result differed significantly from the PTH. To find the reason, I used the Netron to view the exported ONNX structure, which revealed that the calculation of bpp did not utilize entropy_bottleneck,_compression, and Gaussian_conditional_compression, but instead used a constant.

Just encounterd the same problem, have you solved the Unicode decoder error (utf-8) yet?,

StuDDXT1610 avatar Oct 02 '24 11:10 StuDDXT1610