#Yolo not working

1387 messages · Page 2 of 2 (latest)

keen wagon
#

until we get it

#

sorted

dense hull
#

it takes

#

so long

#

on colab

#

10k photos

#

"homework"

keen wagon
#

xd

#

it will be a good model atleast

dense hull
#

yh

#

maybe i will be first guy

#

to have fallen model working

keen wagon
#

fr

#

make sure there is tons of players

#

in the video too

#

that are visible or sort of visible this can be used for any game as long as you have the pt model

dense hull
#

yeh ik

#

its not done

#

dang

#

bro when this thingy thingy will be done

keen wagon
#

it's labeling

#

now

dense hull
#

what is hits

dense hull
keen wagon
#

labeling the images

#

for you

#

btw this would be a good video for it

dense hull
keen wagon
#

go into folder

#

and see if it got any detections

#

it shouldf of created a dataset

#

train

#

ye

#

it will split it afterwards

#

into val

#

so don't worry

dense hull
#

dang

#

THATS FIRE

#

BRO

#

it takes long enough on 100photos

#

manual

keen wagon
#

it will stop

#

and say

#

dataset created

#

when done

dense hull
#

its creating

#

bleck screen

keen wagon
#

warong

#

one

#

that's the extracted

#

frames

#

folder

dense hull
#

can i delete it?

keen wagon
#

no

dense hull
#

the black frames

keen wagon
#

afterwards

#

it wont detect

dense hull
#

ookk

keen wagon
#

any of them or false detections

dense hull
#

soo

#

can u help me fix the train thingy thingy

keen wagon
#

idk bro i might ask doctor to help

#

if he's alive

#

@violet timber

dense hull
#

@violet timber

keen wagon
#

go into dataset

#

folder

violet timber
keen wagon
#

he's having an issue

dense hull
#

a big one

keen wagon
#

with yolo

#

yolo not found etc

violet timber
#

Who?

#

Oh

keen wagon
#

@dense hull

dense hull
#
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Scripts\yolo.exe\__main__.py", line 7, in <module>
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\cfg\__init__.py", line 448, in entrypoint
    getattr(model, mode)(**overrides)  # default args from model
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\model.py", line 333, in train
    self.trainer = (trainer or self._smart_load('trainer'))(overrides=args, _callbacks=self.callbacks)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\trainer.py", line 120, in __init__
    raise RuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) from e
RuntimeError: Dataset 'data.yaml' error  'data.yaml' does not exist```
#

we tried to fix that

#

like 2h?

#

and still not fixed

violet timber
#

Can you check the path of the file data.yaml?

dense hull
#

uh

violet timber
#

You in vc?

dense hull
#

yes

violet timber
#

Okay I've got only half an hour before going to work so let's get it fixed by then

dense hull
#

ok

#

so

#

what do i do?

#

no

#

what?

#

and do i re all?

void spear
#

Still going at this?

#

wow

ionic garden
#

anyone know why it says: Error: No such command 'task=detect'
when i run: yolo task=detect mode=train imgsz=640 data=data.yaml epochs=100 batch=16 name=Fortnite

void spear
#

Eish, that's tough

dense hull
#

i think my error is hard to solve

#

i think im just gonna make script for electriion like esp

keen wagon
#

any luck?

dense hull
#

ion thinks so

#

doctor is afk now 5mins

#

brb

#

back

#

yo

keen wagon
dense hull
#

the same error

#

i use yolov8 cuz it have better pred

violet timber
dense hull
#

ig i have bad luck

#

ima goo

#

win 11 and see if its fixed.

violet timber
#

If you want to wait I might try the anaconda method with you

keen wagon
#

think i've tried the anaconda vers with him

violet timber
#

To create a separate environment and install yolo on it to use it for the training command

violet timber
dense hull
#

so like

#

windows reset?

#

factory

#

reset

#

@keen wagon

#

will factory reset fix the issue?

#

it should right?

violet timber
vale bison
#

Windows doesn't have to do anything with this

dense hull
#

fix it then

#
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\trainer.py", line 116, in __init__
    self.data = check_det_dataset(self.args.data)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\data\utils.py", line 253, in check_det_dataset
    file = check_file(dataset)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\utils\checks.py", line 460, in check_file
    raise FileNotFoundError(f"'{file}' does not exist")
FileNotFoundError: 'CustomCharacterPath' does not exist

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Scripts\yolo.exe\__main__.py", line 7, in <module>
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\cfg\__init__.py", line 448, in entrypoint
    getattr(model, mode)(**overrides)  # default args from model
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\model.py", line 333, in train
    self.trainer = (trainer or self._smart_load('trainer'))(overrides=args, _callbacks=self.callbacks)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\trainer.py", line 120, in __init__
    raise RuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) from e
RuntimeError: Dataset 'CustomCharacterPath' error  'CustomCharacterPath' does not exist```
#

i have this error

#

