-
Notifications
You must be signed in to change notification settings - Fork 90
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Step 4 fit the model problem #7
Comments
Hi, Again can you provide more details? What system are you running this on? What dataset are you attempting to train the model with? Did the rest of the notebook run ok? |
Hi, Ubuntu 18.04 and your code with your data, changed just the directory |
Hi, this still doesn't work (On Ubuntu 18.04, with your data and on jupyter notebook): {'shuffle': True, Then I changed log_densenet.h5 to example_annotation_set.h5 for the logger: AttributeError Traceback (most recent call last) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/models/engine.py in fit(self, batch_size, validation_batch_size, callbacks, epochs, use_multiprocessing, n_workers, steps_per_epoch, **kwargs) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs) ~/anaconda3/envs/whipspider/lib/python3.7/site-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) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/engine/training_generator.py in fit_generator(model, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/callbacks.py in on_epoch_end(self, epoch, logs) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/callbacks.py in on_epoch_end(self, epoch, logs) AttributeError: 'ProgbarLogger' object has no attribute 'log_values' |
|
Teh logger worked now but I still have this Error: |
Does it still give the error if you remove the callbacks from the model training? Set |
Then i get this error: ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/models/engine.py in fit(self, batch_size, validation_batch_size, callbacks, epochs, use_multiprocessing, n_workers, steps_per_epoch, **kwargs) TypeError: object of type 'NoneType' has no len() |
Sorry, there's a bug when |
AttributeError Traceback (most recent call last) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/models/engine.py in fit(self, batch_size, validation_batch_size, callbacks, epochs, use_multiprocessing, n_workers, steps_per_epoch, **kwargs) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs) ~/anaconda3/envs/whipspider/lib/python3.7/site-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) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/engine/training_generator.py in fit_generator(model, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/callbacks.py in on_epoch_end(self, epoch, logs) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/keras/callbacks.py in on_epoch_end(self, epoch, logs) AttributeError: 'ProgbarLogger' object has no attribute 'log_values' |
It appears you don't have a validation set. You should increase |
When i set validation_split here 1 or above: I get the following error: ValueError Traceback (most recent call last) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/TrainingGenerator.py in init(self, datapath, dataset, downsample_factor, use_graph, augmenter, shuffle, sigma, validation_split, graph_scale, random_seed) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/TrainingGenerator.py in _init_data(self, datapath, dataset) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/TrainingGenerator.py in getitem(self, index) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/TrainingGenerator.py in generate_batch(self, indexes) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/TrainingGenerator.py in load_batch(self, indexes) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/DataGenerator.py in getitem(self, key) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/io/DataGenerator.py in _check_index(self, key) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/numpy/core/fromnumeric.py in amax(a, axis, out, keepdims, initial) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs) ValueError: zero-size array to reduction operation maximum which has no identity |
This is the opposite problem. |
This should now be fixed the latest version 0.1.1, but please reopen this issue if you're still having problems. |
Hi, unfortunately it's still not working. I downloaded everything again, compared it with your code here and tried it with the locust and fly data. The error occurs at the model.fit part Epoch 1/1000 AttributeError Traceback (most recent call last) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/deepposekit/models/engine.py in fit(self, batch_size, validation_batch_size, callbacks, epochs, use_multiprocessing, n_workers, steps_per_epoch, **kwargs) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/tensorflow/python/keras/engine/training_generator.py in model_iteration(model, data, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch, mode, batch_size, steps_name, **kwargs) ~/anaconda3/envs/whipspider/lib/python3.7/site-packages/tensorflow/python/keras/callbacks.py in _call_batch_hook(self, mode, hook, batch, logs) AttributeError: 'EarlyStopping' object has no attribute 'on_train_batch_begin' For both fly and locust data I get this error |
We recently updated to |
Hey, here is another problem
The text was updated successfully, but these errors were encountered: