When pytorch automatically downloads the model, the location where the model is saved

For example: import densenet121 for pre-training
import torch
from torchvision import models
a = models.densenet121 (pretrained = True)
## If the densenet121 model has not been downloaded before, after running the code, the code will automatically download the model and save it to
C: \ Users \ lvnianzu / .cache \ torch \ checkpoints

Published 36 original articles · won praise 1 · views 6384

Guess you like

Origin blog.csdn.net/qq_34291583/article/details/100030438