AI for Litter Detection

Ask questions about projects relating to: aerodynamics or hydrodynamics, astronomy, chemistry, electricity, electronics, physics, or engineering.

Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators

Post Reply
sairak13
Posts: 1
Joined: Sun Dec 07, 2025 7:55 am
Occupation: Student

AI for Litter Detection

Post 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
CarissaP
Student Expert
Posts: 46
Joined: Mon Jan 06, 2025 4:21 pm
Occupation: Student

Re: AI for Litter Detection

Post 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
traceyngo12255
Expert
Posts: 2
Joined: Tue Jan 21, 2025 12:29 pm
Occupation: Science Buddies Staff
Project Question: -
Project Due Date: -
Project Status: Not applicable

Re: AI for Litter Detection

Post by traceyngo12255 »

Hi!

Can you share a screenshot of the error you are encountering?
CarissaP
Student Expert
Posts: 46
Joined: Mon Jan 06, 2025 4:21 pm
Occupation: Student

Re: AI for Litter Detection

Post 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
Post Reply

Return to “Grades 6-8: Physical Science”