reactjstensorflowwebglobject-detection-api

Error with tensorflow.js and reactjs only on mobile browsers


I created an object detection model that I use on my react app and on desktop it works perfectly but when tried on mobile browsers getting the following error. Error: Requested texture size [4988x4989] greater than WebGL maximum on this browser / GPU [4096x4096].

Error while running prediction on mobile browser


Solution

  • There is not much you can do. This is the limitation of the browser and on the phone browser, the WebGL does not have much memory available.

    You can read more about this issue raised in Tensorflowjs.