deepchem / deepchem/DeepLearningLifeSciences

Chapter 8 - data.py

Open
#7 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
414
Forks
159
PR merge metrics
No merged PRs in 30d

Description

Hi there,
I was trying to run the code but it does not run, in line 41 you are looking for

image_names = [p for p in os.listdir(images_path)if p.startswith('cut_') and p.endswith('.png')]

But there are no png images in the rep that I downloaded from Kaggle, all the images are in jpeg format.
and in the list you build in :

for im in image_names:
if im.endswith('.jpeg') and not im.startswith('cut_') and not 'cut_' + im in image_names:
raw_images.append(im)

Does not get used at all the raw_images ....

I am trying to understand why you are looking for 'cut_' there is no image that starts or ends with 'cuts_'

Can you please help me get a working version.

Thanks.
Oscar.

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect Chapter 8's data.py around line 41 and compare its expected cut_ PNG filenames with the JPEG files in the downloaded Kaggle dataset. Trace where raw_images is built and whether it is used, then run the Chapter 8 code against the available images. Done means the example runs with the dataset described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
data, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.