Failed to save weights into a local file

Based on the error message ./models/weights.pt doesn’t exist and it’s unfortunately not possible to give any better advice than to check the current working directory and to make sure this file and folder are indeed there without any more information.

PS: you can post code snippets by wrapping them into three backticks ```.