ultrayolo.helpers package¶
Submodules¶
ultrayolo.helpers.callbacks module¶
-
ultrayolo.helpers.callbacks.
default_callbacks
(model, run_path, lrate_mode, lrate_value, verbose=1)[source]¶ create the callbacks for the model
- Arguments:
model {tf.keras.Model} – a valid tensorflow model run_path {str} – the path to save the checkpoints lrate_mode {str} – the mode for the learning rate scheduler
(values: cyclic, exp_range, reduce_on_plateau)
lrate_value {float} – the initial value for the learning rate verbose {int} – 0 for no verbose, 1 for verbose (default: 1)
- Returns:
list – a list of tf.keras.callbacks
ultrayolo.helpers.darknet module¶
-
ultrayolo.helpers.darknet.
freeze_backbone_layers
(model, num_layers)[source]¶ model: a yolo model num_layers: the number of layers starting from the last layer of darknet to freeze
ultrayolo.helpers.draw module¶
-
ultrayolo.helpers.draw.
get_cell_responsible_on_grid
(box_xywh, img_size, grid_len)[source]¶ Computes the grid cell responsible to detect the box