tensorflow / models

Models and examples built with TensorFlow
Other
77k stars 45.79k forks source link

Wrong catenation type leads to model exportation failure [TF2 + object detection] #9088

Open young24 opened 4 years ago

young24 commented 4 years ago

Prerequisites

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

1. The entire URL of the file you are using

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

2. Describe the bug

I was following the official TF2 object detection tutorial. However, I failed to export the trained model. The issue seems to be that tensorflow used '/' instead of '\' when creating some temporary file.

3. Steps to reproduce

the official TF2 object detection tutorial. I was using the pre-trained model "faster_rcnn_resnet101_640x640".

4. Expected behavior

successfully export the trained model

5. Additional context

image

6. System information

young24 commented 4 years ago

I managed to export the model "EfficientDet D1". So I guess it's a model-specific issue.

ravikyram commented 4 years ago

@young24

Glad to know that it worked for "EfficientDet D1" Will it be possible for you to share colab link for "faster_rcnn_resnet101_640x640". model so we will try to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!

young24 commented 4 years ago

@young24

Glad to know that it worked for "EfficientDet D1" Will it be possible for you to share colab link for "faster_rcnn_resnet101_640x640". model so we will try to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!

Sure. I'll try to implement it in Colab. Thanks for your message.

young24 commented 4 years ago

Hi @ravikyram , I implemented the training pipeline in colab (check it out here). However, this time worked fine. I reduced the num_steps from 30000 to 100. Is it possible that this issue is due to the local Windows machine I'm using?

Another difference is that in colab, I used a different command to export the graph. I dropped "input_type". I'm trying to reimplement the training pipeline on my local machine. I'll inform you once it's done.

young24 commented 4 years ago

I tried to reimplement the pipeline on my local machine and used the same command to export the model as in the colab. However, I got the same error message. Since it's this "\", "/" issue, I guess it's Windows-specific.

ravikyram commented 4 years ago

@young24

Request you to grant me the access for colab link. It looks the issue is more specific to your system.Thanks!

young24 commented 4 years ago

@young24

Request you to grant me the access for colab link. It looks the issue is more specific to your system.Thanks!

Hi Ravikyram, thank you for your time. I have granted you the access by your email address. Just let me know if you need anything from me.

aavishkarmishra commented 4 years ago

Hello, I am interested in this issue. Can anyone help me understand how can I resolve this problem?