and the customcharacterpath Exist

tired needle
#

bro how the fuck did u get the data.yaml file

dense hull
tired needle
#

cap af

dense hull
#

u do txt file

#

then u save it as all file and namehere.yaml

#

and it creates

tired needle
#

ik bro did not waste his time writing comments

#

that’s generated

vale bison
#

Ai

dense hull
#

7k images for fallen

#

is that enough?

tired needle
#

huh

#

yeah ur confused

dense hull
#

yes im

#

speak english

dense hull
#

@crimson epoch

#

what bro?

#

when im using this code

#

yolo task=detect mode=train imgsz=640 data=CustomCharacterPath epochs=1000 batch=16 name=Fallenv5

#

it gives me that error

#
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\trainer.py", line 116, in __init__
    self.data = check_det_dataset(self.args.data)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\data\utils.py", line 253, in check_det_dataset
    file = check_file(dataset)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\utils\checks.py", line 460, in check_file
    raise FileNotFoundError(f"'{file}' does not exist")
FileNotFoundError: 'CustomCharacterPath' does not exist

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Scripts\yolo.exe\__main__.py", line 7, in <module>
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\cfg\__init__.py", line 448, in entrypoint
    getattr(model, mode)(**overrides)  # default args from model
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\model.py", line 333, in train
    self.trainer = (trainer or self._smart_load('trainer'))(overrides=args, _callbacks=self.callbacks)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\filip\AppData\Local\Programs\Python\Python311\Lib\site-packages\ultralytics\engine\trainer.py", line 120, in __init__
    raise RuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) from e
