Skip to content

torchvision0.15.2+cu118 will affect cv2.imshow() in opencv4.7.0 does not respond #7711

@watertianyi

Description

@watertianyi

🐛 Describe the bug

import cv2
import torch
from torchvision import transforms

img_path="1.jpg"
cv_img = cv2.imread(img_path)
print(cv_img.shape)
cv2.imshow("winame", cv_img)
cv2.waitKey(0)

Versions

torchvision0.15.2+cu118 will affect cv2.imshow() in opencv4.7.0 does not respond
Images that need to display opencv must comment out torchvision
But it has no effect in torchvision0.15.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions