Page 1 of 1

AI for Litter Detection

Posted: Sun Dec 07, 2025 7:59 am
by sairak13
Hello,
I am doing a litter detection AI project that requires using Google Colab. I have done all the steps accordingly and I am currently on step no.4 and it states to simply run the code block it has provided me. But every time I try to run it it gives me an error message. I would appreciate if you could help guide me through this issue as soon as possible.
Thank You,
Saira


Moderator note: https://www.sciencebuddies.org/science- ... _detection

Re: AI for Litter Detection

Posted: Sun Dec 07, 2025 6:19 pm
by CarissaP
Hello,
I also encountered an error in the second block under importing libraries. I was able to correct this error by adding a new code block above and running the code:

Code: Select all

!pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu118
It seems that the error was caused because PyTorch was incompatible with the current python version. Let me know if this works!
Carissa

Re: AI for Litter Detection

Posted: Tue Dec 16, 2025 10:17 am
by traceyngo12255
Hi!

Can you share a screenshot of the error you are encountering?

Re: AI for Litter Detection

Posted: Fri Dec 19, 2025 11:04 am
by CarissaP
Hello,
I believe that the error has been corrected in the file on the project page. Are you encountering a similar error?
Carissa