Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. WARNING:tensorflow:From C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
  2. Instructions for updating:
  3. Use tf.cast instead.
  4. ---------------------------------------------------------------------------
  5. ValueError Traceback (most recent call last)
  6. <ipython-input-13-1f8204906dee> in <module>
  7. 17 validation_data=test_generator,
  8. 18 use_multiprocessing=True,
  9. ---> 19 verbose=2)
  10.  
  11. C:\ProgramData\Anaconda3\lib\site-packages\keras\legacy\interfaces.py in wrapper(*args, **kwargs)
  12. 89 warnings.warn('Update your `' + object_name + '` call to the ' +
  13. 90 'Keras 2 API: ' + signature, stacklevel=2)
  14. ---> 91 return func(*args, **kwargs)
  15. 92 wrapper._original_function = func
  16. 93 return wrapper
  17.  
  18. C:\ProgramData\Anaconda3\lib\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)
  19. 1416 use_multiprocessing=use_multiprocessing,
  20. 1417 shuffle=shuffle,
  21. -> 1418 initial_epoch=initial_epoch)
  22. 1419
  23. 1420 @interfaces.legacy_generator_methods_support
  24.  
  25. C:\ProgramData\Anaconda3\lib\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)
  26. 66 if (val_gen and not isinstance(validation_data, Sequence) and
  27. 67 not validation_steps):
  28. ---> 68 raise ValueError('`validation_steps=None` is only valid for a'
  29. 69 ' generator based on the `keras.utils.Sequence`'
  30. 70 ' class. Please specify `validation_steps` or use'
  31.  
  32. ValueError: `validation_steps=None` is only valid for a generator based on the `keras.utils.Sequence` class. Please specify `validation_steps` or use the `keras.utils.Sequence` class.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement