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

Bug: Facemesh/Blazeface ORML model hash does not match up #3

Open
capital-G opened this issue Mar 28, 2022 · 1 comment
Open

Bug: Facemesh/Blazeface ORML model hash does not match up #3

capital-G opened this issue Mar 28, 2022 · 1 comment

Comments

@capital-G
Copy link

Running https://github.com/openrndr/orml/blob/master/orml-facemesh/src/demo/kotlin/FaceMesh01.kt results in

 hash for blazeface-1.0 is 587142c11e62d4e3947c848578788eecd4b8b157da5130d2526e9a3621c4ae70 but expected 8e4f04510214d3a734868ef682f75d7b3f1dc71be27ca528945ca5e555472887 (IllegalArgumentException) 

Even when removing the cached model from /Users/xxx/Library/Application Support/orml/blazeface-1.0.pb this does not get fixed.

The hash is stored here

val bytes = fetchORMLModel(
"blazeface-1.0",
"8e4f04510214d3a734868ef682f75d7b3f1dc71be27ca528945ca5e555472887"
)

and simply replacing the hash does not help as it then returns

...
├─ FaceMesh01.main.{ :ApplicationBuilder }.{ :Program }.{ }.{ }(FaceMesh01.kt:49)
├─ FaceMesh01.main.{ :ApplicationBuilder }.{ :Program }.{ }.{ }(FaceMesh01.kt:64)
│  org.openrndr.orml.facemesh.FaceMesh.extractLandmarks(FaceMesh.kt:118)
├─ org.tensorflow.Session.Runner.feed(Session.java:248)
├─ org.tensorflow.Graph.outputOrThrow(Graph.java:211)
│
↑ No Operation named [input_1] in the Graph (IllegalArgumentException) 

I loaded the downloaded file

❯ ls -alh blazeface-1.0.pb
-rw-r--r--  1 xxx  staff   419K Mar 28 19:17 blazeface-1.0.pb

in tensorboard and looked quite strange to me, but I havent done much with tensorflow since 5 years and I am unsure if my pb->tf logs script may made something wrong

grafik

@edwinRNDR
Copy link
Member

Should be fixed in 2d2862f

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