tensorflow / models

Models and examples built with TensorFlow
Other
77.04k stars 45.77k forks source link

Downloads of object detection models blocked by default on Chrome #9350

Open TylerADavis opened 4 years ago

TylerADavis commented 4 years ago

Prerequisites

Please answer the following question for yourself before submitting an issue.

1. The entire URL of the documentation with the issue

https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md

2. Describe the issue

Chrome is automatically blocking downloads of object detection models in the tf2 object detection zoo (though the block can be worked around by explicitly telling Chrome you want to download the file despite the security implications).

Since Chrome 84, Chrome blocks downloads by default if the download is over HTTP while the page the user is currently on is served over HTTPS (https://www.zdnet.com/article/google-to-block-some-http-file-downloads-starting-with-chrome-83/ , https://blog.chromium.org/2020/02/protecting-users-from-insecure.html). This is the case for the model zoo, where the models download over HTTP while Github is delivered over HTTPS.

Below is an example of a model download link that does not work when clicked from inside the model zoo (or when clicked from this issue): http://download.tensorflow.org/models/object_detection/tf2/20200711/efficientdet_d0_coco17_tpu-32.tar.gz

I believe fixing this issue will be more involved than simply adding an s to make https as that will result in a cert domain name mismatch.

I would be glad to implement a fix for this issue, but I am not sure of the best course.

image

3. Steps to reproduce

  1. View the model zoo at https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md
  2. Try to download a model by clicking its name
  3. Observe that the download is blocked image
TylerADavis commented 3 years ago

This also applies to the TF1 model zoo as well, linked below

https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf1_detection_zoo.md