tensorflow / tensorflow/models
deeplab model_variant="nas_pnasnet" - unable to export_model
@aquariusjay is already working on this.
Since Dec 28, 2020.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Hello supporters
I am using tensorflow 1.13.1
with tensorflow model garden version 1.11
2. Describe the bug
export_model.py --checkpoint_path=myCheckpoint num_classes=2 --export_path=MyTarget.pb --model_variant="nas_pnasnet"
fails with InvalidArgumentError: Restoring from checkpoint failed
Assign requires shapes of both tensors to match. lhs shape= [3,3,40,1] rhs shape= [3,3,80,1]
my purpose right now it to train for 100 epochs, export a frozen graph , execute it on a few images and check the runtime of each model variant.
I have already managed to train and export on my dataset using model_variants mobilenet_v2, resnet_v1_50, resnet_v1_50_Beta, resnet_v1_101, resnet_v1_101_beta, xception_41, xception_65, xception_71.
but when i changed the model_variant value to nas_pnasnet ( on both train and export ) , export fails with the error described above.
( this error does looks differently to me from the very common misuse of the dataset[classes] paramter ).
please advise.
Thanks,
Omer.
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.