Information about Cost function in TLT

Can anyone explain, or redirect me to information about cost function in the TRAIN specfile?
The TLT documentation isn’t very informative about cost function in particular.

Here’s the cost functio part of the detectnet_v2 examplefile:

cost_function_config {
target_classes {
name: “car”
class_weight: 1.0
coverage_foreground_weight: 0.05
objectives {
name: “cov”
initial_weight: 1.0
weight_target: 1.0
}
objectives {
name: “bbox”
initial_weight: 10.0
weight_target: 10.0

Can someone tell me what the COV initial weight and target weight mean, same as for the BBOX initial and target weights?

Another question: What should be the settings when training a single class detector?

Thanks alot! Gerard

Refer to

For training a single class detector, it is easy. You just need to delete all the classes you do not want to train.

Ok, to be really sure, for a single class detector, should I use settings (A)

}
objectives {
  name: "bbox"
  initial_weight: 10.0
  weight_target: 10.0
}

}

Or settings (B)

}
objectives {
  name: "bbox"
  initial_weight: 1.0
  weight_target: 1.0
}

}

You can set

objectives {
  name: "cov"
  initial_weight: 1.0
  weight_target: 1.0
}
objectives {
  name: "bbox"
  initial_weight: 10.0
  weight_target: 10.0
}