Found 0 images belonging to 0 classes. Found 0 images belonging to 0 classes. 2023-05-25 14:11:20.651003: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 AVX AVX2 AVX512F AVX512_VNNI FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-05-25 14:11:20.651867: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance. Traceback (most recent call last): File "/home/el304/kerasbook/csdnwrite.py", line 56, in <module> model.fit([rgb_generator, flow_generator], epochs=10, steps_per_epoch=100) File "/home/el304/anaconda3/envs/twostream/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "/home/el304/anaconda3/envs/twostream/lib/python3.7/site-packages/keras/engine/data_adapter.py", line 1085, in select_data_adapter "input: {}, {}".format(_type_name(x), _type_name(y)) ValueError: Failed to find data adapter that can handle input: (<class 'list'> containing values of types {"<class 'keras.preprocessing.image.DirectoryIterator'>"}), <class 'NoneType'>出現這樣子錯誤
时间: 2024-02-03 10:04:05 浏览: 173
这个错误是由于 `model.fit` 函数的输入参数不正确导致的。你需要将 `rgb_generator` 和 `flow_generator` 分别放在一个列表中作为第一个参数传入 `model.fit` 函数中,如下所示:
```
model.fit([rgb_generator, flow_generator], epochs=10, steps_per_epoch=100)
```
另外,你可能需要检查一下你的数据生成器是否正常工作,是否正确地加载了图像数据。
相关问题
Found 0 images belonging to 0 classes.
I'm sorry, but I'm not sure how to answer your question based on the statement you provided. Could you please provide more context or clarify your question?
No matching processes belonging to you were found
如果您在使用命令行终端时出现“No matching processes belonging to you were found”这个错误信息,通常意味着您输入的命令无法找到对应的进程。
如果您想要重启Sublime,可以尝试以下方法:
1. 双击Sublime的应用程序图标,看看是否可以重新打开Sublime。
2. 如果Sublime仍无法打开,可以尝试重启您的计算机,然后再次打开Sublime。
3. 如果以上两种方法都无法解决问题,您可以尝试卸载并重新安装Sublime,或者联系Sublime的技术支持团队获取帮助。
阅读全文