Open waquey opened 4 years ago
I have not figure out how to write a proper test code. For now you need to export the model for inference.
您好,我想请问一下,我使用新的数据集训练网络,那么训练完成后怎么对它进行测试呢?请问有测试的代码吗?
@zhouqianyu0918 先实现推演,这是测试的基础。至于测试,它需要有明确的测试数据,测试指标等等。可以尝试在论文里找找通用的测试协议。
Is there any test code we can try to inference?
After training, I've tried to assign placeholder and inference.
However, it'll get the following errors:
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value layer2/conv2d/kernel [[node layer2/conv2d/kernel/read (defined at test.py:967) ]]
===================== Code ========================= input_name ='image_tensor'
with tf.compat.v1.Session(graph=graph) as sess: ONet_point_results = sess.run([ output_operation.outputs[0] ], {input_operation.outputs[0]: cropped_ims})