0
$\begingroup$

I just trained my birds model. It works fine when I was testing it with close pictures.

But when I moved the pictures further away my camera, the model was not able to detect birds.

My guess is in this line of code

data = ImageDataBunch.from_folder(path=path_img, bs=48, valid_pct= 0.2, ds_tfms=get_transforms(), size=299, classes=['birds', 'others'])

After checked the source code of get_transforms()

def get_transforms(do_flip:bool=True, ....)->Collection[Transform]:
    "Utility func to easily create a list of flip, rotate, `zoom`, warp, lighting transforms."
    res = [rand_crop()] .....

I can see that it does the crop and there is no way to turn it off.

Could someone help please?

enter image description here enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.