results = search_images_bing(key, ‘grizzly bear’)
ims = results.attrgot(‘content_url’)
NameError Traceback (most recent call last)
in () ----> 1 results = search_images_bing(key, ‘grizzly bear’)
in search_images_bing(key, term, min_sz) 1 def search_images_bing(key, term, min_sz=128): 2 client = api(‘https://api.cognitive.microsoft.com’, auth(key)) ----> 3 return L(client.images.search(query=term, count=150, min_height=min_sz, min_width=min_sz).value)
NameError: name ‘L’ is not defined
can anyone help on above error
I am having the same challenge now. Please were you able to resolve it?
Here’s an alternative method - an API that @joedockrill created.
Works great ! It doesnt require any signup either.
I am putting together an example showing how to use this is with the course
02_production.ipynb notebook. I will post a link below here as soon as it is ready.
In the notebook
02a_production_jmd_image_scraper_train_and_inference.ipynb in this repo I used
In the notebook I also used both
jmd_imagescraper.imagecleaner to do a first clean-up (before modeling), and then a model-driven clean-up using
fastai.widgets.image_cleaner. I hope it is helpful.
This is great, thanks a lot!
Many many thanks. Great tool.