tensorflow / tensorflow/models

SSD MobileNet v2 batch size 1 only

Open
#10,317 5 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Oct 19, 2021.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use SSD MobileNet v2 320x320

I used exporter_main_v2.py to get saved model.
The generated saved model has hardcoded batch size 1.
Is it the Limitation of SSD models?
Is it possible to save the model with different batch sizes except of 1?

The command I'm running:

# From tensorflow/models/research
export OUTPUT_DIR=./output/ssd_mobilenet_v2_320x320_coco17_tpu-8
python object_detection/exporter_main_v2.py \
    --input_type=image_tensor \
    --pipeline_config_path=ssd_mobilenet_v2_320x320_coco17_tpu-8/pipeline.config \
    --trained_checkpoint_dir=ssd_mobilenet_v2_320x320_coco17_tpu-8/checkpoint \
    --output_directory=$OUTPUT_DIR

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.