brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.53k stars 532 forks source link

Problems using webgazer.js in areas restricted by network access #248

Open jardeng opened 2 years ago

jardeng commented 2 years ago

Dear developers: I am currently using webgazer.js in China. I am restricted by Chinese access and cannot access foreign websites. I need to download the group1-shard1of1.bin file needed in model.json and model.json to my project local To load it, it will not work normally after it is placed locally. Please see the screenshot for the specific error. Please help me provide a solution, thank you.

2 1

jeffhuang commented 2 years ago

There was another user who reached out and wanted an internet-not-required configuration. I'd love to see this too, as I think it's the same issue. I thought that WebGazer 2.3.2 might not need to download the model, but now I'm not so sure. There should be a way to do this (caching the model), but I haven't investigated further. So some help would be appreciated.

Tectract commented 2 years ago

Brown University should consider restricting access to potentially dual-use technology so it cannot be accessed by the Chinese military.

bbonf commented 2 years ago

Kinda ugly workaround, but here's a script I use to replace model loading from absolute tensorflow-hub URLs with local URLs in (built) webgazer.js: https://github.com/UiL-OTS-labs/WebGazer/blob/master/localize.sh