tensorflow / tensorflow/models
Cropping to 513x513 policy and inference for original size images
@aquariusjay is already working on this.
Since Oct 25, 2021.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
The documentation of Deeplab on semantic segmentation task in PascalVoc2012 (https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/pascal.md) describes how to train and validate the model on the validation set with cropped images (513x513). This doesn't describe how to make the segmentation for the test set (with the uncropped images).
The only way I found to do so is to take the original images and a batch size of 1 (in order to avoid the dimension mismatch in tensors) and perform the inference this way. Unfortunately making so reduces the accuracy on test set (by 8 % as I tested it on the official evaluation server). Could you please describe how to do the inference on the original sized images and with a model that has been trained with a 513x513 crop option ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.