在JavaScript中,他们确认对话框,在单击是或否按钮时返回true或false.
if (confirm('Your question')) {
// do things if OK
}
Run Code Online (Sandbox Code Playgroud)
但它不可自定义,可以在单击弹出窗口中的复选框时停止.
所以我想使用JQuery确认或对话插件.但是我找到的插件,不会返回true或false.它带有按钮功能,我无法通过按钮功能返回true或false.
有没有办法在jQuery中返回像Boolean这样的变量确认?
我一直在我自己的数据集上使用Tensorflow Object Detection API。在训练时,我想知道神经网络从训练集中学习的情况如何。因此,我想对训练集和评估集进行评估,并在训练期间分别获得准确率 (mAP)。
我的配置文件:
model {
faster_rcnn {
num_classes: 50
image_resizer {
fixed_shape_resizer {
height: 960
width: 960
}
}
number_of_stages: 3
feature_extractor {
type: 'faster_rcnn_resnet101'
first_stage_features_stride: 8
}
first_stage_anchor_generator {
grid_anchor_generator {
scales: [0.25, 0.5, 1.0, 2.0]
aspect_ratios: [0.5, 1.0, 2.0]
height_stride: 8
width_stride: 8
}
}
first_stage_atrous_rate: 2
first_stage_box_predictor_conv_hyperparams {
op: CONV
regularizer {
l2_regularizer {
weight: 0.0
}
}
initializer {
truncated_normal_initializer {
stddev: 0.00999999977648
}
}
}
first_stage_nms_score_threshold: 0.0
first_stage_nms_iou_threshold: 0.699999988079
first_stage_max_proposals: …Run Code Online (Sandbox Code Playgroud) python machine-learning object-detection tensorflow object-detection-api