-
Notifications
You must be signed in to change notification settings - Fork 231
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
Create branch that uses flow_from_directory to avoid preloading all images into RAM #1
Comments
Hello, @stratospark ! i have theTypeError: process() missing 1 required positional argument : 'rng' The fool error looks likee: `TypeError Traceback (most recent call last) /usr/local/lib/python3.5/dist-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs) /usr/local/lib/python3.5/dist-packages/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) /usr/local/lib/python3.5/dist-packages/keras/utils/data_utils.py in get(self) ~/.local/lib/python3.5/site-packages/six.py in reraise(tp, value, tb) /usr/local/lib/python3.5/dist-packages/keras/utils/data_utils.py in _data_generator_task(self) ~/photo_data/tools/image_gen_extended.py in next(self, *args, **kwargs) ~/photo_data/tools/image_gen_extended.py in next(self) TypeError: process() missing 1 required positional argument: 'rng'` Thank you in advance for your help! |
Hi, I had the same issue. rng = np.random everything should work. |
This will hopefully make this project more feasible to run on a wider range of systems. I have extended the multiprocessing ImageDataGenerator to also load and processes images from disk in parallel: https://github.com/stratospark/keras-multiprocess-image-data-generator. It would be interesting to see how long it takes to train the classifier on a a system with less RAM than the total size of the food-101 dataset.
The text was updated successfully, but these errors were encountered: