For my model, I load pretrained version of DetrFeatureExtractor:
feature_extractor = DetrFeatureExtractor(return_tensors="pt"
,do_normalize = True
,size = 400).from_pretrained("facebook/detr-resnet-50")
But when I output parameters of this variable, I get:
DetrFeatureExtractor {
"do_normalize": true,
"do_resize": true,
"feature_extractor_type": "DetrFeatureExtractor",
"format": "coco_detection",
"image_mean": [
0.485,
0.456,
0.406
],
"image_std": [
0.229,
0.224,
0.225
],
"max_size": 1333,
"size": 800
}
which still has size = 800. Is that possible to change parameters of pretrained feature extractor and, if yes, how can I change them?