Is download_images function broken?

(Efunwande Osoba) #1

I was following the create your dataset tutorial, and it looks like the download_images function does not exist…

1 Like

(jannster3000) #2

same issue on my end. Did a git pull to be on most current repo version and imported both fastai and fastai.vision, but still:

0 Likes

(Wayne Polatkan) #3

There was an issue with download_images not actually downloading: https://github.com/fastai/fastai/issues/978

This could be related to that, if it’s been removed.

0 Likes

(Francisco Ingham) #4

You need to update the fastai library. You can do this by running

conda install -c fastai fastai

1 Like

(Varun Thammineni) #5

I see the same issue (after updating the libraries)

0 Likes

(Rick N) #6

What platform are you all running on? I’m having this problem on Salamander. See:

0 Likes

(jannster3000) #7

I am myself on Salamander with this issue. Just repeated the GPU related conda steps from the steps of the installation thread (i.e.
conda install -c pytorch pytorch-nightly cuda92
conda install -c fastai torchvision-nightly
conda install -c fastai fastai
), but now a) fastai is on different version depending on whom you ask (conda list or show_install) and b) download_images still not known

0 Likes

(Jeremy Howard (Admin)) #8

For Salamander the steps are a little different:

http://course-v3.fast.ai/update_salamander.html

1 Like

(Nathaniel Lim) #9

I’m using fastai version: 1.0.20

I’m running the download_images function, and I get this error:

BrokenProcessPool: A child process terminated abruptly, the process pool is not usable anymore

0 Likes

(Francisco Ingham) #10

It should not return that. I am running it and not getting that error. Are your running on a server or on a local machine?

0 Likes

(Nathaniel Lim) #11

I’m running it on my local machine

0 Likes

(Francisco Ingham) #12

Is it able to download a few images? Or does it break before printing anything?

0 Likes

(Peter) #13

I get the same problem and I just updated it again. I am running on my local machine


NameError Traceback (most recent call last)
in
----> 1 download_images(path/file, dest, max_pics=200)

NameError: name ‘download_images’ is not defined

0 Likes

(Peter) #14

anaconda-navigator shows i am on 1.0.4, with no option to update. conda update says it is the newest version too

0 Likes

(Peter) #15

I am installing now with conda install -c fastai fastai=1.0.20 to force new version

0 Likes

(Peter) #16

now i’m getting


ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 from fastai import *
2 from fastai.vision import *

ModuleNotFoundError: No module named ‘fastai’

0 Likes

(Nikita) #17

In lesson_2 download notebook there was no lines for autoupdate packages. If you’ve run your notebook and then understood that fastai library was out of date I think these lines may help you… Anyway it helps me :slight_smile:
%reload_ext autoreload
%autoreload 2
%matplotlib inline

0 Likes

(Peter) #18

I got it working now, i recreated fast.ai environment and installed jupyter into it too

0 Likes

#19

@lesscomfortable is there a way to modify this function so that it can download more than 400 images?

0 Likes

(Francisco Ingham) #20

If you scroll down in Google until you can’t anymore and then run the script you should have ~700 pictures. Google does not allow more images to be displayed. If you want more images, you can run the script on one Google Search and then run it again on a related one (e.g. searching in two languages like ‘tiger’/‘tigre’ or searching related terms like ‘dish’/‘plate’).

1 Like