ermig1979 / Synet

A small framework to infer neural network
MIT License
140 stars 26 forks source link

Access violation in Convolution32fLayer::ForwardCpu #19

Closed Berzhik closed 3 years ago

Berzhik commented 3 years ago

Hello! I'm trying to run the network on this model. I successfully converted the model, but when I run the network I receive the following error

Access violation writing location

in the file ImgToCol.h:194

ermig1979 commented 3 years ago

I will check it tomorrow.

ermig1979 commented 3 years ago

The bugs was fixed. Thank you for bug report!

Berzhik commented 3 years ago

Hello I tried to run the network on the image data/inference_engine/test_011f/image/vehicles_01.ppm and have the following error

src/Synet/Tensor.h:418: void Synet::Tensor::ShareAs(const Synet::Tensor&, const Shape&, const Synet::TensorFormat&) [with T = float; Synet::Shape = std::vector]: Assertion `Size(0, _shape.size()) <= _buffer->size' failed

My code looks the same as your use example src/Use/UseFaceDetection.cpp

ermig1979 commented 3 years ago

Unfortunately, I can't reproduce the error. Would you give more information?

Berzhik commented 3 years ago

I sent you the model, that I receive after conversion, via email. The error happens on the Reshape step in the layer with the name SSD/concat_reshape_softmax/mbox_loc_final CPU - AMD Ryzen 5 2600. Tell me if you need any other information

ermig1979 commented 3 years ago

Do you perform Networ::Reshape before inference? You network has fixed size. So it can't be resized. Use original input size.

Berzhik commented 3 years ago

Sure, thanks!