return_lazy_model(cfg[, freeze])
return_lazy_model
Return a model formed from a LazyConfig with the backbone
Return a model formed from a LazyConfig with the backbone frozen. Only the head layers will be trained.
cfg (.py file) – a LazyConfig
torch model