# \#pytorch

**URL:** https://forum.opencv.org/tag/pytorch/229.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [CUDA, PyTorch and YOLO Integration problem](https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082)

<div class="topic-metadata">

**Author:** [@akdenzi](https://forum.opencv.org/u/akdenzi)\
**Replies:** 2\
**Last updated:** [June 25, 2024, 1:21pm UTC](https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082 "2024-06-25T13:21:07Z")

</div>

Hello, as I mentioned yesterday, I installed Python 3.11 and then recompiled OpenCV with CUDA. I was working on YOLO with CUDA as well, but now when I run PyTorch 12.4 with CUDA, I’m getting this error for YOLO: “could …

---

## [Conda install opencv breaks the existing environment with torch and torchvision](https://forum.opencv.org/t/conda-install-opencv-breaks-the-existing-environment-with-torch-and-torchvision/17416)

<div class="topic-metadata">

**Author:** [@BBHV](https://forum.opencv.org/u/BBHV)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 9:59am UTC](https://forum.opencv.org/t/conda-install-opencv-breaks-the-existing-environment-with-torch-and-torchvision/17416 "2024-04-25T09:59:24Z")

</div>

So when creating a new environment using conda, I installed pytorch and torchvision using the following command. conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia Later when trying to …

---

## [Personal Opinions on Deep Learning Libraries](https://forum.opencv.org/t/personal-opinions-on-deep-learning-libraries/4833)

<div class="topic-metadata">

**Author:** [@Tron777](https://forum.opencv.org/u/Tron777)\
**Replies:** 8\
**Last updated:** [April 12, 2024, 11:14am UTC](https://forum.opencv.org/t/personal-opinions-on-deep-learning-libraries/4833 "2024-04-12T11:14:54Z")

</div>

Deep learning libraries are crucial for any successful advanced OpenCV Python application. Some are listed below (popular ones): PyTorch Keras TensorFlow Caffe What are your opinions on each framework and the compatib…

---

## [Underwhelming performance in neural network with PyTorch](https://forum.opencv.org/t/underwhelming-performance-in-neural-network-with-pytorch/13842)

<div class="topic-metadata">

**Author:** [@sjhalayka](https://forum.opencv.org/u/sjhalayka)\
**Replies:** 9\
**Last updated:** [August 1, 2023, 3:27pm UTC](https://forum.opencv.org/t/underwhelming-performance-in-neural-network-with-pytorch/13842 "2023-08-01T15:27:12Z")

</div>

I am trying to train a network to classify cat vs dog images. I’m only getting about 75% correct at this point. Is there anything obvious (to an expert) that I can do to make it perform better? The lastest img\_train.py …

---

## [warpPerspective low quality](https://forum.opencv.org/t/warpperspective-low-quality/13965)

<div class="topic-metadata">

**Author:** [@Mored\_Game](https://forum.opencv.org/u/Mored_Game)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 4:59pm UTC](https://forum.opencv.org/t/warpperspective-low-quality/13965 "2023-07-20T16:59:12Z")

</div>

I am writing a program that recognizes license plates and puts its own on top of them, but there is a problem with cv2.warpPerspective, it gives very poor quality when changing perspective, interpolation flags do not sav…

---

## [OpenCV build in Windows with PyTorch](https://forum.opencv.org/t/opencv-build-in-windows-with-pytorch/3280)

<div class="topic-metadata">

**Author:** [@cvilio](https://forum.opencv.org/u/cvilio)\
**Replies:** 1\
**Last updated:** [June 5, 2021, 5:37am UTC](https://forum.opencv.org/t/opencv-build-in-windows-with-pytorch/3280 "2021-06-05T05:37:18Z")

</div>

I built OpenCV from source in Windows 10 to include modules from contrib (namely, cuda optical flow stuff). I’m using OpenCV exclusively from Python 3, and I cannot import PyTorch after OpenCV. E.g., import cv2 import t…
