bendangnuksung / mrcnn_serving_ready

🛠 Mask R-CNN Keras to Tensorflow and TFX models + Serving models using TFX GRPC & RESTAPI
https://github.com/matterport/Mask_RCNN
MIT License
103 stars 35 forks source link

how can I use the pb file to inference #5

Closed wlsonia closed 5 years ago

wlsonia commented 5 years ago

Dear bendangnuksung,

First of all thanks for the code it was really helpful. but,I have a question,how can I use the pb file to inference?

bendangnuksung commented 5 years ago

Hi! I was able to do the inference file using this.
There is a typo. Do change it from:

forward_model = Forward('path/to/pb/', my_config)
results = forward_model(list_of_image_arrays)

to:

forward_model = ForwardModel('path/to/pb/', my_config)
results = forward_model(list_of_image_arrays)
buaacarzp commented 5 years ago

what's the list_of_image_arrays?

rahulgullan commented 4 years ago

Hi bendangnuksung, Very thanks to your code. It helped me a lot The client code use gRPC to send the request. How can I implement the same using HTTP request. I'm really struggling to create the 'request body' with a test image.