-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility issue when running base model on images #692
Comments
This issue is upstream of deepforest. Can you make a new env and reinstall? |
I already did, maybe its an issue with the versions of pytorch and torchvision, now the error runs in the IoU call from DeepForest main.py, it asks for version 0.8 or newer, wich i have |
You'll need to show full and reproducible logs for me to help, to much to guess at. |
Created a VE with python 3.11.9
Run the "Getting started demo" from the readthedocs DeepForest page, after I run the code I get the compatibility error previously mentioned snipet of the code: import deepforest model = main.deepforest() sample_image_path = r"C:\Users\zer0a\OneDrive\Escritorio\DiegoTrees\TIF\Prueba3.png" RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install. |
Start with pip install DeepForest and let's see. Conda installs are getting weaker and weaker, hard to mantain. (@henrykironde) |
@henrykironde I start to wonder whether we should drop conda support. Its just not worth it? @ethanwhite. |
Hi, I tried using a pip install, but it keeps outputing errors once I run the code, this time with lightning, after running the same code shown before I get |
please run and paste entire output.
|
Here it is!:
Package Planenvironment location: A:\Anaconda\envs\DeepForest_env added / updated specs: The following packages will be downloaded:
The following NEW packages will be INSTALLED: bzip2 conda-forge/win-64::bzip2-1.0.8-hcfcfb64_5 Proceed ([y]/n)? y Downloading and Extracting Packages: Preparing transaction: done To activate this environment, useTo deactivate an active environment, use$ conda deactivatePS C:\Users\zer0a> conda activate DeepForest_env after running that installation and then running the test code on the VE it can`t recognize any of the libraries that where installed by deepforest installation. ModuleNotFoundError Traceback (most recent call last) ModuleNotFoundError: No module named 'matplotlib' |
Thanks, but don't skip steps, its going to be something really subtle, so you need to show everything. Show me
and the terminal state right before you invoke python. I am guessing its looking at a python version that supercedes what you just installed. The module traceback should also give you a path, which i'm guess is not in the DeepForest_env conda directory. The fact that you are getting 'no module named matplotlib' is good news is the sense that unless all of python ecosystem has suddenly crashed (-> world ending) this is very unlikely to be a bug and much more something specific to your system setup. |
There is something wrong with your setup. Please revisit how to manage / setup conda or python environments.
Requirement already satisfied: sphinxcontrib-qthelp in a:\anaconda\lib\site-packages (from sphinx->deepforest) (1.0.3)
Requirement already satisfied: Pygments>=2.0 in a:\anaconda\lib\site-packages (from sphinx->deepforest) (2.15.1) |
Closing this due to lack of response. @Diego-asutralgis - feel free to open a new discussion if you are still having issues with your conda install and hopefully someone will have time to help. |
The code runs well when ussing Deepforest 1.1, when uprgading to 1.3.3 ussing a virtual enviroment it starts returning a compatibility problem, the torch and torchvision versions are compatible acording to the official webpage
**Environment
Screenshots and Context
User Story
“As a student Im working on a school project”
The text was updated successfully, but these errors were encountered: