Comments (4)
This is a really particular usecase.
I think you should use flow_from_dataframe
to solve your issue.
from keras-preprocessing.
Yes I can put all my data to dataframe however then flow_from_dataframe needs the directory also as an argument. If I could give a directory I would use the flow_from_directory. I don't understand why flow from dataframe needs directory.
I created my dataframe as here:
for train_region in training_regions:
X = numpy array from train_region
pd_dataset = pd.DataFrame({'label': Y, 'images': list(X)}, columns=['label', 'images'])
pd_datasets.append(pd_dataset)
data_train = pd.concat(pd_datasets)
The problem is I can not have one directory for all training images ...
from keras-preprocessing.
#56
Don't understand either why it needs the directory
argument and x_col
needs to be filenames only (not full path) otherwise it raises error
from keras-preprocessing.
This has been solved in the current version. This issue can be closed @Dref360
from keras-preprocessing.
Related Issues (20)
- ImageDataGenerator preparing labels to semantic segmentation HOT 1
- apply_affine_transform() confuses between X and Y HOT 1
- apply_affine_transform() callers do not pass axes indices (row_axis, col_axis)
- Does one really need row_axis/col_axis arguments in image transform functions?
- Get rid of scipy HOT 12
- Bug: axes transformation is incomplete
- Missing scale parameter in apply_brightness_shift() call HOT 1
- Q: how to turn off automatic data augmentation of ImageDataGenerator?
- apply_affine_transform calls tensor.ndim
- How to make keras ImageGenerator load float32 images HOT 1
- ImageDataGenerator, Apply augmentation on images that have more than 4 channels HOT 3
- Image data flows modify Numpy's global RNG
- Color conversion
- Pillow 8.3.0 breaks image.img_to_array() HOT 1
- char-level Tokenizer.sequences_to_texts() insert additional SPACEs
- Variable target_size on flow_from_dataframe()
- affine_transformations.py random_shift function tx ty? HOT 1
- ImageDataGenerator should be able to write per label
- skip-grams negative sample should not sample from whole vacabs HOT 1
- skipgrams negative sample should only sample from out of window words HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-preprocessing.