neural-compressor
neural-compressor copied to clipboard
Resnet Onnx example breaks with Windows11 WSL2
Hi,
Is it possible to run this with WSL2? The ONNX Resnet example breaks with Windows11 WSL2

Hi, thanks for raising the issue. We test with Win10 + WSL1 + onnx rn50 and it works. Which INC version did you test for?
1.14.1 I also tried the non-custom examples and it also ran into error.
wsl version

Using Ubuntu 20.04LTS as my WSL2 distro

Hi, we reproduced your issue on windows, debug in progress.
Hi, sorry for the late reply.
While running quantization with inc_bench, the diagnosis option will be default set as true.
So the tool will do diagnosis after tuning, it's going to dump a lot of information of data distribution which is quite memory consuming.
During our debugging on PC, it usually failed after dump 1/3 node info of ssd resnet50, we think it's due to out of memory.

Solutions:
- If you want to use
inc_bench, please use a server with large memory.
And we will also try to optimize this large data handling issue. Or may be give an option to close thediagnosisfunction. - If you would like to run examples with cmd, it will work. Because you can customized the yaml, you can run the example without
diagnosisfunction.
Thanks @chensuyue for your continued efforts on this. I will try this again once I have time.