FPD icon indicating copy to clipboard operation
FPD copied to clipboard

transformers.py

Open yefeng23323 opened this issue 1 year ago • 3 comments
trafficstars

Hello, your code has the file transformers.py, may I ask what it does specifically?I can run the code by deleting this file.

yefeng23323 avatar Mar 25 '24 07:03 yefeng23323

Hello yefeng, transforms.py contains some image preprocessing methods. See the file below for more functions.

mmfewshot/mmfewshot/detection/datasets/pipelines/transforms.py

For example, CropResizeInstance defines how to obtain a fixed-size image patch (224, 224) from the original support image. CropResizeInstanceByRatio here does basically the same effect. It is only used in MS COCO dataset and doesn't make a significant difference. So it's ok to delete it and use the CropResizeInstance function as a replacement.

wangchen1801 avatar Mar 25 '24 08:03 wangchen1801

Hello, it's just that I didn't find a place to use transforms.py in the source code, so you can still train and test normally (using only VOC datasets) by removing it.What do you mean by using CropResizeInstance instead?

yefeng23323 avatar Mar 25 '24 09:03 yefeng23323

Hello, transforms.py is only used while training on COCO dataset. Your understanding is correct, we don't need to modify the code. Best~

wangchen1801 avatar Mar 25 '24 16:03 wangchen1801