RuntimeError: Dataset 'CustomCharacterPath' error  'CustomCharacterPath' does not exist```
crimson epoch
#

Okay

#

So have you changed the patjs inside CustomCharaterPatch.yaml

dense hull
#

paths?

crimson epoch
#

Okay so open CustomCharaterpatch.yaml as a txt

dense hull
#

wait

#

come dm?

crimson epoch
#

Ye

unreal wharf
#

@dense hull

dense hull
#

idk

#

it s still not fixed

#

i just uninstalled everything i fuck this shit

unreal wharf
#

i think its issue with yaml file

#

stupid shit

crimson epoch
#

I was able to fix Axin yaml issue but he came up with another issue after 😆

#

We got further, Axin is like 90% hes stuck at last 10% 😆

#

Training and conversion thats it

dense hull
#

real

#

but i raged

unreal wharf
#

this issue is annoying

#

and idk how to fix it

#

too confusing

dense hull
#

real

#

😆

void spear
unreal wharf
void spear
#

Just change paths

supple harbor
void spear
#

?

#

In ur folder U should have this(Reference in the reply), Go into images, then for the train and val folders go into each separately and copy their paths, then just add their paths respectively to the data.yaml.

#

Make sense?

supple harbor
#

mope

#

nope

void spear
#

What do you want?

#

U training a model?

eager harbor
#

errr

#

so i have this problem

#

i think "pip install yolo" works

#

it works but theres another error linked to it

#

ImportError: cannot import name 'Callable' from 'collections'

void spear
#

**STEP 1:**Make sure pip is updated and ur python version is .10 - .11 https://www.python.org/downloads/release/python-3110/
**STEP 2:**pip install metplotlib
**STEP 3:**pip install requests
**STEP 4:**pip install ultralytics IF U HAVE INSTALLED AND NO WORK DO : "pip install ultralytics --no-cache --force-reinstall"
**STEP 5 :**pip install torch==2.1+cu118 torchvision==0.10.1+cu118 torchaudio==0.9.1+cu118 -f https://download.pytorch.org/whl/torch_stable.html IF NO WORK TRY THESE:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
**STEP 6:**make sure you have installed https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Windows

NVIDIA Developer
void spear
void spear
eager harbor
void spear
#

Delete all versions of python and reinstall, once u reinstall .11 u tick this box

#

It's an importing issue

#

so Ur download location is most likely scuffed

eager harbor
#

alrighty lemme try

#

im so unlucky, i have error after error

#

nope its still saying the same fucking thing

#

ill try one more time or im throwing this dogshit computer out the window

#

nope it wont work with any version, ive download 3 different versions and yet it still says the same thing i spent all fucking day labeling shit for this

#

10k labels for nothing took hours

void spear
#

Oh my word? really
and this is the error? ImportError: cannot import name 'Callable' from 'collections' (C:\Users\noneofurbiss\AppData\Local\Programs\Python\Python311\Lib\collections__init__.py)

#

Not sure what's the issue but I'll try look for u

eager harbor
#

thanks my man

#

i wasted all day on this shit cuz nobody can make a decent da hood model

last lagoon
#

nah

#

there is no way this guy got his help

#

.

#

this aint fair man

#

where is my help?

#

@void spear

dense hull
#

what is ur problem

#

maybe il help

void spear
#

Try renaming, so go into that directory (C:\Users\noneofurbiss\AppData\Local\Programs\Python\Python311\Lib\collectionsinit.py) and rename "collectionsinit.py to collections.py

void spear
#

I mean it fixed mine

last lagoon
#

read from here and down

#

u will find my problem

crimson epoch
#

Yolo command not reconized

#

Did u : pip install -r ultralytics from the repository .zip

#

Okay so im re-reading and yes looks like your Python is scuffed...

#

You might have to: Anaconda then cd and paste your PATH
Enter then paste the yolo train etc.

#

See if that helps

#

This woek around also works if your Yolo is not a reconized command

supple harbor
#

when we aim its good close rang but bad far range

crimson epoch
#

that mean you need to video train aim not onlu on close targets but far ones too

void spear
#

How much ram u got

#

be honest

last lagoon
#

32gb

#

ddr5

last lagoon
#

@crimson epoch

#

could you help me out

patent jetty
#

why is there over 1k messages 🥶

north plover
#

@violet timber how can i fix this

#

the gpu is not found

keen wagon
#

use anaconda

#

@north plover

north plover
keen wagon
#

should fix it all

north plover
#

i already have it downloaded

keen wagon
#

use it instead of python if you are

north plover
#

so if i train

#

i should use anaconda to train?

keen wagon
#

yep

north plover
north plover
north plover
#

it cant find the gpu

keen wagon
#

iv'e seen that error alot

#

ye

#

did you instal pytorch

#

on ananconda

north plover
#

yes ofc

keen wagon
#

and cuda

#

and the correct vers

north plover
#

yes ofc leme show u wait

keen wagon
#

aigh

north plover
#

this but i typed the command

#

on command prompt

#

instead of anaconda

keen wagon
#

use it on anaconda

#

it wont regognize it

#

since it's a different envirement

#

too

north plover
#

which one should i choos

keen wagon
#

whatever for your operating system

#

local

#

not network

north plover
#

Ok its downloading

#

also how can i reinstall the pytorch

#

on anaconda

keen wagon
#

click conda

#

for package

#

instead of pip

north plover
#

already on it

#

ill let u know when they both install

keen wagon
#

aigh

north plover
keen wagon
#

no but it should fix it for you

north plover
#

its stuck on the pytorch 2.1.1

#

@keen wagon is it done?

#

also the cuda is done

keen wagon
#

try it now on anaconda

#

see if the error is still there or not

north plover
#

its running

keen wagon
#

🙂

north plover
#

thank you so much lol

keen wagon
#

change it to like 300 epochs

north plover
#

ppl should see this convo ngl

keen wagon
#

btw

north plover
#

is it better?

#

cause i heart more epochs

#

is more training

#

and more training is better

keen wagon
#

ye but it will never really reach 300 epochs

#

that's over training the model

north plover
#

ok i will change it now

north plover
keen wagon
#

it shouldn't be using your cpu

#

🤔

north plover
#

my cpu is goin crazy rn

#

it uses gpu here

#

and cpu too idk why tho

#

oh its false now @keen wagon

#

it was true before

#

so i should just copy this?

keen wagon
#

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
nah this one mb

north plover
#

and paste it in anaconda?

keen wagon
#

yup

#

then try the import again to see if it's working

north plover
#

@keen wagon still false

#

i fixed the import error

#

but im getting this error

#

again

north plover
#

it is Conda 11.8 Version i also reinstalled the cuda again

#

Its true but it doesnt detect the gpu

keen wagon
#

weird

north plover
#

everything is in its place

#

but idk whats wrong

crimson epoch
#

ohh u got same issue i haVE RIHGT NOW TOO LOL

#

import torch and device detection on python shows device (0)

#

so it see the gpu

#

but wont reconize gpu in the training runs

crimson epoch
#

got mines to work

keen wagon
#

nice

crimson epoch
#

pip install torch and conda into torch again

#

then run yolo task=detect mode=train imgsz=640 data=CustomCharacterPath.yaml epochs=500 batch=30

#

going to make backup of os and directories so i dont have to fdealk withthis again xD

#

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia

#

ley us know if it works

solid cobalt
#

Yo ricky im stuck with similar problem, i haven't been able to solve it..

crimson epoch
#

okay

#

can u screenshare?

solid cobalt
#

yeah

#

hop in voice 1?

crimson epoch
#

this INC is resolved.

tired needle
#

well ur cuda toolkit version is wrong

#

u should’ve downloaded

#

just

#

don’t use conda

#

use pip

#

but first pip uninstall torchvision and torchaudio

#

then re install it again

#

and pip uninstall torch too

#

then re install all that again

#

and download the toolkit

#

that’s all i did

#

cuz i got the same problem

#

like 4 days ago

north plover
tired needle
solid cobalt
#

Xx dont know what he talking about

#

Condo the way to go

#

Conda

tired needle
#

well not for him

crimson epoch
#

just have him dm me....

#

xD