Welcome to the Linux Foundation Forum!

Installation Notes for Chapter 9

Hi everyone,

I'm going through chapter 9: IMAGE CLASSIFICATION WITH TORCHVISION.

I am following the Installation Notes, and when I run this in Colab:

from helper_functions import get_image_from_url, show

I get the following error:

Saving to: ‘helper_functions.py’

helper_functions.py 100%[===================>] 24.89K --.-KB/s in 0.001s

2023-12-18 15:18:50 (19.9 MB/s) - ‘helper_functions.py’ saved [25492/25492]

NameError Traceback (most recent call last)
in ()
1 get_ipython().system('pip install transformers evaluate split-folders')
2 get_ipython().system('wget https://github.com/lftraining/LFD273-code/blob/main/helper_functions.py')
----> 3 from helper_functions import get_image_from_url, show

/content/helper_functions.py in
----> 1 {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"data","path":"data","contentType":"directory"},{"name":"images","path":"images","contentType":"directory"},{"name":"labs","path":"labs","contentType":"directory"},{"name":"notebooks","path":"notebooks","contentType":"directory"},{"name":"solutions","path":"solutions","contentType":"directory"},{"name":"README.md","path":"README.md","conten...

NameError: name 'false' is not defined

Any suggestions are appreciated. Thanks!

Comments

Categories

Upcoming Training