# Google posenet dependencies missing!

**URL:** <https://discourse.processing.org/t/google-posenet-dependencies-missing/12454>\
**Category:** p5.js\
**Created:** [July 2, 2019, 4:14pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454 "2019-07-02T16:14:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparrow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sparrow/32/5715_2.png) [@Sparrow](https://discourse.processing.org/u/Sparrow)\
**Post date:** [July 2, 2019, 4:14pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/1 "2019-07-02T16:14:48Z")

</div>

Hey guys! Just wanted to thank you for setting up p5js, it is an enormous help with rapid prototyping stuff!

So I’ve been using posenet on p5js extensively for a university project in time and motion studies, works like a charm every time.  
However, this morning no p5js posenet stuff wants to work, even on the p5 web editor. The reason is that it can’t find the mobile\_net weights dependency on the google servers! Please tell me they still exist and this isn’t permanent!

This is the link to the resource it can’t find:

[https://storage.googleapis.com/tfjs-models/weights/posenet/mobilenet\_v1\_075/manifest.json](https://storage.googleapis.com/tfjs-models/weights/posenet/mobilenet_v1_075/manifest.json)

Any help could save me from trouble

Kind Regards,

Dale Sparrow

---

<div class="post-metadata">

**Author:** ![Sparrow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sparrow/32/5715_2.png) [@Sparrow](https://discourse.processing.org/u/Sparrow)\
**Post date:** [July 2, 2019, 4:24pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/2 "2019-07-02T16:24:43Z")

</div>

I’ve just tried it again after 8 hours, and it seems to be working again. Would there be an explanation to why the tensor-flow weights weren’t available? I know I had internet connection at the time.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [July 6, 2019, 12:05pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/3 "2019-07-06T12:05:07Z")

</div>

Have you had any further trouble since?

---

<div class="post-metadata">

**Author:** ![Sparrow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sparrow/32/5715_2.png) [@Sparrow](https://discourse.processing.org/u/Sparrow)\
**Post date:** [July 6, 2019, 11:01pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/4 "2019-07-06T23:01:38Z")

</div>

Hi Jeremy, I will check as soon as I’m back in the labs Monday, but it worked Friday! Thanks for checking up.

---

<div class="post-metadata">

**Author:** ![figraham](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/figraham/32/4161_2.png) [@figraham](https://discourse.processing.org/u/figraham)\
**Post date:** [July 7, 2019, 12:23am UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/5 "2019-07-07T00:23:24Z")

</div>

I don’t know if posenet uses Cloudflare but it could be related to their outage on Tuesday. Otherwise it was probably something to do with google servers. An unfortunate side effect of using cloud services is that they can be unreliable.

---

<div class="post-metadata">

**Author:** ![Sparrow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sparrow/32/5715_2.png) [@Sparrow](https://discourse.processing.org/u/Sparrow)\
**Post date:** [July 7, 2019, 5:22pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/6 "2019-07-07T17:22:48Z")

</div>

Yes, it does make the flexibility and plug-and-play nature of the systems we’re developing amazing, but we’re doing things for manufacturing systems and it would be amazing if we could secure data access to things like this by downloading and storing a local copy now and then.

Do you know how we could do this?

I am trying to show the old-people used to CNC programming the benefits of tech and community projects like this, but minimizing downtime of their systems is essential before they can see these benefits.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [July 7, 2019, 7:13pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/7 "2019-07-07T19:13:20Z")

</div>

It sounds like you want to incorporate CDN to local fallback into your project. I haven’t set this up myself, but I believe that you can do it manually, or using jQuery, or using a specialty shim libarary like [fallback.io](http://fallback.io). Here are some links:

> **[Using a fallback code in case bootstrap's cdn is down](https://www.freecodecamp.org/forum/t/using-a-fallback-code-in-case-bootstraps-cdn-is-down/160753/11)**
>
> @adityaparab Yes, that can definitely happen. I never ran into a situation like this, but you are absolutely right 🙂 @baltz1 You have to put the code into the head of your HTML document, it then inserts the two lines in the head. If you would put...

> **[CDNs fail, but your scripts don't have to - fallback from CDN to local jQuery](https://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx)**
>
> There's a great website called http://whoownsmyavailability.com that serves as a reminder to me (and all of us) that ...

> <https://stackoverflow.com/questions/16077276/how-to-load-local-files-if-cdn-is-not-working>

[http://fallback.io/](http://fallback.io/)

---

<div class="post-metadata">

**Author:** ![Sparrow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sparrow/32/5715_2.png) [@Sparrow](https://discourse.processing.org/u/Sparrow)\
**Post date:** [July 7, 2019, 10:56pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454/8 "2019-07-07T22:56:42Z")

</div>

Awesome, thanks for pointing this out!
