Skocz do zawartości

Uruchomienie algorytmu YOLOv8 na Raspberry Pi


AntekBezak

Pomocna odpowiedź

Witam

 

Ostatnio trochę się bawiłem sztuczną intelegencją i detekcją przedmiotów na zdjęciach, nagraniach, i webcamie. Umiem już wytrenować model YOLOv8, i teraz chciałbym go użyć na rpi 4B, a do tego potrzeba biblioteki ultralytics do pythona, której nie mogę zanstalować. Czy ktoś zna jakieś alternatywne rozwiązanie?

 

Z góry dziękuję za pomoc,

Pozdrawiam.

Link do komentarza
Share on other sites

Właśnie spróbowałem u siebie i udało mi się na moim rpi 4b zainstalować ultralytics, tylko musiałem doinstalować jedną bibliotekę:

Cytat

sudo apt install libgl1-mesa-glx
python3 -m venv vnv
source vnv/bin/activate
pip install ultralytics

 

  • Lubię! 1
Link do komentarza
Share on other sites

@stfn Dziękuję za odpowiedź.

Wykonałem wszystkie komendy ktróre pokazałeś, ale ostatnia z nich zwrózciła różne błędy:

(vnv) swatun@raspberrypi:~ $ pip install ultralytics
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
Could not fetch URL https://pypi.org/simple/ultralytics/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/ultralytics/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ultralytics/
Could not fetch URL https://www.piwheels.org/simple/ultralytics/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries exceeded with url: /simple/ultralytics/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement ultralytics (from versions: none)
ERROR: No matching distribution found for ultralytics
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not fetch URL https://www.piwheels.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
WARNING: There was an error checking the latest version of pip.

Przy czym import ultralytics dalej nie działa.

Link do komentarza
Share on other sites

Spróbuj zainstalować biblioteki SSL:

Cytat

sudo apt install libssl-dev

Jeżeli to nie pomoże, spróbuj jeszcze upgradu pipa, mając odpalone wirtualny env pythona:

Cytat

pip install --upgrade pip

Jeżeli to nie pomoże, to spróbuj zainstalować pyenv, i w nim zainstaluj któregoś pythona, np 3.10 i w tym nowym środowisku spróbuj zainstalować ultralytics.

Generalnie musisz poszukać jakich bibliotek Ci brakuje, wklejanie błędów w google Twoim przyjacielem 🙂

Link do komentarza
Share on other sites

Zarejestruj się lub zaloguj, aby ukryć tę reklamę.
Zarejestruj się lub zaloguj, aby ukryć tę reklamę.

jlcpcb.jpg

jlcpcb.jpg

Produkcja i montaż PCB - wybierz sprawdzone PCBWay!
   • Darmowe płytki dla studentów i projektów non-profit
   • Tylko 5$ za 10 prototypów PCB w 24 godziny
   • Usługa projektowania PCB na zlecenie
   • Montaż PCB od 30$ + bezpłatna dostawa i szablony
   • Darmowe narzędzie do podglądu plików Gerber
Zobacz również » Film z fabryki PCBWay

Niestety żadne z tych rozwiązań nie działa.

15 godzin temu, stfn napisał:

Jeżeli to nie pomoże, to spróbuj zainstalować pyenv, i w nim zainstaluj któregoś pythona, np 3.10 i w tym nowym środowisku spróbuj zainstalować ultralytics.

Pracuję na pythonie 3.11.2, więc chyba to nic nie zmieni (choć mogę się mylić).

Link do komentarza
Share on other sites

Ale jak nie działa? Jest ten sam błąd? Inny? Na razie wygląda na to że albo masz problem z pipem, albo nie ma wszystkich wymaganych bibliotek. Na jakim OS pracujesz? Jeżeli na raspbianie to na 32 czy na 64 bit?

Tutaj trzeba pokombinować, powody mogą być różne, powtórzę, powklejanie komunikatów błędów w Google i poczytanie wyników to zupełne minimum jakie musisz zrobić.

Python 3.11.2 jest bardzo nową wersją i możliwe, że coś jeszcze nie jest z nim kompatybilne, więc zacząłbym od użycia pyenv i stworzenia nowego środowiska w nim, najlepiej na poprzedniej wersji Pythona, 3.9 albo 3.10. W dokumentacji pyenv znajdziesz jak to zrobić.

Link do komentarza
Share on other sites

Ostatecznie spróbowałbym skonteneryzowania całości, wtedy masz to samo środowisko zawsze i kończą się problemy z "dziwne u mnie działa". Docker to wspaniałe narzędzie 🙂

Link do komentarza
Share on other sites

Dnia 27.02.2023 o 11:11, stfn napisał:

Ale jak nie działa?

Wyświetla się na czerwono ResolutionImpossible, nawet kiedy używam pythona 3.9.

 

Dnia 27.02.2023 o 11:11, stfn napisał:

Na razie wygląda na to że albo masz problem z pipem

Też myślę że to może być coś z pipem. Myślisz że ponowne zainstalowanie systemu pomoże?

 

Dnia 27.02.2023 o 11:11, stfn napisał:

Na jakim OS pracujesz? Jeżeli na raspbianie to na 32 czy na 64 bit?

Tak, na raspbianie, ale nie jestem pewien czy 32 czy 64 bit.

Link do komentarza
Share on other sites

18 godzin temu, AntekBezak napisał:

Tak, na raspbianie, ale nie jestem pewien czy 32 czy 64 bit.

zrób to:

Cytat

Run "uname -m" to confirm. If it says aarch64 then it is 64 bit. If it says armv7l then it is 32 bit.

 

18 godzin temu, AntekBezak napisał:

Wyświetla się na czerwono ResolutionImpossible, nawet kiedy używam pythona 3.9.

Wklej całość błędu.

 

18 godzin temu, AntekBezak napisał:

Też myślę że to może być coś z pipem. Myślisz że ponowne zainstalowanie systemu pomoże?

Nie sądzę, zostawmy to jako opcję ostateczną.

Link do komentarza
Share on other sites

1 godzinę temu, stfn napisał:
20 godzin temu, AntekBezak napisał:

Tak, na raspbianie, ale nie jestem pewien czy 32 czy 64 bit.

zrób to:

Cytat

Run "uname -m" to confirm. If it says aarch64 then it is 64 bit. If it says armv7l then it is 32 bit.

Wychodzi że 32 bit.

 

1 godzinę temu, stfn napisał:

Wklej całość błędu.

Kiedy próbuję go odtworzyć za pomocą pip install ultralytics wyświetla się coś takiego:

swatun@raspberrypi:~ $ pip install ultralytics
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ultralytics
  Downloading https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.49-py3-none-any.whl (303 kB)
     ---------------------------------------- 303.7/303.7 kB 662.4 kB/s eta 0:00:00
Collecting thop>=0.1.1
  Using cached thop-0.1.1.post2209072238-py3-none-any.whl (15 kB)
Requirement already satisfied: Pillow>=7.1.2 in /usr/lib/python3/dist-packages (from ultralytics) (8.1.2)
Requirement already satisfied: tqdm>=4.64.0 in ./.local/lib/python3.9/site-packages (from ultralytics) (4.64.1)
Collecting seaborn>=0.11.0
  Using cached https://www.piwheels.org/simple/seaborn/seaborn-0.12.2-py3-none-any.whl (293 kB)
