deepchem/DeepLearningLifeSciences

opencv need to fix IndexError at Chapter08 code

partrita opened this issue · 0 comments

num of images to be processed: 824
OpenCV required for image preprocessing
Number of images: 0
Traceback (most recent call last):
  File "/home/fkt/Downloads/deepchem/notebook/DeepLearningLifeSciences-master/Chapter08/run.py", line 15, in <module>
    train, valid, test = load_images_DR(split='random', seed=123)
  File "/home/fkt/Downloads/deepchem/notebook/DeepLearningLifeSciences-master/Chapter08/data.py", line 54, in load_images_DR
    dat = deepchem.data.ImageDataset(
  File "/home/fkt/mambaforge/envs/deepchem/lib/python3.9/site-packages/deepchem/data/datasets.py", line 2713, in __init__
    self._X_shape = self._find_array_shape(X)
  File "/home/fkt/mambaforge/envs/deepchem/lib/python3.9/site-packages/deepchem/data/datasets.py", line 2740, in _find_array_shape
    image_shape = load_image_files([array[0]]).shape[1:]
IndexError: list index out of range

after installing opencv,

Num of images to be processed: 824
on image 0
on image 100
(skip)