[Tutor] error message
Dennis Lee Bieber
wlfraed at ix.netcom.com
Fri Apr 14 23:04:43 EDT 2023
On Fri, 14 Apr 2023 21:18:03 -0400, Diana Katz <diana.katz at gmail.com>
declaimed the following:
>I have everything installed to run an AI program and I’m getting a bunch of
>error messages. What do these mean/what should I do?
Since we haven't seen (or I missed it) the code of this program, we are
left guessing...
>
>
>> C:\Users\merma\PycharmProjects\pythonProject1\venv\Scripts\python.exe
>> C:\Users\merma\PycharmProjects\pythonProject1\main.py
>> Found 0 images belonging to 0 classes.
That seems to indicate you are doing something with image recognition
-- but there is no image data found during initial set-up of the program.
>> Traceback (most recent call last):
>> File "C:\Users\merma\PycharmProjects\pythonProject1\main.py", line 46,
>> in <module>
>> history = model.fit(
>> ^^^^^^^^^^
>> File
>> "C:\Users\merma\PycharmProjects\pythonProject1\venv\Lib\site-packages\keras\utils\traceback_utils.py",
>> line 70, in error_handler
>> raise e.with_traceback(filtered_tb) from None
>> File
>> "C:\Users\merma\PycharmProjects\pythonProject1\venv\Lib\site-packages\keras\preprocessing\image.py",
>> line 103, in __getitem__
>> raise ValueError(
>> ValueError: *Asked to retrieve element 0, but the Sequence has length 0*
If my guess on the image data is correct, then you have no data on
which to perform a fit.
That goes beyond what I'd consider suitable to this list -- you'd be
better off finding/reading documentation for the program you are trying
out, documentation for "keras", etc.
More information about the Tutor
mailing list