Skip to content
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

Unable to run evaluation with the provided trained model #227

Open
1 of 2 tasks
muhammad-usama-aleem opened this issue Nov 28, 2023 · 0 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@muhammad-usama-aleem
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

train-yolov7-object-detection-on-custom-data-openvino-torch-ort.ipynb

Bug

!python detect_without_jit.py --weights /content/yolov7/runs/best.pt --conf 0.25 --img-size 640 --source UWH-6/test/images/DJI_0021_mp4-32_jpg.rf.0d9b746d8896d042b55a14c8303b4f36.jpg

I am getting the following error when running the above command:

Traceback (most recent call last):
  File "/content/yolov7/detect_without_jit.py", line 10, in <module>
    from models.experimental import attempt_load
  File "/content/yolov7/models/experimental.py", line 6, in <module>
    from models.common import Conv, DWConv
  File "/content/yolov7/models/common.py", line 11, in <module>
    from torchvision.ops import DeformConv2d
  File "/usr/local/lib/python3.10/dist-packages/torchvision/__init__.py", line 6, in <module>
    from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils
  File "/usr/local/lib/python3.10/dist-packages/torchvision/_meta_registrations.py", line 7, in <module>
    import torchvision.extension  # noqa: F401
  File "/usr/local/lib/python3.10/dist-packages/torchvision/extension.py", line 92, in <module>
    _check_cuda_version()
  File "/usr/local/lib/python3.10/dist-packages/torchvision/extension.py", line 78, in _check_cuda_version
    raise RuntimeError(
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA major versions. PyTorch has CUDA Version=12.1 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.

Environment

Collab

Minimal Reproducible Example

Run the code blocks as they are and then restart the runtime, when asked for restart the runtime after installing the dependencies

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@muhammad-usama-aleem muhammad-usama-aleem added the bug Something isn't working label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant