How can I access the helper module in L8_object_detection

I downloaded every lesson to my local machine and realized some helper modules were embedded within the class’s scope, particularly the line “from helper import load_image_from_url, render_results_in_image”. Is it possible for me to gain access to these modules?

1 Like

Add a new cell and type this

image

HI pleomax, i did that but still get cat: helper.py: No such file or directory, any help would be kind!
here is my code

!sudo apt-get install python-espeak
!sudo apt-get update && sudo apt-get install espeak
!cat helper.py

I also tried !pip install helper, but still no fix
i got following

Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from helper) (6.0.1)
cat: helper.py: No such file or directory```

Sorry, forgot to mention that you should run the !cat helper.py in deeplearning.AI online notebook and copy paste the code to your local machine.

3 Likes

Thank you. I really appreciate your response.

If, in the online notebook, you do:
File-> Open, a Jupyter mngmnt. page opens, where you find helper.py, You can copy the functions defined there in your local notebook.

1 Like