One or more of your intermediate directories do not exist in your path (D:/python/RDANET/checkpoints/) where you are trying to save the model. Torch expects the directories to exist in the path of saving the model.