GithubHelp home page GithubHelp logo

Comments (12)

deepakks1995 avatar deepakks1995 commented on June 11, 2024 3

@LymanLiuChina I faced the same issue, it's because the whole model is frozen at the time of exporting it. So variables folder only contain graph meta data, weights which can be used to restore the graph for training. Since we don't require any training at inference hence we have totally frozen the graph, that's why if you open the saved_model.pb file you will find the network architecture along with the frozen constants of the network. If we don't froze the graph these constants will not appear in the protoBuff file and would be saved in weights file inside variables folder.

from mrcnn_serving_ready.

huyhoang17 avatar huyhoang17 commented on June 11, 2024 1

@LymanLiuChina there is no need any files in variables folder. I used tensorflow serving and it's serve my .pb model successfully.

from mrcnn_serving_ready.

huyhoang17 avatar huyhoang17 commented on June 11, 2024 1

@LymanLiuChina hi, you can refer my serving code using gRPC on my github's repo: https://github.com/huyhoang17/matterport-maskrcnn-with-tensorflow-serving/blob/master/serve.py

Hope this answer helps you ๐Ÿ˜„
Any contributors are welcome โญ ๐Ÿ’ฏ

from mrcnn_serving_ready.

bendangnuksung avatar bendangnuksung commented on June 11, 2024

Have you modified the Path variables in user_config.py ?

from mrcnn_serving_ready.

LymanLiuChina avatar LymanLiuChina commented on June 11, 2024

I just modified a little, because I just need serving_model about mask_rcnn_coco.h5. but, in the /serving_model/1/, there is saved_model.pd,but in the /serving_model/1/variables, there isn't any file.
this is my directory,
image

this is my user_config.py:

image

from mrcnn_serving_ready.

bendangnuksung avatar bendangnuksung commented on June 11, 2024

Can you show me the full error that you are getting.

from mrcnn_serving_ready.

LymanLiuChina avatar LymanLiuChina commented on June 11, 2024

@LymanLiuChina there is no need any files in variables folder. I used tensorflow serving and it's serve my .pb model successfully.

I got it, thank you!

from mrcnn_serving_ready.

LymanLiuChina avatar LymanLiuChina commented on June 11, 2024

@LymanLiuChina I faced the same issue, it's because the whole model is frozen at the time of exporting it. So variables folder only contain graph meta data, weights which can be used to restore the graph for training. Since we don't require any training at inference hence we have totally frozen the graph, that's why if you open the saved_model.pb file you will find the network architecture along with the frozen constants of the network. If we don't froze the graph these constants will not appear in the protoBuff file and would be saved in weights file inside variables folder.

@LymanLiuChina I faced the same issue, it's because the whole model is frozen at the time of exporting it. So variables folder only contain graph meta data, weights which can be used to restore the graph for training. Since we don't require any training at inference hence we have totally frozen the graph, that's why if you open the saved_model.pb file you will find the network architecture along with the frozen constants of the network. If we don't froze the graph these constants will not appear in the protoBuff file and would be saved in weights file inside variables folder.

h

ไฝ ่ƒฝๅ‘Š่ฏ‰ๆˆ‘ไฝ ๅพ—ๅˆฐ็š„ๅฎŒๆ•ด้”™่ฏฏๅ—๏ผŸ

thank you, @huyhoang17 has told me why this problem arises.

from mrcnn_serving_ready.

LymanLiuChina avatar LymanLiuChina commented on June 11, 2024

@LymanLiuChina there is no need any files in variables folder. I used tensorflow serving and it's serve my .pb model successfully.

I am a novice, I want to deploy the mask model on the server, but according to many online tutorials, I still have many problems. Could you give me a complete Python source code (server and client) for your deployment of the maskrcnmo model?
Thank you!
this my email: [email protected]

from mrcnn_serving_ready.

LymanLiuChina avatar LymanLiuChina commented on June 11, 2024

@LymanLiuChina I faced the same issue, it's because the whole model is frozen at the time of exporting it. So variables folder only contain graph meta data, weights which can be used to restore the graph for training. Since we don't require any training at inference hence we have totally frozen the graph, that's why if you open the saved_model.pb file you will find the network architecture along with the frozen constants of the network. If we don't froze the graph these constants will not appear in the protoBuff file and would be saved in weights file inside variables folder.

Thank you. I understand!
Have you used this service_model successfully?
How do you call this model on the client?
Could you share a source code with me?

from mrcnn_serving_ready.

huyhoang17 avatar huyhoang17 commented on June 11, 2024

and thank you @bendangnuksung for your awesome project ๐Ÿ‘ ๐Ÿ’ฏ it's help me so much, thank you!

from mrcnn_serving_ready.

bendangnuksung avatar bendangnuksung commented on June 11, 2024

Closing as the original issue has been resolved.

from mrcnn_serving_ready.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.