Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requested texture size 4800*4736 greater than webGL maximum on this browser 4096 * 4096 #689

Closed
narensprinter opened this issue Sep 10, 2018 · 6 comments
Assignees
Labels
comp:models type:support user support questions

Comments

@narensprinter
Copy link

I'm getting this error on "Requested texture size 4800*4736 greater than webGL maximum on this browser 4096 * 4096" while checking tfjs on mobile browser

@DavidGOrtega
Copy link

WoW, Im pretty interested on this, since my laptop can't handle images above 256x256 with vgg16. And sometimes part if the output is just missed probably due to memory. What kind of net are you running over that huge image?

@rthadur
Copy link
Contributor

rthadur commented Nov 7, 2018

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

@rthadur rthadur closed this as completed Nov 7, 2018
@ClemHlrdt
Copy link

Hey. I have a similar issue. I am trying to load my model but I get the following error:

Error: Requested texture size [2795x2795] greater than WebGL maximum on this browser / GPU [2048x2048].

This error appears in Firefox console but not on Chrome for some reason. Any idea what could cause the issue ?

My model is Embedding layer => Convolution => MaxPooling => Dense layer.
Video card: GTX 1060 3Go

@rthadur rthadur reopened this Jun 18, 2019
@rthadur rthadur added comp:models type:support user support questions labels Jun 18, 2019
@ClemHlrdt
Copy link

ClemHlrdt commented Jun 19, 2019

The problem seems to be linked to the regular edition of Firefox.
I tried my model on Edge, Chrome and Safari and it works. The error is linked to WebGL .

On Chrome, Safari and Firefox Dev Edition:

var canvas = document.createElement('canvas');
var gl = canvas.getContext('webgl');
gl.getParameter(gl.MAX_TEXTURE_SIZE); // 16 384

On Firefox:

var canvas = document.createElement('canvas');
var gl = canvas.getContext('webgl');
gl.getParameter(gl.MAX_TEXTURE_SIZE); // 2048

@nsthorat
Copy link
Contributor

Unfortunately there's not really much we can do, this is a fundamental limitation of Firefox. We do our best to reshape memory so that one dimension doesn't exceed the dimensions but if a single texture can't hold all the memory of the Tensor we're kind of out of luck :/

@rthadur
Copy link
Contributor

rthadur commented Oct 14, 2019

closing this issue based on latest comments , thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:models type:support user support questions
Projects
None yet
Development

No branches or pull requests

5 participants