Tfjs: Failed to link vertex and fragment shaders.

Created on 29 Mar 2019  Â·  11Comments  Â·  Source: tensorflow/tfjs

`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

bug

Most helpful comment

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

All 11 comments

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

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

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

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.

@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 could you provide a link to the tutorial you are following? The image recognition tutorials shouldn't be using posenet.

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 notifications@github.com
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
.

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rlexa picture rlexa  Â·  3Comments

dhrumil83 picture dhrumil83  Â·  3Comments

lastnod picture lastnod  Â·  3Comments

beele picture beele  Â·  3Comments

pranayaryal picture pranayaryal  Â·  4Comments