Replies: 1 comment 1 reply
-
@sadransh you should add The default data pipeline is all RGB based, if you load a grayscale image as RGB it should work fine. Something else must be wrong, possibly with bbox format from the custom dataset?. I have had some inconsistent failures with sync-bn, especially when it is enabled with amp and model-ema. It is worth trying a run with sync-bn disabled, batch size 21 should still be stable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom set with grayscale images. images are small ( 224x224). ( I think by default images opens as 3 similar channels) I tried training d1 and d0. after more than 100(or 200) epochs it does not train at all (though loss reaches around 0.5 or less )
Any Idea? I have trained RGB images with the same code w/o any issue.
I have also trained a network using this grayscale set with detecteron2 without any problem.
training command. ( similar command works with rgb dataset)
!./distributed_train.sh 3 ../data --model tf_efficientdet_d1 --dataset weld --mean 0.3286 --std 0.1569 -b 21 --apex-amp --lr .07 --sync-bn --opt fusedmomentum --warmup-epochs 3 --lr-noise 0.3 0.9 --model-ema --model-ema-decay 0.9998 -j 25 --epochs 400
Beta Was this translation helpful? Give feedback.
All reactions