Keras 应用、生成器方法的 API 改进。
preprocess_inputin all Keras applications compatible with both Numpy arrays and symbolic tensors (previously only supported Numpy arrays).
weightsargument in all Keras applications to accept the path to a custom weights file to load (previously only supported the built-in
steps_per_epochbehavior change in generator training/evaluation methods:
If specified, the specified value will be used (previously, in the case of generator of type
Sequence, the specified value was overridden by the
If unspecified and if the generator passed is a
Sequence, we set it to the
workers=0in generator training/evaluation methods (will run the generator in the main process, in a blocking way).
ImageDataGenerator.flow_from_directory, allowing a custom interpolation method for image resizing.
multi_gpu_modelto be a list of specific GPU ids.