Giter VIP home page Giter VIP logo

ai-fundamentals's Introduction

Microsoft Learn AI Fundamentals Exercises

The sample code in this repository is for use in hands-on exercises that support preparation for the Microsoft Azure AI Fundamentals certification.

Contributing

At this time, we are not accepting contributions to this repository. If you encounter an issue with the exercises, please report it.

ai-fundamentals's People

Contributors

graememalcolm avatar microsoft-github-operations[bot] avatar microsoftopensource avatar sherzyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai-fundamentals's Issues

Operation returned an invalid status code 'Access Denied' on Image Classification

Hi,

I followed the lab Image Classification but could not use the model because I kept getting Operation returned an invalid status code 'Access Denied'.

I double and triple checked

project_id = 'xxx'
cv_key = 'xxx'
cv_endpoint = 'xxx'
model_name = 'xxx'

But still got the same error. Even tried the secondary key for the cv_key but that also didn't help. Are we missing a step in the code??

The method used to create the "cog_region" variable no longer gives the right result

File: 02b - Speech.ipynb
Link: https://github.com/MicrosoftDocs/ai-fundamentals/blob/master/02b%20-%20Speech.ipynb
Issue Description: found in "Line 49"

"cog_region = cog_endpoint[8:cog_endpoint.find('.')]\n",

For new cognitive service resources, this variable returns the name and not the region of the resource which leads to "SpeechRecognitionResult(result_id=**************, text="", reason=ResultReason.Canceled) later down the line

Worked around by statically entering the region of the resource

Not able to connect QnA service to KB

When following instructions in QnA BOT.ipynb
when trying to select Azure QnA service, it says "This role does not have permissions for this action"

Folder structure

In the text analytics notebook, this is the code:

general

The issue is that sample is in a different path that expected.

draw

resource not foun - 01a - Image Analysis with Computer Vision

I use anaconda to run 01a - Image Analysis with Computer Vision.ipynb.

I get a 'resource not found' error, however the store_cam1.jpg file is in the right folder.

Here is the code:
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from msrest.authentication import CognitiveServicesCredentials
from python_code import vision
import os
%matplotlib inline

'# Get the path to an image file
image_path = os.path.join('data', 'vision', 'store_cam1.jpg')

'# Get a client for the computer vision service
computervision_client = ComputerVisionClient(cog_endpoint, CognitiveServicesCredentials(cog_key))

'# Get a description from the computer vision service
image_stream = open(image_path, "rb")#
description = computervision_client.describe_image_in_stream(image_stream)

'# Display image and caption (code in helper_scripts/vision.py)
vision.show_image_caption(image_path, description)

Here is the error message:


ComputerVisionErrorException Traceback (most recent call last)
in
13 # Get a description from the computer vision service
14 image_stream = open(image_path, "rb")#
---> 15 description = computervision_client.describe_image_in_stream(image_stream)
16
17 # Display image and caption (code in helper_scripts/vision.py)

~\Anaconda3\lib\site-packages\azure\cognitiveservices\vision\computervision\operations_computer_vision_client_operations.py in describe_image_in_stream(self, image, max_candidates, language, description_exclude, custom_headers, raw, callback, **operation_config)
1100
1101 if response.status_code not in [200]:
-> 1102 raise models.ComputerVisionErrorException(self._deserialize, response)
1103
1104 deserialized = None

ComputerVisionErrorException: Operation returned an invalid status code 'Resource Not Found'

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.