zlai0 / MAST

MAST: A Memory-Augmented Self-supervised Tracker (CVPR 2020)
https://zlai0.github.io/MAST/
273 stars 32 forks source link

Issues about RGB 2 lab space #7

Closed carrierlxk closed 4 years ago

carrierlxk commented 4 years ago

Thanks for sharing codes. When I run the training code, I find an issue as follow: YTVOSTrainLoader.py", line 28, in lab_preprocess image = cv2.cvtColor(image, cv2.COLOR_BGR2Lab) cv2.error: OpenCV(4.3.0) /io/opencv/modules/imgproc/src/color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<3>; VDepth = cv::impl::{anonymous}::Set<0, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = cv::impl::::NONE; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'

Invalid number of channels in input image: 'VScn::contains(scn)' where 'scn' is 1

I think it may be raised by converting grayscale images to color space. Can you provide some solutions?

upxinxin commented 4 years ago

hello, i met the same problem .Have you solved the problem? If i worked, could you give me some advice? Thanks a lot!

carrierlxk commented 4 years ago

Because some images in the dataset are not existing.

InnovArul commented 3 years ago

Hi, How did you overcome this issue? I mean, did you find out why the images are not existing? or did you skip the non-existing images?

Could you pl. let me know this.

upxinxin commented 3 years ago

Hi, How did you overcome this issue? I mean, did you find out why the images are not existing? or did you skip the non-existing images?

Could you pl. let me know this.

Hi , i skipped the no-existing images and it worked.

InnovArul commented 3 years ago

Thanks for your reply. I did the same.

Sora-dw commented 3 years ago

Thanks for your reply. I did the same.

hello! I meet the same question, too. And I am wondering how to skip the non-existing images like you said. By the way, which database do you use?