問題タブ [data-augmentation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Keras Image Preprocessing .flow(x, y, save_to_dir) は、拡張された x 画像のみを保存し、y の画像は保存しません
私は画像セグメンテーションタスクのために私の画像と私の画像Keras data augmentationの両方に使用しています。x_trainy_train
このために、次のコードを使用しています。
しかし、これは私の拡張x imagesを保存するだけで、彼らのlabels. 画像とそのラベルの両方を保存して視覚化するにはどうすればよいですか?
画像とマスクを一緒に変換する例Keras Image preprocessingのページの例を既に試しましたが、成功しませんでした。
エラーが発生しますAttributeError: 'zip' object has no attribute 'shape'。
コード:
data_augmentationまた、トレーニング中にパラメーターを増やす方法はありますか?




