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 fetch saved models in example #314

Open
nickcalarco66 opened this issue Jul 26, 2023 · 4 comments
Open

Failed to fetch saved models in example #314

nickcalarco66 opened this issue Jul 26, 2023 · 4 comments

Comments

@nickcalarco66
Copy link

Hello,

I cloned the repo locally and started the application per the instructions.

When attempting to go through the "Calibration on Empty Page" live demo, I'm getting console errors related to tfhub.dev resources failing to fetch the models being used.

Screenshot 2023-07-26 at 10 25 39 AM

I'm not sure if there was some change recently, but I'm unable to try either of the live demos.

Thanks!

@jeffhuang
Copy link
Contributor

Can you verify if the live demo on the webgazer website works? If so, then it's just that when you run on localhost, the CORS policy doesn't allow you to access the facemesh model online. So it's not really an issue for deployed setups. I've been wanting to take that offline for various reasons, so if you want to give it a try, feel free.

@nickcalarco66
Copy link
Author

I just tried on the live demo (https://webgazer.cs.brown.edu/collision.html), and it's happening there as well.

@sfahmadzadeh
Copy link

I have the same problem. Could you find any solution?

@ncalarco
Copy link

ncalarco commented Jan 3, 2024

No solution - it appears that the site that hosts the models periodically goes down (https://www.tensorflow.org/hub) or is unable to resolve the models. It usually corrects itself within a day or so.

We've looked at the facemesh library that webgazer is using, I believe there is a way to pass the models in yourself, however, you'd need to fork webgazer to implement it.

If you look here, you can see that the model url's are stored statically.

If you look here, this is where the load process is defined which webgazer uses.

Our plan was to host the models somewhere outside tfhub, fork webgazer and define the path/url to our local models which would end the dependency of tfhub always being available - we just haven't had the time to try this yet.

For reference, I believe webgazer initializes facemesh here.

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

4 participants