Skip to content
Advertisement

Tag: image-processing

Data Augmentation in PyTorch

I am a little bit confused about the data augmentation performed in PyTorch. Now, as far as I know, when we are performing data augmentation, we are KEEPING our original dataset, and then adding other versions of it (Flipping, Cropping…etc). But that doesn’t seem like happening in PyTorch. As far as I understood from the references, when we use data.transforms

Image Type Error: OpenCV Python

I get an image type error when I run my code. I know HoughLinesP requires a grayscale image but when I try to convert the source image to grayscale I get the following error(1): error: (-215) depth == 0 || depth == 2 || depth == 5 in function cv::cvtColor If I run HoughLinesP without converting to grayscale I get

Advertisement