Collecting opencv-python>=4.6.0
  Using cached opencv-python-4.7.0.72.tar.gz (91.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting PyYAML>=5.3.1
  Using cached https://www.piwheels.org/simple/pyyaml/PyYAML-6.0-cp39-cp39-linux_armv7l.whl (45 kB)
Collecting sentry-sdk
  Downloading https://www.piwheels.org/simple/sentry-sdk/sentry_sdk-1.16.0-py2.py3-none-any.whl (184 kB)
     ---------------------------------------- 184.3/184.3 kB 700.8 kB/s eta 0:00:00
Collecting ultralytics
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.48-py3-none-any.whl (303 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.47-py3-none-any.whl (301 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.46-py3-none-any.whl (301 kB)
Collecting wheel>=0.38.0
  Using cached https://www.piwheels.org/simple/wheel/wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting ultralytics
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.45-py3-none-any.whl (300 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.44-py3-none-any.whl (300 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.43-py3-none-any.whl (299 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.42-py3-none-any.whl (298 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.41-py3-none-any.whl (314 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.40-py3-none-any.whl (294 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.39-py3-none-any.whl (293 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.38-py3-none-any.whl (278 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.37-py3-none-any.whl (277 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.36-py3-none-any.whl (276 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.35-py3-none-any.whl (276 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.34-py3-none-any.whl (276 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.33-py3-none-any.whl (275 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.32-py3-none-any.whl (275 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.31-py3-none-any.whl (275 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.30-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.29-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.28-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.27-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.26-py3-none-any.whl (271 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.25-py3-none-any.whl (271 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.24-py3-none-any.whl (262 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.23-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.22-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.21-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.20-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.19-py3-none-any.whl (260 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.18-py3-none-any.whl (259 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.17-py3-none-any.whl (258 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.16-py3-none-any.whl (257 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.14-py3-none-any.whl (257 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.13-py3-none-any.whl (256 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.11-py3-none-any.whl (258 kB)
Collecting matplotlib>=3.2.2
  Using cached https://www.piwheels.org/simple/matplotlib/matplotlib-3.7.0-cp39-cp39-linux_armv7l.whl (10.6 MB)
Requirement already satisfied: numpy>=1.18.5 in /usr/lib/python3/dist-packages (from ultralytics) (1.19.5)
Collecting hydra-core>=1.2.0
  Using cached hydra_core-1.3.2-py3-none-any.whl (154 kB)
Collecting scipy>=1.4.1
  Using cached scipy-1.10.1.tar.gz (42.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  Preparing metadata (pyproject.toml) did not run successfully.
  exit code: 1
  
  [40 lines of output]
  The Meson build system
  Version: 1.0.1
  Source dir: /tmp/pip-install-51ejhfrf/scipy_892e615611854b23a11a47d06f2af7ae
  Build dir: /tmp/pip-install-51ejhfrf/scipy_892e615611854b23a11a47d06f2af7ae/.mesonpy-cllxqh5b/build
  Build type: native build
  Project name: SciPy
  Project version: 1.10.1
  C compiler for the host machine: cc (gcc 10.2.1 "cc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
  C linker for the host machine: cc ld.bfd 2.35.2
  C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
  C++ linker for the host machine: c++ ld.bfd 2.35.2
  Cython compiler for the host machine: cython (cython 0.29.33)
  Host machine cpu family: arm
  Host machine cpu: armv7l
  Compiler for C supports arguments -Wno-unused-but-set-variable: YES
  Compiler for C supports arguments -Wno-unused-function: YES
  Compiler for C supports arguments -Wno-conversion: YES
  Compiler for C supports arguments -Wno-misleading-indentation: YES
  Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
  Library m found: YES
  
  ../../meson.build:63:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
  The following exception(s) were encountered:
  Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
  Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
  Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
  Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
  Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
  Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
  Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
  Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
  Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
  Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"
  
  A full log can be found at /tmp/pip-install-51ejhfrf/scipy_892e615611854b23a11a47d06f2af7ae/.mesonpy-cllxqh5b/build/meson-logs/meson-log.txt
  + meson setup --prefix=/usr /tmp/pip-install-51ejhfrf/scipy_892e615611854b23a11a47d06f2af7ae /tmp/pip-install-51ejhfrf/scipy_892e615611854b23a11a47d06f2af7ae/.mesonpy-cllxqh5b/build --native-file=/tmp/pip-install-51ejhfrf/scipy_892e615611854b23a11a47d06f2af7ae/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
swatun@raspberrypi:~ $ 

 

Link do komentarza
Share on other sites

2 godziny temu, ethanak napisał:

No to zainstaluj gfortran...

Zainstalowałem, ale dalej ultralytics nie działa. Przy okazji niechcący wywołałem ten błąd i wygląda tak:

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Całość błędu:

swatun@raspberrypi:~ $ pip install ultralytics
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ultralytics
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.49-py3-none-any.whl (303 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.48-py3-none-any.whl (303 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.47-py3-none-any.whl (301 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.46-py3-none-any.whl (301 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.45-py3-none-any.whl (300 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.44-py3-none-any.whl (300 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.43-py3-none-any.whl (299 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.42-py3-none-any.whl (298 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.41-py3-none-any.whl (314 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.40-py3-none-any.whl (294 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.39-py3-none-any.whl (293 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.38-py3-none-any.whl (278 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.37-py3-none-any.whl (277 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.36-py3-none-any.whl (276 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.35-py3-none-any.whl (276 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.34-py3-none-any.whl (276 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.33-py3-none-any.whl (275 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.32-py3-none-any.whl (275 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.31-py3-none-any.whl (275 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.30-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.29-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.28-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.27-py3-none-any.whl (272 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.26-py3-none-any.whl (271 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.25-py3-none-any.whl (271 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.24-py3-none-any.whl (262 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.23-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.22-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.21-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.20-py3-none-any.whl (261 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.19-py3-none-any.whl (260 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.18-py3-none-any.whl (259 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.17-py3-none-any.whl (258 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.16-py3-none-any.whl (257 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.14-py3-none-any.whl (257 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.13-py3-none-any.whl (256 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.11-py3-none-any.whl (258 kB)
Collecting matplotlib>=3.2.2
  Using cached https://www.piwheels.org/simple/matplotlib/matplotlib-3.7.0-cp39-cp39-linux_armv7l.whl (10.6 MB)
Collecting pandas>=1.1.4
  Using cached https://www.piwheels.org/simple/pandas/pandas-1.5.3-cp39-cp39-linux_armv7l.whl (37.5 MB)
Collecting ipython
  Downloading https://www.piwheels.org/simple/ipython/ipython-8.11.0-py3-none-any.whl (793 kB)
     ---------------------------------------- 793.3/793.3 kB 597.5 kB/s eta 0:00:00
Collecting seaborn>=0.11.0
  Using cached https://www.piwheels.org/simple/seaborn/seaborn-0.12.2-py3-none-any.whl (293 kB)
Collecting tensorboard>=2.4.1
  Using cached tensorboard-2.12.0-py3-none-any.whl (5.6 MB)
Requirement already satisfied: numpy>=1.18.5 in /usr/lib/python3/dist-packages (from ultralytics) (1.19.5)
Collecting GitPython>=3.1.24
  Using cached https://www.piwheels.org/simple/gitpython/GitPython-3.1.31-py3-none-any.whl (184 kB)
Requirement already satisfied: Pillow>=7.1.2 in /usr/lib/python3/dist-packages (from ultralytics) (8.1.2)
Requirement already satisfied: requests>=2.23.0 in /usr/lib/python3/dist-packages (from ultralytics) (2.25.1)
Collecting ultralytics
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.10-py3-none-any.whl (258 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.9-py3-none-any.whl (257 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.8-py3-none-any.whl (256 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.7-py3-none-any.whl (255 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.6-py3-none-any.whl (251 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.5-py3-none-any.whl (248 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.4-py3-none-any.whl (248 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.3-py3-none-any.whl (247 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.2-py3-none-any.whl (224 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.1-py3-none-any.whl (225 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-8.0.0-py3-none-any.whl (219 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.44-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.43-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.42-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.41-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.40-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.39-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.38-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.37-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.36-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.35-py3-none-any.whl (16 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.34-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.33-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.32-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.31-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.30-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.29-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.28-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.27-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.26-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.25-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.24-py3-none-any.whl (15 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.23-py3-none-any.whl (14 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.22-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.21-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.20-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.19-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.18-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.17-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.16-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.15-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.14-py3-none-any.whl (13 kB)
  Using cached https://www.piwheels.org/simple/ultralytics/ultralytics-0.0.13-py3-none-any.whl (13 kB)
ERROR: Cannot install ultralytics==0.0.13, ultralytics==0.0.14, ultralytics==0.0.15, ultralytics==0.0.16, ultralytics==0.0.17, ultralytics==0.0.18, ultralytics==0.0.19, ultralytics==0.0.20, ultralytics==0.0.21, ultralytics==0.0.22, ultralytics==0.0.23, ultralytics==0.0.24, ultralytics==0.0.25, ultralytics==0.0.26, ultralytics==0.0.27, ultralytics==0.0.28, ultralytics==0.0.29, ultralytics==0.0.30, ultralytics==0.0.31, ultralytics==0.0.32, ultralytics==0.0.33, ultralytics==0.0.34, ultralytics==0.0.35, ultralytics==0.0.36, ultralytics==0.0.37, ultralytics==0.0.38, ultralytics==0.0.39, ultralytics==0.0.40, ultralytics==0.0.41, ultralytics==0.0.42, ultralytics==0.0.43, ultralytics==0.0.44, ultralytics==8.0.0, ultralytics==8.0.1, ultralytics==8.0.10, ultralytics==8.0.11, ultralytics==8.0.13, ultralytics==8.0.14, ultralytics==8.0.16, ultralytics==8.0.17, ultralytics==8.0.18, ultralytics==8.0.19, ultralytics==8.0.2, ultralytics==8.0.20, ultralytics==8.0.21, ultralytics==8.0.22, ultralytics==8.0.23, ultralytics==8.0.24, ultralytics==8.0.25, ultralytics==8.0.26, ultralytics==8.0.27, ultralytics==8.0.28, ultralytics==8.0.29, ultralytics==8.0.3, ultralytics==8.0.30, ultralytics==8.0.31, ultralytics==8.0.32, ultralytics==8.0.33, ultralytics==8.0.34, ultralytics==8.0.35, ultralytics==8.0.36, ultralytics==8.0.37, ultralytics==8.0.38, ultralytics==8.0.39, ultralytics==8.0.4, ultralytics==8.0.40, ultralytics==8.0.41, ultralytics==8.0.42, ultralytics==8.0.43, ultralytics==8.0.44, ultralytics==8.0.45, ultralytics==8.0.46, ultralytics==8.0.47, ultralytics==8.0.48, ultralytics==8.0.49, ultralytics==8.0.5, ultralytics==8.0.6, ultralytics==8.0.7, ultralytics==8.0.8 and ultralytics==8.0.9 because these package versions have conflicting dependencies.

The conflict is caused by:
    ultralytics 8.0.49 depends on torchvision>=0.8.1
    ultralytics 8.0.48 depends on torchvision>=0.8.1
    ultralytics 8.0.47 depends on torchvision>=0.8.1
    ultralytics 8.0.46 depends on torchvision>=0.8.1
    ultralytics 8.0.45 depends on torchvision>=0.8.1
    ultralytics 8.0.44 depends on torchvision>=0.8.1
    ultralytics 8.0.43 depends on torchvision>=0.8.1
    ultralytics 8.0.42 depends on torchvision>=0.8.1
    ultralytics 8.0.41 depends on torchvision>=0.8.1
    ultralytics 8.0.40 depends on torchvision>=0.8.1
    ultralytics 8.0.39 depends on torchvision>=0.8.1
    ultralytics 8.0.38 depends on torchvision>=0.8.1
    ultralytics 8.0.37 depends on torchvision>=0.8.1
    ultralytics 8.0.36 depends on torchvision>=0.8.1
    ultralytics 8.0.35 depends on torchvision>=0.8.1
    ultralytics 8.0.34 depends on torchvision>=0.8.1
    ultralytics 8.0.33 depends on torchvision>=0.8.1
    ultralytics 8.0.32 depends on torchvision>=0.8.1
    ultralytics 8.0.31 depends on torchvision>=0.8.1
    ultralytics 8.0.30 depends on torchvision>=0.8.1
    ultralytics 8.0.29 depends on torchvision>=0.8.1
    ultralytics 8.0.28 depends on torchvision>=0.8.1
    ultralytics 8.0.27 depends on torchvision>=0.8.1
    ultralytics 8.0.26 depends on torchvision>=0.8.1
    ultralytics 8.0.25 depends on torchvision>=0.8.1
    ultralytics 8.0.24 depends on torchvision>=0.8.1
    ultralytics 8.0.23 depends on torchvision>=0.8.1
    ultralytics 8.0.22 depends on torchvision>=0.8.1
    ultralytics 8.0.21 depends on torchvision>=0.8.1
    ultralytics 8.0.20 depends on torchvision>=0.8.1
    ultralytics 8.0.19 depends on torchvision>=0.8.1
    ultralytics 8.0.18 depends on torchvision>=0.8.1
    ultralytics 8.0.17 depends on torchvision>=0.8.1
    ultralytics 8.0.16 depends on torchvision>=0.8.1
    ultralytics 8.0.14 depends on torchvision>=0.8.1
    ultralytics 8.0.13 depends on torchvision>=0.8.1
    ultralytics 8.0.11 depends on torchvision>=0.8.1
    ultralytics 8.0.10 depends on torchvision>=0.8.1
    ultralytics 8.0.9 depends on torchvision>=0.8.1
    ultralytics 8.0.8 depends on torchvision>=0.8.1
    ultralytics 8.0.7 depends on torchvision>=0.8.1
    ultralytics 8.0.6 depends on torchvision>=0.8.1
    ultralytics 8.0.5 depends on torchvision>=0.8.1
    ultralytics 8.0.4 depends on torchvision>=0.8.1
    ultralytics 8.0.3 depends on torchvision>=0.8.1
    ultralytics 8.0.2 depends on torchvision>=0.8.1
    ultralytics 8.0.1 depends on torchvision>=0.8.1
    ultralytics 8.0.0 depends on torchvision>=0.8.1
    ultralytics 0.0.44 depends on torchvision>=0.8.1
    ultralytics 0.0.43 depends on torchvision>=0.8.1
    ultralytics 0.0.42 depends on torchvision>=0.8.1
    ultralytics 0.0.41 depends on torchvision>=0.8.1
    ultralytics 0.0.40 depends on torchvision>=0.8.1
    ultralytics 0.0.39 depends on torchvision>=0.8.1
    ultralytics 0.0.38 depends on torchvision>=0.8.1
    ultralytics 0.0.37 depends on torchvision>=0.8.1
    ultralytics 0.0.36 depends on torchvision>=0.8.1
    ultralytics 0.0.35 depends on torchvision>=0.8.1
    ultralytics 0.0.34 depends on torchvision>=0.8.1
    ultralytics 0.0.33 depends on torchvision>=0.8.1
    ultralytics 0.0.32 depends on torchvision>=0.8.1
    ultralytics 0.0.31 depends on torchvision>=0.8.1
    ultralytics 0.0.30 depends on torchvision>=0.8.1
    ultralytics 0.0.29 depends on torchvision>=0.8.1
    ultralytics 0.0.28 depends on torchvision>=0.8.1
    ultralytics 0.0.27 depends on torchvision>=0.8.1
    ultralytics 0.0.26 depends on torchvision>=0.8.1
    ultralytics 0.0.25 depends on torchvision>=0.8.1
    ultralytics 0.0.24 depends on torchvision>=0.8.1
    ultralytics 0.0.23 depends on torchvision>=0.8.1
    ultralytics 0.0.22 depends on torchvision>=0.8.1
    ultralytics 0.0.21 depends on torchvision>=0.8.1
    ultralytics 0.0.20 depends on torchvision>=0.8.1
    ultralytics 0.0.19 depends on torchvision>=0.8.1
    ultralytics 0.0.18 depends on torchvision>=0.8.1
    ultralytics 0.0.17 depends on torchvision>=0.8.1
    ultralytics 0.0.16 depends on torchvision>=0.8.1
    ultralytics 0.0.15 depends on torchvision>=0.8.1
    ultralytics 0.0.14 depends on torchvision>=0.8.1
    ultralytics 0.0.13 depends on torchvision>=0.8.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

 

Link do komentarza
Share on other sites

I wszystko jasne, nie możesz zainstalować ultralytics bo nie możesz zainstalować jednej z dependencji tej biblioteki w odpowiedniej wersji, pewnie dlatego, że masz 32 bitowy system. Wszystko jest opisane w komunikacie błędu 🙂 Zacząłbym od zainstalowania albo Raspbiana 64 bitowego, albo Ubuntu Server For Arm.

Link do komentarza
Share on other sites

Dołącz do dyskusji, napisz odpowiedź!

Jeśli masz już konto to zaloguj się teraz, aby opublikować wiadomość jako Ty. Możesz też napisać teraz i zarejestrować się później.
Uwaga: wgrywanie zdjęć i załączników dostępne jest po zalogowaniu!

Gość
Dołącz do dyskusji! Kliknij i zacznij pisać...

×   Wklejony jako tekst z formatowaniem.   Przywróć formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Twój link będzie automatycznie osadzony.   Wyświetlać jako link

×   Twoja poprzednia zawartość została przywrócona.   Wyczyść edytor

×   Nie możesz wkleić zdjęć bezpośrednio. Prześlij lub wstaw obrazy z adresu URL.

×
×
  • Utwórz nowe...

Ważne informacje

Ta strona używa ciasteczek (cookies), dzięki którym może działać lepiej. Więcej na ten temat znajdziesz w Polityce Prywatności.