如何获取download.tensorflow.org上TensorFlow预训练模型的完整列表?
download.tensorflow.org/models Hey there! Great question—tracking down all those pre-trained Inception and MobileNet models (with their graph.pb and labels.txt files) scattered across random blog links can be super frustrating. Here are a few reliable, straightforward ways to get a complete list of what's available in the download.tensorflow.org/models repository:
1. Use the gsutil Command (Most Reliable Method)
Google Cloud Storage (GCS) hosts the download.tensorflow.org/models bucket, and the gsutil tool lets you directly browse its contents:
- First, make sure you have the Google Cloud SDK installed (which includes
gsutil). - Run this command to list all models in the root directory:
gsutil ls gs://download.tensorflow.org/models/ - To filter specifically for Inception models (all versions), use:
gsutil ls gs://download.tensorflow.org/models/inception* - For MobileNet models (all variants), run:
gsutil ls gs://download.tensorflow.org/models/mobilenet*
This will show you every relevant model archive (like the inception5h.zip and inception_dec_2015.zip you found) plus other versions like Inception v1/v2/v3/v4, and all MobileNet variants (differing in width, resolution, and training datasets). Each zip file contains the graph.pb (or frozen_inference_graph.pb for newer models) and labels.txt files you need.
2. Check TensorFlow's Official Model Documentation
TensorFlow's official pre-trained models documentation categorizes and lists every officially hosted model, including those stored in the download.tensorflow.org/models bucket. You can find structured lists for:
- All Inception variants, with details on their use cases and storage paths
- All MobileNet versions (including lightweight and quantized variants)
This documentation will point you directly to the exact model files you need, without relying on random blog links.
3. Browse the Public Storage Bucket Structure
While some GCS buckets don’t have public web indexes, you can manually explore the download.tensorflow.org/models path by constructing URLs for known model prefixes. However, this method is less reliable than using gsutil since not all directories are indexed publicly.
内容的提问来源于stack exchange,提问作者James




