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

Failed to link vertex and fragment shaders #9

Open
DIVIBEAR opened this issue Apr 13, 2019 · 2 comments
Open

Failed to link vertex and fragment shaders #9

DIVIBEAR opened this issue Apr 13, 2019 · 2 comments

Comments

@DIVIBEAR
Copy link

DIVIBEAR commented Apr 13, 2019

I got an error running the demo:Failed to link vertex and fragment shaders.

<template>
  <div>
    <img style="width: 100%" id="cat" src="../../assets/face.jpg" />
  </div>
</template>
<script>
import * as posenet from '@tensorflow-models/posenet'

const imageScaleFactor = 0.5
const outputStride = 16
const flipHorizontal = false

export default {
  data () {
    return {}
  },
  methods: {
    async estimatePoseOnImage (imageElement) {
      const net = await posenet.load()
      const pose = await net.estimateSinglePose(imageElement, imageScaleFactor, flipHorizontal, outputStride)
      return pose
    }
  },
  mounted: function () {
    const imageElement = document.getElementById('cat')
    const pose = this.estimatePoseOnImage(imageElement)
  }
}
</script>

can you help me. thank you!

@DIVIBEAR
Copy link
Author

fixed "@tensorflow/tfjs": "^1.0.4"

@zifeiyuSun
Copy link

but I still have same issue, even through I update to 1.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants