MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.45k forks source link

predictions = sess.run(prob_tensor, {input_node: [bgr_image]}) #9101

Closed TanviShrivastav closed 6 years ago

TanviShrivastav commented 6 years ago

Azure documentation issue guidance

Thanks for opening an issue in the Azure technical documentation repository.

We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.

Creating an issue

We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.

You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

Pull requests and article contributions

If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

We'll route the issue to the appropriate content team for review and discussion.

Tech support and product feedback

If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

TanviShrivastav commented 6 years ago

predictions = sess.run(prob_tensor, {input_node: [bgr_image]}) NameError: name 'bgr_image' is not defined Couldnt fix this. Please help and let me know where the bgr_image is defined?

TravisCragg-MSFT commented 6 years ago

@TanviShrivastav could you please post the document that you are referring to?

TanviShrivastav commented 6 years ago

https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/export-model-python This one. The last portion, in predicting the image. Thank you.

TravisCragg-MSFT commented 6 years ago

@TanviShrivastav Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

ksujanpaul commented 6 years ago

predictions = sess.run(prob_tensor, {input_node: [bgr_image]}) NameError: name 'bgr_image' is not defined

yeah it is the only error even i couldn't resolve and there is no alternative to change the variable name 'bgr_image'

fix this issue asap please

tanvi2797 commented 6 years ago

Bgr_image is an undefined parameter. Replace it with augmented_image as that is the last modification that we have done on the input image. It works for me now.

oderza commented 6 years ago

I agree with @tanvi2797 , all you need to do is replace bgr_image with augmented_image and it works like a charm. predictions = sess.run(prob_tensor, {input_node: [augmented_image]})

ksujanpaul commented 6 years ago

yeah got it thank you @tanvi2797 @oderza for the response

TravisCragg-MSFT commented 6 years ago

@ksujanpaul We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.