style-transfer icon indicating copy to clipboard operation
style-transfer copied to clipboard

Troublr with OpenCV

Open remitoudic opened this issue 2 years ago • 0 comments

After downloading the model and docker compose up I get this error message : ` style-transfer-backend-1 | INFO: 172.30.0.1:48984 - "GET / HTTP/1.1" 200 OK style-transfer-backend-1 | INFO: 172.30.0.1:48984 - "GET /favicon.ico HTTP/1.1" 405 Method Not Allowed style-transfer-backend-1 | [ERROR:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (3872) getLayerShapesRecursively OPENCV/DNN: [Convolution]:(l2_Convolution): getMemoryShapes() throws exception. inputs=1 outputs=0/1 blobs=2 style-transfer-backend-1 | [ERROR:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (3878) getLayerShapesRecursively input[0] = [ 1 4 720 1500 ] style-transfer-backend-1 | [ERROR:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (3886) getLayerShapesRecursively blobs[0] = CV_32FC1 [ 16 3 9 9 ] style-transfer-backend-1 | [ERROR:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (3886) getLayerShapesRecursively blobs[1] = CV_32FC1 [ 16 1 ] style-transfer-backend-1 | [ERROR:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (3888) getLayerShapesRecursively Exception message: OpenCV(4.5.5) /io/opencv/modules/dnn/src/layers/convolution_layer.cpp:404: error: (-2:Unspecified error) Number of input channels should be multiple of 3 but got 4 in function 'getMemoryShapes'

it seems to be with the ML model , I guess something is outdated /deprecited ... Does someone has an idea how to fix it ? Thank in advance

remitoudic avatar Apr 19 '22 16:04 remitoudic