Skip to content

The test_detection_model_trainable_backbone_layers test shouldn't download the pretrained_backbone weights #4660

@datumbox

Description

@datumbox

Feature Improvement

The test_detection_model_trainable_backbone_layers test currently downloads the weights of the backbone:

pretrained=False, pretrained_backbone=True, trainable_backbone_layers=trainable_layers

Setting the value pretrained_backbone=True is necessary because the number of trainable layers depends on this value. Unfortunately downloading pre-trained weights can lead to flakiness and slow tests and should be avoided. Until we setup a cache to store the weights locally on the CI, we should find a way to skip the actual downloading of weights during the test execution.

cc @datumbox @pmeier

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions