Custom Dataset From User Input

Is there any way to train a new dataset (not pretrained dataset) after users add their images while running the apps