关于ValueError: `validation_steps=None` is only valid for a generator based on the `keras.utils...
2019-07-09 15:34
2531 查看
关于这个错误也是很奇葩,其实很简单,在我这出现的原因是由于validation-data数据过少,而batchsize的数目太大,导致两者相除的结果一直为0,所以会在fit_generator函数里面报错。针对这种情况,一般在数据量大的时候不会发生,但是在数据量非常少(比如我只选了几十个数据做测试网络用)就会出现这种情况,所以鉴于这种情况下,可以调整batchsize为1,先用来测试,然后在网络调试通了,数据量大的时候在改回相应的合适的batchsize值~
相关文章推荐
- An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON
- This file is based on the Microsoft Data Access Application Block for .NET
- jqGrid is a grid component for ASP.NET & PHP based on the world's most popular and flexible jQuery g
- 关于VMware提示there is not enough space on the file system for the selected operation
- 关于发布webservice提示The test form is only available for requests from the local machine
- The run destination My Mac 64-bit is not valid for Running the scheme '*****'.
- The run destination My Mac 64-bit is not valid for Running the scheme
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- 关于Tomcat: The value for the useBean class attribute is invalid 问题的另类解释
- (Error) The type AESKeyGenerator is not accessible due to restriction on required library.
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- FAT file system-Given any valid cluster number N, where in the FAT(s) is the entry for that cluster number?
- 关于“The type **** is not accessible due to restriction on required library”问题的解决
- MySQL5中大数据错误:Packet for query is too large (****** > ******). You can change this value on the server by setting the max_allowed_packet' variable.;
- PymongoDB报错MongoError: The dotted field .. is not valid for storage
- Theserver is not reeady for publishing.Please check if the Publishing Tools on the serverare started
- 日常问题记录:idea配置JDK.The selected directory is not a valid home for JDK
- 【iOS】The run destination My Mac 64-bit is not valid for Running the scheme '*'
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- 关于there is no cource code available for the current的解决方法