Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv need to fix IndexError at Chapter08 code #34

Closed
partrita opened this issue Dec 1, 2023 · 0 comments
Closed

opencv need to fix IndexError at Chapter08 code #34

partrita opened this issue Dec 1, 2023 · 0 comments

Comments

@partrita
Copy link
Contributor

partrita commented Dec 1, 2023

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)
@partrita partrita closed this as completed Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant