I have trained the model on a custom dataset and deployed it and its works fine. There is no issue with the production. Then, I wanted to deploy it on a Android device and for that I needed a traced file. Thats where all this started.