How to train with less data?

how to train with less data when a training & testing dataset for custom work is less data?

You can either use resampling methods, like K-fold cross validation or any other that suits your data requirements, or you can augment more data from the existing one. Another such approach will be using a Siamese Network, you’ll have to try out different approaches, and opt for the one that suits your requirements.