#(FIXED) Cant use training model command
66 messages · Page 1 of 1 (latest)
Whats yolov5
i just installed all of them and it sitll doesnt work
I did pip install ultralytics
and pip install -r requirements.txt
I got told
"It's not compatible with Python 3.11. collections.Callable was moved under a different module in Python 3.10. So you need to use Python 3.9 or earlier."
Sub
wat
You still need help?
yes
i still get the same error
Did you install yolo?
i think
Try cd yolov5
how do i get it
run that?
Yes
The system cannot find the path specified.
ok how do i install it
Let's start with this
Certainly! Below are the commands you can use in the command prompt (cmd) to install PyTorch, torchaudio, torchvision, and YOLOv5 along with CUDA (assuming CUDA 11.1). Please note that you need to have Git and Python installed on your system before running these commands.
# Install PyTorch with CUDA 11.1
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html
# Clone YOLOv5 repository
git clone https://github.com/ultralytics/yolov5.git
# Navigate to the YOLOv5 directory
cd yolov5
# Install YOLOv5 dependencies
pip install -U -r requirements.txt
Ensure that you have the necessary dependencies installed on your system, such as Python, Git, and CUDA-compatible GPU drivers. Adjust the PyTorch installation command based on your specific CUDA version if it differs from 11.1.
Oh I think its because I uninstalled and reinstalled like 80 python versions
For cuda change the 11.1 to 11.8
bruh
And torch search the latest on browser and change that
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu118 torchaudio==0.9.1+cu118 -f https://download.pytorch.org/whl/torch_stable.html so this
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
?
wdymmmmm
i thought the command u sent was
Bro you can't even understand this how am I even able to help you
Did you watch babyhamsta tutorial?
Because you said to change torch but u sent torch??
I know
???
In the command I sent, the numbers signifies the version to be installed but those are old versions so I am telling you to look it up on browser and change the numbers
On the command I gave
so pip install torch==1.9.1+cu111 torchvision==0.10.1+cu118 torchaudio==0.9.1+cu118 -f https://download.pytorch.org/whl/cu121
Can you just send the command that works
Bro I get "pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121" from torch
wdym change it
# Install PyTorch with CUDA 11.8
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
# Clone YOLOv5 repository
git clone https://github.com/ultralytics/yolov5.git
# Navigate to the YOLOv5 directory
cd yolov5
# Install YOLOv5 dependencies
pip install -U -r requirements.txt
Try this on cmd
Collecting torch==2.1+cu118 Downloading https://download.pytorch.org/whl/cu118/torch-2.1.0%2Bcu118-cp311-cp311-win_amd64.whl (2722.7 MB) ---------------------------------------- 2.7/2.7 GB ? eta 0:00:00 ERROR: Ignored the following yanked versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.15.0 ERROR: Could not find a version that satisfies the requirement torchvision==0.10.1+cu118 (from versions: 0.1.6, 0.2.0, 0.15.0+cpu, 0.15.0+cu117, 0.15.0+cu118, 0.15.1, 0.15.1+cpu, 0.15.1+cu117, 0.15.1+cu118, 0.15.2, 0.15.2+cpu, 0.15.2+cu117, 0.15.2+cu118, 0.16.0, 0.16.0+cpu, 0.16.0+cu118, 0.16.0+cu121, 0.16.1, 0.16.1+cpu, 0.16.1+cu118, 0.16.1+cu121) ERROR: No matching distribution found for torchvision==0.10.1+cu118
It says can't find the version stated I told you just look up Google what versions are available for cuda 11.8
SAME
hi