stanfordmlgroup.github.io | Group Website | Web Site library
kandi X-RAY | stanfordmlgroup.github.io Summary
kandi X-RAY | stanfordmlgroup.github.io Summary
Group Website
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stanfordmlgroup.github.io
stanfordmlgroup.github.io Key Features
stanfordmlgroup.github.io Examples and Code Snippets
Community Discussions
Trending Discussions on stanfordmlgroup.github.io
QUESTION
I'm working on the MURA dataset by Stanford. I'm trying to load the dataset using Keras's ImageDataGenerator. The data is in the following hierarchy:
The study1_positive
folder contains the images.
ImageDataGenerator.flow_from_directory
cannot be used with this folder structure, therefore I tried using the flow_from_dataframe
method.
However, when run, the code keeps on executing and doesn't stop.
Following is the format of the Pandas DataFrame that I'm passing to the flow_from_directory
method:
I've also tried changing the labels to 'abnormal' and 'normal' in place of 1 and 0, respectively.
EDIT:
I've pasted the code below:
...ANSWER
Answered 2018-Nov-22 at 07:26Found the solution here. Apparently, the current flow_from_dataframe
doesn't handle relative paths.
- Clone my "fix_found_0_images" branch.
git clone -b fix_found_0_images_bug https://github.com/smurak/keras-preprocessing.git
- Move the "keras_preprocessing" subdirectory to your working directory.
- Import it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stanfordmlgroup.github.io
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page