对于某些未知函数,如下所示: def unknown_function(input_array): # where input array could be, for example, a 3 by 3 numpy array
# does some unknown operation on input array
# to determine output array of same shape
return output_array 如何创建一个TensorFlow模型来找到任意输入数组的输出数组,给定一个足够大的输入输出数组对数据集来训练模型?
我正在使用自主数据集进行对象检测。我想用10000个训练图像,2000个测试图像,2000个验证图像来训练我的模型。我将使用对象检测tensorflow lite model maker。 项目链接: tensorflow.org/lite/tutorials/model_maker_object_detection 设置批处理大小32后,训练需要50个时期并持续2天(步骤3).I无法让我的计算机保持开机两天。我在jupyter notebook中运行该项目 如何停止模型训练并再次恢复模型训练?(例如,停止第10个纪元,并在一天后继续)
在谷歌云上训练和评估大型神经网络模型(tensorflow)。
评估我的模型时出现以下错误:
W Resource exhausted: OOM when allocating tensor with shape[38633472,17]
W Ran out of memory trying to allocate 2.45GiB. See logs for memory state.
undefined
我认为这与容器内存限制有关。
对此有什么帮助吗?