Ok.
I have a config.py file with:
annotations                      =  “/input/train/annotations.json”
val_annotations               = “/input/valid/annotations.json”
backbone                         = ‘ResNet50FPN’
classes                            = 3
model                               = “retinanet_rn50fpn.pth”
fine_tune                           = “/media/Data/ObjectDetector/resnet50-19c8e357.pth”
iters                                  = 100
val_iters                           = 10
lr                                       = 0.0001
resize                               = 516
batch                                = 1
max_size                          = 516
Then in UseExample.py:
import retinanet.config_train as config
import retinanet.main as main
args = 
[
“train”            ,
config.model       ,
‘–backbone’       , config.backbone,
‘–annotations’    , config.annotations,
#’–val-annotations’, config.val_annotations,
‘–classes’        , str(config.classes),
‘–resize’         , str(config.resize),
‘–batch’          , str(config.batch),
‘–max-size’       , str(config.max_size),
‘–iters’          , str(config.iters),
‘–lr’             , str(config.lr),
]
main.main(args)