Chapter 2 veriy_images error

Hi, I’m following chapter 2 of Fastai lecture (Practical Deep learning for Coders) by typing codes in Python IDE(Spyder 4). When I reach to the part where we verify images using verify_images function, I get this error messages
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

After this error messages, my console just freezes up. Is there any solution for this error? All of the code above image verification section is same as the codes in Jupyter notebook.

1 Like