{
  "id": 129939,
  "title": "GAIERROR",
  "url": "/competitions/bengaliai-cv19/discussion/129939",
  "author_name": "Son of Anton v3.0",
  "post_date": "2020-02-11T11:11:00.248000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I get this error while creating the cnn_learner object in my FastAI inference notebook. As it is an inference note, I loaded the pre-trained weights during runtime in order to avoid switching the internet on. But I am still getting a gaierror. This method for me and several others in a different contest. Any help would be appreciated.</p>\n\n<p>`!mkdir -p '/tmp/.cache/torch/checkpoints'\n!cp '../input/fastai-pretrained-models/densenet121-a639ec97.pth' '/tmp/.cache/torch/checkpoints/densenet121-a639ec97.pth'</p>\n\n<p>learn_cd = cnn_learner(data_cd, models.densenet121, metrics=[error_rate, accuracy],model_dir = Path('../kaggle/working'),path=Path('.'),).to_fp16()`</p>",
  "messages": [
    {
      "id": 742539,
      "postDate": "2020-02-11T11:11:00.250Z",
      "content": "<p>I get this error while creating the cnn_learner object in my FastAI inference notebook. As it is an inference note, I loaded the pre-trained weights during runtime in order to avoid switching the internet on. But I am still getting a gaierror. This method for me and several others in a different contest. Any help would be appreciated.</p>\n\n<p>`!mkdir -p '/tmp/.cache/torch/checkpoints'\n!cp '../input/fastai-pretrained-models/densenet121-a639ec97.pth' '/tmp/.cache/torch/checkpoints/densenet121-a639ec97.pth'</p>\n\n<p>learn_cd = cnn_learner(data_cd, models.densenet121, metrics=[error_rate, accuracy],model_dir = Path('../kaggle/working'),path=Path('.'),).to_fp16()`</p>",
      "rawMarkdown": "I get this error while creating the cnn_learner object in my FastAI inference notebook. As it is an inference note, I loaded the pre-trained weights during runtime in order to avoid switching the internet on. But I am still getting a gaierror. This method for me and several others in a different contest. Any help would be appreciated.\n\n`!mkdir -p '/tmp/.cache/torch/checkpoints'\n!cp '../input/fastai-pretrained-models/densenet121-a639ec97.pth' '/tmp/.cache/torch/checkpoints/densenet121-a639ec97.pth'\n\nlearn_cd = cnn_learner(data_cd, models.densenet121, metrics=[error_rate, accuracy],model_dir = Path('../kaggle/working'),path=Path('.'),).to_fp16()`"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "742539": "I get this error while creating the cnn_learner object in my FastAI inference notebook. As it is an inference note, I loaded the pre-trained weights during runtime in order to avoid switching the internet on. But I am still getting a gaierror. This method for me and several others in a different contest. Any help would be appreciated.\n\n`!mkdir -p '/tmp/.cache/torch/checkpoints'\n!cp '../input/fastai-pretrained-models/densenet121-a639ec97.pth' '/tmp/.cache/torch/checkpoints/densenet121-a639ec97.pth'\n\nlearn_cd = cnn_learner(data_cd, models.densenet121, metrics=[error_rate, accuracy],model_dir = Path('../kaggle/working'),path=Path('.'),).to_fp16()`"
  }
}