I see what’s going on. According to http://pytorch.org/docs/master/model_zoo.html?highlight=torch_home 69 at torch.utils.model_zoo “The default value of model_dir is $TORCH_HOME/models where $TORCH_HOME defaults to ~/.torch. The default directory can be overriden with the $TORCH_MODEL_ZOO environment variable.”
Now if I want to load pretrained model directly from torch.utils.model_zoo, then I can use model_dir argument like loaded_state_dict = model_zoo.load_url(model_urls['vgg19'],'/code/cs231n/model') but in this case I am trying to do so through torchvision.models. In this case, how I might override the $TORCH_MODEL_ZOO environment variable? I mean where do i need to do so ?
Thanks!