FastAi How to turn off crop in ImageDataBunch

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…

Details

FastAi How to turn off crop in ImageDataBunch

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…

Details

How to add attribute value in Sale label when there’s sale in Woocommerce?

I have an attribute called “discount” and I would like to present it in the Sale label on the product http://prntscr.com/qgskb5 This is the code that I have used for printing custom sale label ( instead “Sale” I have “%”) <?php add_filter(‘woocommerce_sale_flash’, ‘woocommerce_custom_sale_text’, 10, 3); function woocommerce_custom_sale_text($text, $post, $_product) { return ‘<span class=”on-sale”>%</span>’; }

Details