How can I use the GPU? #481
Unanswered
Caio-Giulio-Cesare
asked this question in
Q&A
Replies: 4 comments 2 replies
-
Can you try reinstalling pytorch. There are slightly different versions for with/without GPU support. Using pip do:
Or using conda do:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Agreed. Before you get involved in DeepForest can you confirm. Don't work on anything downstream of torch until this passes.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you both so much, you are always very kind! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Attached the entire installation process.
Running Windows 10 with a NVIDIA GeoForce RTX 4090.
Cheers,
Javier
From: Benjamin Weinstein ***@***.***>
Sent: Sunday, 18 February 2024 12:08 AM
To: weecology/DeepForest ***@***.***>
Cc: Javier Leon ***@***.***>; Comment ***@***.***>
Subject: Re: [weecology/DeepForest] How can I use the GPU? (Discussion #481)
This is not a DeepForest issue, but happy to try to help. Can you create a clean env and paste the entire install process below. I'd need to see everything to guess at a next step.
—
Reply to this email directly, view it on GitHub<#481 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJJ2W5LTFYFQ3LF55C6V4ZDYUC2UDAVCNFSM6AAAAAA5MRHIUOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DKMBQHE4DE>.
You are receiving this because you commented.Message ID: ***@***.***>
(base) C:\Users\jleon>conda create -n deepforest python=3 pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.7.4
latest version: 24.1.1
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use
conda install conda=24.1.1
## Package Plan ##
environment location: C:\Users\jleon\AppData\Local\anaconda3\envs\deepforest
added / updated specs:
- python=3
- pytorch
- pytorch-cuda=11.7
- torchaudio
- torchvision
The following NEW packages will be INSTALLED:
blas pkgs/main/win-64::blas-1.0-mkl
bzip2 pkgs/main/win-64::bzip2-1.0.8-he774522_0
ca-certificates pkgs/main/win-64::ca-certificates-2023.12.12-haa95532_0
certifi pkgs/main/win-64::certifi-2024.2.2-py312haa95532_0
charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
cuda-cccl nvidia/win-64::cuda-cccl-12.3.101-0
cuda-cudart nvidia/win-64::cuda-cudart-11.7.99-0
cuda-cudart-dev nvidia/win-64::cuda-cudart-dev-11.7.99-0
cuda-cupti nvidia/win-64::cuda-cupti-11.7.101-0
cuda-libraries nvidia/win-64::cuda-libraries-11.7.1-0
cuda-libraries-dev nvidia/win-64::cuda-libraries-dev-11.7.1-0
cuda-nvrtc nvidia/win-64::cuda-nvrtc-11.7.99-0
cuda-nvrtc-dev nvidia/win-64::cuda-nvrtc-dev-11.7.99-0
cuda-nvtx nvidia/win-64::cuda-nvtx-11.7.91-0
cuda-runtime nvidia/win-64::cuda-runtime-11.7.1-0
expat pkgs/main/win-64::expat-2.5.0-hd77b12b_0
filelock pkgs/main/win-64::filelock-3.13.1-py312haa95532_0
freetype pkgs/main/win-64::freetype-2.12.1-ha860e81_0
idna pkgs/main/win-64::idna-3.4-py312haa95532_0
intel-openmp pkgs/main/win-64::intel-openmp-2023.1.0-h59b6b97_46320
jinja2 pkgs/main/win-64::jinja2-3.1.3-py312haa95532_0
jpeg pkgs/main/win-64::jpeg-9e-h2bbff1b_1
lerc pkgs/main/win-64::lerc-3.0-hd77b12b_0
libcublas nvidia/win-64::libcublas-11.10.3.66-0
libcublas-dev nvidia/win-64::libcublas-dev-11.10.3.66-0
libcufft nvidia/win-64::libcufft-10.7.2.124-0
libcufft-dev nvidia/win-64::libcufft-dev-10.7.2.124-0
libcurand nvidia/win-64::libcurand-10.3.4.107-0
libcurand-dev nvidia/win-64::libcurand-dev-10.3.4.107-0
libcusolver nvidia/win-64::libcusolver-11.4.0.1-0
libcusolver-dev nvidia/win-64::libcusolver-dev-11.4.0.1-0
libcusparse nvidia/win-64::libcusparse-11.7.4.91-0
libcusparse-dev nvidia/win-64::libcusparse-dev-11.7.4.91-0
libdeflate pkgs/main/win-64::libdeflate-1.17-h2bbff1b_1
libffi pkgs/main/win-64::libffi-3.4.4-hd77b12b_0
libjpeg-turbo pkgs/main/win-64::libjpeg-turbo-2.0.0-h196d8e1_0
libnpp nvidia/win-64::libnpp-11.7.4.75-0
libnpp-dev nvidia/win-64::libnpp-dev-11.7.4.75-0
libnvjpeg nvidia/win-64::libnvjpeg-11.8.0.2-0
libnvjpeg-dev nvidia/win-64::libnvjpeg-dev-11.8.0.2-0
libpng pkgs/main/win-64::libpng-1.6.39-h8cc25b3_0
libtiff pkgs/main/win-64::libtiff-4.5.1-hd77b12b_0
libuv pkgs/main/win-64::libuv-1.44.2-h2bbff1b_0
libwebp-base pkgs/main/win-64::libwebp-base-1.3.2-h2bbff1b_0
lz4-c pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_0
markupsafe pkgs/main/win-64::markupsafe-2.1.3-py312h2bbff1b_0
mkl pkgs/main/win-64::mkl-2023.1.0-h6b88ed4_46358
mkl-service pkgs/main/win-64::mkl-service-2.4.0-py312h2bbff1b_1
mkl_fft pkgs/main/win-64::mkl_fft-1.3.8-py312h2bbff1b_0
mkl_random pkgs/main/win-64::mkl_random-1.2.4-py312h59b6b97_0
mpmath pkgs/main/win-64::mpmath-1.3.0-py312haa95532_0
networkx pkgs/main/win-64::networkx-3.1-py312haa95532_0
numpy pkgs/main/win-64::numpy-1.26.3-py312hfd52020_0
numpy-base pkgs/main/win-64::numpy-base-1.26.3-py312h4dde369_0
openjpeg pkgs/main/win-64::openjpeg-2.4.0-h4fc8c34_0
openssl pkgs/main/win-64::openssl-3.0.13-h2bbff1b_0
pillow pkgs/main/win-64::pillow-10.2.0-py312h2bbff1b_0
pip pkgs/main/win-64::pip-23.3.1-py312haa95532_0
python pkgs/main/win-64::python-3.12.1-h1d929f7_0
pytorch pytorch/win-64::pytorch-2.2.0-py3.12_cpu_0
pytorch-cuda pytorch/win-64::pytorch-cuda-11.7-h16d0643_5
pytorch-mutex pytorch/noarch::pytorch-mutex-1.0-cpu
pyyaml pkgs/main/win-64::pyyaml-6.0.1-py312h2bbff1b_0
requests pkgs/main/win-64::requests-2.31.0-py312haa95532_1
setuptools pkgs/main/win-64::setuptools-68.2.2-py312haa95532_0
sqlite pkgs/main/win-64::sqlite-3.41.2-h2bbff1b_0
sympy pkgs/main/win-64::sympy-1.12-py312haa95532_0
tbb pkgs/main/win-64::tbb-2021.8.0-h59b6b97_0
tk pkgs/main/win-64::tk-8.6.12-h2bbff1b_0
torchaudio pytorch/win-64::torchaudio-2.2.0-py312_cpu
torchvision pytorch/win-64::torchvision-0.17.0-py312_cpu
typing_extensions pkgs/main/win-64::typing_extensions-4.9.0-py312haa95532_1
tzdata pkgs/main/noarch::tzdata-2023d-h04d1e81_0
urllib3 pkgs/main/win-64::urllib3-2.1.0-py312haa95532_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/win-64::wheel-0.41.2-py312haa95532_0
xz pkgs/main/win-64::xz-5.4.5-h8cc25b3_0
yaml pkgs/main/win-64::yaml-0.2.5-he774522_0
zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_0
zstd pkgs/main/win-64::zstd-1.5.5-hd43e919_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate deepforest
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) C:\Users\jleon>conda activate deepforest
(deepforest) C:\Users\jleon>conda install deepforest -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.7.4
latest version: 24.1.1
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use
conda install conda=24.1.1
## Package Plan ##
environment location: C:\Users\jleon\AppData\Local\anaconda3\envs\deepforest
added / updated specs:
- deepforest
The following packages will be downloaded:
package | build
---------------------------|-----------------
fiona-1.9.5 | py312h95cbb4d_2 798 KB conda-forge
fonttools-4.49.0 | py312he70551f_0 2.2 MB conda-forge
gdal-3.8.1 | py312h6c4443f_4 1.6 MB conda-forge
libboost-headers-1.84.0 | h57928b3_1 13.2 MB conda-forge
libgdal-3.8.1 | h70e2fc3_4 8.2 MB conda-forge
libglib-2.78.4 | h16e383f_0 2.5 MB conda-forge
python-3.12.2 |h2628c8c_0_cpython 15.3 MB conda-forge
python-tzdata-2024.1 | pyhd8ed1ab_0 141 KB conda-forge
tiledb-2.18.2 | hc200977_1 3.7 MB conda-forge
------------------------------------------------------------
Total: 47.7 MB
The following NEW packages will be INSTALLED:
affine conda-forge/noarch::affine-2.4.0-pyhd8ed1ab_0
alabaster conda-forge/noarch::alabaster-0.7.16-pyhd8ed1ab_0
aom conda-forge/win-64::aom-3.7.1-h63175ca_0
attrs conda-forge/noarch::attrs-23.2.0-pyh71513ae_0
babel conda-forge/noarch::babel-2.14.0-pyhd8ed1ab_0
blosc conda-forge/win-64::blosc-1.21.5-hdccc3a2_0
brotli conda-forge/win-64::brotli-1.1.0-hcfcfb64_1
brotli-bin conda-forge/win-64::brotli-bin-1.1.0-hcfcfb64_1
c-blosc2 conda-forge/win-64::c-blosc2-2.13.2-h183a6f4_0
cached-property conda-forge/noarch::cached-property-1.5.2-hd8ed1ab_1
cached_property conda-forge/noarch::cached_property-1.5.2-pyha770c72_1
cairo conda-forge/win-64::cairo-1.18.0-h1fef639_0
cfitsio conda-forge/win-64::cfitsio-4.3.1-h9b0cee5_0
charls conda-forge/win-64::charls-2.4.2-h1537add_0
click conda-forge/noarch::click-8.1.7-win_pyh7428d3b_0
click-plugins conda-forge/noarch::click-plugins-1.1.1-py_0
cligj conda-forge/noarch::cligj-0.7.2-pyhd8ed1ab_1
colorama conda-forge/noarch::colorama-0.4.6-pyhd8ed1ab_0
commonmark conda-forge/noarch::commonmark-0.9.1-py_0
contourpy conda-forge/win-64::contourpy-1.2.0-py312h0d7def4_0
cycler conda-forge/noarch::cycler-0.12.1-pyhd8ed1ab_0
dav1d conda-forge/win-64::dav1d-1.2.1-hcfcfb64_0
deepforest conda-forge/noarch::deepforest-1.1.3-pyh8a188c0_0
docutils conda-forge/win-64::docutils-0.20.1-py312h2e8e312_3
exceptiongroup conda-forge/noarch::exceptiongroup-1.2.0-pyhd8ed1ab_2
fiona conda-forge/win-64::fiona-1.9.5-py312h95cbb4d_2
font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0
font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0
font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0
font-ttf-ubuntu conda-forge/noarch::font-ttf-ubuntu-0.83-h77eed37_1
fontconfig conda-forge/win-64::fontconfig-2.14.2-hbde0cde_0
fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0
fonts-conda-forge conda-forge/noarch::fonts-conda-forge-1-0
fonttools conda-forge/win-64::fonttools-4.49.0-py312he70551f_0
freexl conda-forge/win-64::freexl-2.0.0-h8276f4a_0
fsspec conda-forge/noarch::fsspec-2024.2.0-pyhca7485f_0
future conda-forge/noarch::future-0.18.3-pyhd8ed1ab_0
gdal conda-forge/win-64::gdal-3.8.1-py312h6c4443f_4
geopandas conda-forge/noarch::geopandas-0.9.0-pyhd8ed1ab_0
geos conda-forge/win-64::geos-3.12.1-h1537add_0
geotiff conda-forge/win-64::geotiff-1.7.1-hbf5ca3a_15
gettext conda-forge/win-64::gettext-0.21.1-h5728263_0
giflib conda-forge/win-64::giflib-5.2.1-h64bf75a_3
h5py conda-forge/win-64::h5py-3.10.0-nompi_py312h1751c5b_101
hdf4 conda-forge/win-64::hdf4-4.2.15-h5557f11_7
hdf5 conda-forge/win-64::hdf5-1.14.3-nompi_h73e8ff5_100
icu conda-forge/win-64::icu-73.2-h63175ca_0
imagecodecs conda-forge/win-64::imagecodecs-2024.1.1-py312h4936081_0
imagesize conda-forge/noarch::imagesize-1.4.1-pyhd8ed1ab_0
importlib-metadata conda-forge/noarch::importlib-metadata-7.0.1-pyha770c72_0
iniconfig conda-forge/noarch::iniconfig-2.0.0-pyhd8ed1ab_0
jxrlib conda-forge/win-64::jxrlib-1.1-hcfcfb64_3
kealib conda-forge/win-64::kealib-1.5.3-hd248416_0
kiwisolver conda-forge/win-64::kiwisolver-1.4.5-py312h0d7def4_1
krb5 conda-forge/win-64::krb5-1.21.2-heb0366b_0
lcms2 conda-forge/win-64::lcms2-2.16-h67d730c_0
libaec conda-forge/win-64::libaec-1.1.2-h63175ca_1
libarchive conda-forge/win-64::libarchive-3.7.2-h313118b_1
libavif conda-forge/win-64::libavif-1.0.1-h7a9aacb_3
libboost-headers conda-forge/win-64::libboost-headers-1.84.0-h57928b3_1
libbrotlicommon conda-forge/win-64::libbrotlicommon-1.1.0-hcfcfb64_1
libbrotlidec conda-forge/win-64::libbrotlidec-1.1.0-hcfcfb64_1
libbrotlienc conda-forge/win-64::libbrotlienc-1.1.0-hcfcfb64_1
libcurl conda-forge/win-64::libcurl-8.5.0-hd5e4a3a_0
libexpat conda-forge/win-64::libexpat-2.5.0-h63175ca_1
libgdal conda-forge/win-64::libgdal-3.8.1-h70e2fc3_4
libglib conda-forge/win-64::libglib-2.78.4-h16e383f_0
libiconv conda-forge/win-64::libiconv-1.17-hcfcfb64_2
libkml conda-forge/win-64::libkml-1.3.0-haf3e7a6_1018
libnetcdf conda-forge/win-64::libnetcdf-4.9.2-nompi_h07c049d_113
libpq conda-forge/win-64::libpq-16.2-hdb24f17_0
librttopo conda-forge/win-64::librttopo-1.1.0-h94c4f80_15
libspatialindex conda-forge/win-64::libspatialindex-1.9.3-h39d44d4_4
libspatialite conda-forge/win-64::libspatialite-5.1.0-hf2f0abc_4
libsqlite conda-forge/win-64::libsqlite-3.45.1-hcfcfb64_0
libssh2 conda-forge/win-64::libssh2-1.11.0-h7dfc565_0
libxcb conda-forge/win-64::libxcb-1.15-hcd874cb_0
libxml2 conda-forge/win-64::libxml2-2.12.5-hc3477c8_0
libzip conda-forge/win-64::libzip-1.10.1-h1d365fa_3
libzlib conda-forge/win-64::libzlib-1.2.13-hcfcfb64_5
libzopfli conda-forge/win-64::libzopfli-1.0.3-h0e60522_0
lightning-utiliti~ conda-forge/noarch::lightning-utilities-0.10.1-pyhd8ed1ab_0
lzo conda-forge/win-64::lzo-2.10-he774522_1000
m2w64-gcc-libgfor~ conda-forge/win-64::m2w64-gcc-libgfortran-5.3.0-6
m2w64-gcc-libs conda-forge/win-64::m2w64-gcc-libs-5.3.0-7
m2w64-gcc-libs-co~ conda-forge/win-64::m2w64-gcc-libs-core-5.3.0-7
m2w64-gmp conda-forge/win-64::m2w64-gmp-6.1.0-2
m2w64-libwinpthre~ conda-forge/win-64::m2w64-libwinpthread-git-5.0.0.4634.697f757-2
matplotlib-base conda-forge/win-64::matplotlib-base-3.8.2-py312h26ecaf7_0
minizip conda-forge/win-64::minizip-4.0.4-h5bed578_0
msys2-conda-epoch conda-forge/win-64::msys2-conda-epoch-20160418-1
munkres conda-forge/noarch::munkres-1.1.4-pyh9f0ad1d_0
numpydoc conda-forge/noarch::numpydoc-1.6.0-pyhd8ed1ab_0
packaging conda-forge/noarch::packaging-23.2-pyhd8ed1ab_0
pandas conda-forge/win-64::pandas-2.2.0-py312h2ab9e98_0
pcre2 conda-forge/win-64::pcre2-10.42-h17e33f8_0
pixman conda-forge/win-64::pixman-0.43.2-h63175ca_0
pluggy conda-forge/noarch::pluggy-1.4.0-pyhd8ed1ab_0
poppler conda-forge/win-64::poppler-23.12.0-hc2f3c52_0
poppler-data conda-forge/noarch::poppler-data-0.4.12-hd8ed1ab_0
postgresql conda-forge/win-64::postgresql-16.2-h1beaf6b_0
proj conda-forge/win-64::proj-9.3.1-he13c7e8_0
psutil conda-forge/win-64::psutil-5.9.8-py312he70551f_0
pthread-stubs conda-forge/win-64::pthread-stubs-0.4-hcd874cb_1001
pygments conda-forge/noarch::pygments-2.17.2-pyhd8ed1ab_0
pyparsing conda-forge/noarch::pyparsing-3.1.1-pyhd8ed1ab_0
pyproj conda-forge/win-64::pyproj-3.6.1-py312hc725b1e_5
pytest conda-forge/noarch::pytest-8.0.0-pyhd8ed1ab_0
python-dateutil conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0
python-tzdata conda-forge/noarch::python-tzdata-2024.1-pyhd8ed1ab_0
python_abi conda-forge/win-64::python_abi-3.12-4_cp312
pytorch-lightning conda-forge/noarch::pytorch-lightning-2.0.7-pyhd8ed1ab_0
pytz conda-forge/noarch::pytz-2024.1-pyhd8ed1ab_0
rasterio conda-forge/win-64::rasterio-1.3.9-py312hc028deb_2
rav1e conda-forge/win-64::rav1e-0.6.6-h975169c_2
recommonmark conda-forge/noarch::recommonmark-0.7.1-pyhd8ed1ab_0
rtree conda-forge/win-64::rtree-1.2.0-py312h72b5f30_0
shapely conda-forge/win-64::shapely-2.0.2-py312h7d70906_1
six conda-forge/noarch::six-1.16.0-pyh6c4a22f_0
slidingwindow conda-forge/noarch::slidingwindow-0.0.14-pyh9f0ad1d_0
snappy conda-forge/win-64::snappy-1.1.10-hfb803bf_0
snowballstemmer conda-forge/noarch::snowballstemmer-2.2.0-pyhd8ed1ab_0
snuggs conda-forge/noarch::snuggs-1.4.7-py_0
sphinx conda-forge/noarch::sphinx-7.2.6-pyhd8ed1ab_0
sphinxcontrib-app~ conda-forge/noarch::sphinxcontrib-applehelp-1.0.8-pyhd8ed1ab_0
sphinxcontrib-dev~ conda-forge/noarch::sphinxcontrib-devhelp-1.0.6-pyhd8ed1ab_0
sphinxcontrib-htm~ conda-forge/noarch::sphinxcontrib-htmlhelp-2.0.5-pyhd8ed1ab_0
sphinxcontrib-jsm~ conda-forge/noarch::sphinxcontrib-jsmath-1.0.1-pyhd8ed1ab_0
sphinxcontrib-qth~ conda-forge/noarch::sphinxcontrib-qthelp-1.0.7-pyhd8ed1ab_0
sphinxcontrib-ser~ conda-forge/noarch::sphinxcontrib-serializinghtml-1.1.10-pyhd8ed1ab_0
svt-av1 conda-forge/win-64::svt-av1-1.7.0-h63175ca_0
tabulate conda-forge/noarch::tabulate-0.9.0-pyhd8ed1ab_1
tiledb conda-forge/win-64::tiledb-2.18.2-hc200977_1
tomli conda-forge/noarch::tomli-2.0.1-pyhd8ed1ab_0
torchmetrics conda-forge/noarch::torchmetrics-1.2.1-pyhd8ed1ab_0
tqdm conda-forge/noarch::tqdm-4.66.2-pyhd8ed1ab_0
ucrt conda-forge/win-64::ucrt-10.0.22621.0-h57928b3_0
uriparser conda-forge/win-64::uriparser-0.9.7-h1537add_1
vc14_runtime conda-forge/win-64::vc14_runtime-14.38.33130-h82b7239_18
xerces-c conda-forge/win-64::xerces-c-3.2.5-h63175ca_0
xmltodict conda-forge/noarch::xmltodict-0.13.0-pyhd8ed1ab_0
xorg-libxau conda-forge/win-64::xorg-libxau-1.0.11-hcd874cb_0
xorg-libxdmcp conda-forge/win-64::xorg-libxdmcp-1.1.3-hcd874cb_0
zfp conda-forge/win-64::zfp-1.0.1-h63175ca_0
zipp conda-forge/noarch::zipp-3.17.0-pyhd8ed1ab_0
zlib-ng conda-forge/win-64::zlib-ng-2.0.7-hcfcfb64_0
The following packages will be REMOVED:
jpeg-9e-h2bbff1b_1
The following packages will be UPDATED:
ca-certificates pkgs/main::ca-certificates-2023.12.12~ --> conda-forge::ca-certificates-2024.2.2-h56e8100_0
lerc pkgs/main::lerc-3.0-hd77b12b_0 --> conda-forge::lerc-4.0.0-h63175ca_0
libdeflate pkgs/main::libdeflate-1.17-h2bbff1b_1 --> conda-forge::libdeflate-1.19-hcfcfb64_0
libjpeg-turbo pkgs/main::libjpeg-turbo-2.0.0-h196d8~ --> conda-forge::libjpeg-turbo-3.0.0-hcfcfb64_1
libtiff pkgs/main::libtiff-4.5.1-hd77b12b_0 --> conda-forge::libtiff-4.6.0-h6e2ebb7_2
openjpeg pkgs/main::openjpeg-2.4.0-h4fc8c34_0 --> conda-forge::openjpeg-2.5.0-h3d672ee_3
openssl pkgs/main::openssl-3.0.13-h2bbff1b_0 --> conda-forge::openssl-3.2.1-hcfcfb64_0
python pkgs/main::python-3.12.1-h1d929f7_0 --> conda-forge::python-3.12.2-h2628c8c_0_cpython
tk pkgs/main::tk-8.6.12-h2bbff1b_0 --> conda-forge::tk-8.6.13-h5226925_1
vs2015_runtime pkgs/main::vs2015_runtime-14.27.29016~ --> conda-forge::vs2015_runtime-14.38.33130-hcb4865c_18
zlib pkgs/main::zlib-1.2.13-h8cc25b3_0 --> conda-forge::zlib-1.2.13-hcfcfb64_5
The following packages will be SUPERSEDED by a higher-priority channel:
certifi pkgs/main/win-64::certifi-2024.2.2-py~ --> conda-forge/noarch::certifi-2024.2.2-pyhd8ed1ab_0
pillow pkgs/main::pillow-10.2.0-py312h2bbff1~ --> conda-forge::pillow-10.2.0-py312he768995_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(deepforest) C:\Users\jleon>import torch
'import' is not recognized as an internal or external command,
operable program or batch file.
(deepforest) C:\Users\jleon>torch.cuda.is_available()
'torch.cuda.is_available' is not recognized as an internal or external command,
operable program or batch file.
(deepforest) C:\Users\jleon>python
Python 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:42:31) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>> import torch
>> torch.cuda.is_available()
False
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone.
I have been using deepforest for some time and, thanks also to your precious help, I am able to make predictions and train a new model using a PC with the classic CPU... and everything seems to work well .
Now, to make everything faster, I would like to try using the GPU.
For this purpose I have an ACER Nitro 5 Win 11 notebook - with NVIDIA GeForce RTX 2060 graphics card (on PCI Slot 1 (PCI Bus 1, device 0, function 0)).
I performed the installation with GPU as indicated in the relevant chapter (conda/mamba GPU with cudatoolkit=10.2)
I tried to set the parameters of the deepforest_config.yml file by doing various tests for example
devices: 1
or devices: auto
accelerator: gpu
but always with negative outcome, getting the error:
'No supported gpu backend found!' when I create the model (model = main.deepforest())
I also tried with
devices: auto
accelerator: auto
and then after creating the model I try to move to cuda with
model.to("cuda")
but I get the error
('Torch not compiled with CUDA enabled',)
Does anyone kindly have some indications and can kindly help me understand how I should set the various parameters to use the GPU I have available?
Thanks so much in advance to anyone who wants to help me.
Bye.
Beta Was this translation helpful? Give feedback.
All reactions