tfjs icon indicating copy to clipboard operation
tfjs copied to clipboard

Failed to link vertex and fragment shaders.

Open 993352359 opened this issue 7 years ago • 11 comments

`const posenet = require('@tensorflow-models/posenet');

const ScaleFactor = 0.50; const flipHorizontal = false; const outputStride = 16;

// const imageElement = document.getElementById('cat');

const imageElement = document.createElement("img"); imageElement.src = "../../img/timg.jpg"; imageElement.width = "767"; imageElement.height = "1024";

//加载模型

const start = async function(){ const net = await posenet.load(); const pose = await net.estimateSinglePose(imageElement,ScaleFactor,flipHorizontal,outputStride); console.log(pose); }

start();`

C:\fakepath(77,32-58): warning X3556: integer divides may be much slower, try using uints if possible. C:\fakepath(78,32-80): warning X3556: integer divides may be much slower, try using uints if possible. C:\fakepath(116,33-81): error X4010: Unsigned integer divide by zero C:\fakepath(116,33-81): error X4010: Unsigned integer divide by zero C:\fakepath(116,33-81): warning X3556: integer divides may be much slower, try using uints if possible.

Warning: D3D shader compilation failed with default flags. (ps_5_0) Retrying with skip validation C:\fakepath(77,32-58): warning X3556: integer divides may be much slower, try using uints if possible. C:\fakepath(78,32-80): warning X3556: integer divides may be much slower, try using uints if possible. C:\fakepath(116,33-81): error X4010: Unsigned integer divide by zero C:\fakepath(116,33-81): error X4010: Unsigned integer divide by zero C:\fakepath(116,33-81): warning X3556: integer divides may be much slower, try using uints if possible.

Warning: D3D shader compilation failed with skip validation flags. (ps_5_0) Retrying with skip optimization C:\fakepath(77,32-58): warning X3556: integer divides may be much slower, try using uints if possible. C:\fakepath(78,32-80): warning X3556: integer divides may be much slower, try using uints if possible. C:\fakepath(116,33-81): error X4010: Unsigned integer divide by zero C:\fakepath(116,33-81): error X4010: Unsigned integer divide by zero C:\fakepath(116,33-81): warning X3556: integer divides may be much slower, try using uints if possible.

Warning: D3D shader compilation failed with skip optimization flags. (ps_5_0)

Failed to create D3D Shaders

993352359 avatar Mar 29 '19 07:03 993352359

This fix for this will go out in the next release! This was fixed in: https://github.com/tensorflow/tfjs-core/pull/1646

nsthorat avatar Mar 29 '19 18:03 nsthorat

I'm using / trying Tensorflow example for JS. This issue is persistent

WaseemAhmadNaeem avatar Jun 02 '19 08:06 WaseemAhmadNaeem

@WaseemAhmadNaeem can you please share more details ? @993352359 is this issue resolved for you ?

rthadur avatar Jun 03 '19 17:06 rthadur

Just to add some context, the new release hasn't gone out yet. @nsthorat was just indicating that we have a fix merged into master.

tafsiri avatar Jun 03 '19 19:06 tafsiri

@rthadur I was trying the TensorFlow JS tutorial given at Official Page. I copy pasted the code and Got this error at first step. The Tutorial is image recognition

WaseemAhmadNaeem avatar Jun 04 '19 08:06 WaseemAhmadNaeem

@WaseemAhmadNaeem could you provide a link to the tutorial you are following? The image recognition tutorials shouldn't be using posenet.

tafsiri avatar Jun 04 '19 14:06 tafsiri

https://www.tensorflow.org/js/tutorials/transfer/image_classification I'm talking about this bad boy

On Tue, Jun 4, 2019, 7:20 PM Yannick Assogba [email protected] wrote:

@WaseemAhmadNaeem https://github.com/WaseemAhmadNaeem could you provide a link to the tutorial you are following? The image recognition tutorials shouldn't be using posenet.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/tfjs/issues/1466?email_source=notifications&email_token=AFN4BSMS25A7PARAEJUZVD3PYZ22XA5CNFSM4HCHDDU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW4XD4I#issuecomment-498692593, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN4BSMCU4FRRL7I5M5SE3TPYZ22XANCNFSM4HCHDDUQ .

WaseemAhmadNaeem avatar Jun 04 '19 15:06 WaseemAhmadNaeem

This one is also crashes with the same error: https://storage.googleapis.com/tfjs-examples/tsne-mnist-canvas/dist/index.html

CoderFF avatar Jul 12 '19 04:07 CoderFF

This one is also crashes with the same error: https://storage.googleapis.com/tfjs-examples/tsne-mnist-canvas/dist/index.html

Thank you @CoderFF , tsne issues are better asked in this repo , can you please open an issue there.

rthadur avatar Jul 12 '19 15:07 rthadur

Is this fixed? Looks like the code change referenced above is in new releases?

lewisf avatar Sep 03 '19 20:09 lewisf

this is fixed and code is there in the new releases, thank you all.

rthadur avatar Sep 03 '19 21:09 rthadur