#875·nsfwjs

Angular 14 ng production build gives "the tensor should have 409600 values but has 5803"

Author: bbright-dineshCreated Aug 4, 2024Updated Oct 15, 2024

When I try to run the angular 14 in debug build, I am able to scan the image and getting the proper image properties.

But, When I run in production build, We are getting the above error while parsing image. Is there any different between prod/debug build ???

Kindly let us know.

We are using mobilnet_v2 for scanning the images.

Here is the full error message.

Based on the provided shape, [1,1,320,1280], the tensor should have 409600 values but has 5803