Skip to content

Commit a4e198b

Browse files
committed
Created using Colaboratory
1 parent caacb6e commit a4e198b

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

Pytorch_saved_model_keys_replace.ipynb

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5122,6 +5122,82 @@
51225122
"metadata": {
51235123
"id": "G4gw5X-SL7ik",
51245124
"colab_type": "code",
5125+
"colab": {
5126+
"base_uri": "https://localhost:8080/",
5127+
"height": 34
5128+
},
5129+
"outputId": "e4bca4de-ec8f-4c52-fa53-1ebc64969542"
5130+
},
5131+
"source": [
5132+
"cd CheXNet/\n"
5133+
],
5134+
"execution_count": 155,
5135+
"outputs": [
5136+
{
5137+
"output_type": "stream",
5138+
"text": [
5139+
"/content/CheXNet\n"
5140+
],
5141+
"name": "stdout"
5142+
}
5143+
]
5144+
},
5145+
{
5146+
"cell_type": "code",
5147+
"metadata": {
5148+
"id": "iAHrnlSnC64F",
5149+
"colab_type": "code",
5150+
"colab": {
5151+
"base_uri": "https://localhost:8080/",
5152+
"height": 476
5153+
},
5154+
"outputId": "40f18426-c430-47d9-e322-497912051819"
5155+
},
5156+
"source": [
5157+
"!python model.py"
5158+
],
5159+
"execution_count": 160,
5160+
"outputs": [
5161+
{
5162+
"output_type": "stream",
5163+
"text": [
5164+
"=> loading checkpoint\n",
5165+
"=> loaded checkpoint\n",
5166+
"Traceback (most recent call last):\n",
5167+
" File \"model.py\", line 156, in <module>\n",
5168+
" main()\n",
5169+
" File \"model.py\", line 97, in main\n",
5170+
" for i, (inp, target) in enumerate(test_loader):\n",
5171+
" File \"/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py\", line 819, in __next__\n",
5172+
" return self._process_data(data)\n",
5173+
" File \"/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py\", line 846, in _process_data\n",
5174+
" data.reraise()\n",
5175+
" File \"/usr/local/lib/python3.6/dist-packages/torch/_utils.py\", line 385, in reraise\n",
5176+
" raise self.exc_type(msg)\n",
5177+
"FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.\n",
5178+
"Original Traceback (most recent call last):\n",
5179+
" File \"/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py\", line 178, in _worker_loop\n",
5180+
" data = fetcher.fetch(index)\n",
5181+
" File \"/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py\", line 44, in fetch\n",
5182+
" data = [self.dataset[idx] for idx in possibly_batched_index]\n",
5183+
" File \"/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py\", line 44, in <listcomp>\n",
5184+
" data = [self.dataset[idx] for idx in possibly_batched_index]\n",
5185+
" File \"/content/CheXNet/read_data.py\", line 47, in __getitem__\n",
5186+
" image = Image.open(image_name).convert('RGB')\n",
5187+
" File \"/usr/local/lib/python3.6/dist-packages/PIL/Image.py\", line 2530, in open\n",
5188+
" fp = builtins.open(filename, \"rb\")\n",
5189+
"FileNotFoundError: [Errno 2] No such file or directory: './ChestX-ray14/images/00011997_000.png'\n",
5190+
"\n"
5191+
],
5192+
"name": "stdout"
5193+
}
5194+
]
5195+
},
5196+
{
5197+
"cell_type": "code",
5198+
"metadata": {
5199+
"id": "1OzL63-4DNXS",
5200+
"colab_type": "code",
51255201
"colab": {}
51265202
},
51275203
"source": [

0 commit comments

Comments
 (0)