{
  "id": 198647,
  "title": "submission failed",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/198647",
  "author_name": "",
  "post_date": "2020-11-22T08:28:09.680784500Z",
  "votes": 9,
  "comment_count": 17,
  "views": 0,
  "content": "<p>why it is showing that submission.csv not found but that is showing in my output</p>",
  "messages": [
    {
      "id": "1086968",
      "postDate": "11/22/2020 08:28:09",
      "content": "<p>why it is showing that submission.csv not found but that is showing in my output</p>",
      "rawMarkdown": "why it is showing that submission.csv not found but that is showing in my output",
      "votes": null
    },
    {
      "id": "1087164",
      "postDate": "11/22/2020 12:23:43",
      "content": "<p>getting the same issue, please let me know if you are able to resolve it. Thanks!</p>",
      "rawMarkdown": "getting the same issue, please let me know if you are able to resolve it. Thanks!",
      "votes": null
    },
    {
      "id": "1087723",
      "postDate": "11/23/2020 03:21:41",
      "content": "<p><a href=\"https://www.kaggle.com/saikrishnapunna\" target=\"_blank\">@saikrishnapunna</a> You  may need to commit the notebook. If it's still not resolving, let me know.</p>",
      "rawMarkdown": "saikrishnapunna You  may need to commit the notebook. If it's still not resolving, let me know.",
      "votes": null
    },
    {
      "id": "1087757",
      "postDate": "11/23/2020 04:10:07",
      "content": "<p>i have tried save and commit but problem is there.<br>\ni am attaching screen shot of output containing submission.csv file<br>\nany other solution you can suggest<br>\nthank you</p>",
      "rawMarkdown": "i have tried save and commit but problem is there.\ni am attaching screen shot of output containing submission.csv file\nany other solution you can suggest\nthank you",
      "votes": null
    },
    {
      "id": "1087795",
      "postDate": "11/23/2020 04:47:27",
      "content": "<p><a href=\"https://www.kaggle.com/mtalhaarshad\" target=\"_blank\">@mtalhaarshad</a> Please check if your internet is ON for the notebook in the settings console. If it's ON, it will not work as notebook competitions don't allow that. </p>",
      "rawMarkdown": "mtalhaarshad Please check if your internet is ON for the notebook in the settings console. If it's ON, it will not work as notebook competitions don't allow that.",
      "votes": null
    },
    {
      "id": "1087804",
      "postDate": "11/23/2020 04:59:54",
      "content": "<p>internet is off checked that</p>",
      "rawMarkdown": "internet is off checked that",
      "votes": null
    },
    {
      "id": "1087875",
      "postDate": "11/23/2020 06:09:52",
      "content": "<p>import tensorflow as tf<br>\nimport numpy as np<br>\nimport os<br>\nimport pandas as pd<br>\nfrom keras.engine.saving import save_model                             <br>\nfrom keras.preprocessing import image<br>\nmodel=tf.keras.models.load_model('../input/training-den169/leaf1.h5')<br>\nimport glob<br>\ntest = os.listdir('/kaggle/input/cassava-leaf-disease-classification/test_images/')<br>\nfor img in glob.glob(\"../input/cassava-leaf-disease-classification/test_images/*.jpg\"): <br>\n        img_predicitions=image.load_img(img,target_size=(224,224,3))<br>\n        img_predicition=image.img_to_array(img_predicitions)               <br>\n        img_predicition=np.expand_dims(img_predicition,axis=0)</p>\n<pre><code>    result=model.predict_classes(img_predicition)\n\n    print(img, result)\n    submission = pd.DataFrame({'image_id': test, 'label': result})\n    submission.to_csv('submission.csv', index=False )\n    print(submission)\n</code></pre>",
      "rawMarkdown": "import tensorflow as tf\nimport numpy as np\nimport os\nimport pandas as pd\nfrom keras.engine.saving import save_model                             \nfrom keras.preprocessing import image\nmodel=tf.keras.models.load_model('../input/training-den169/leaf1.h5')\nimport glob\ntest = os.listdir('/kaggle/input/cassava-leaf-disease-classification/test_images/')\nfor img in glob.glob(\"../input/cassava-leaf-disease-classification/test_images/*.jpg\"): \n        img_predicitions=image.load_img(img,target_size=(224,224,3))\n        img_predicition=image.img_to_array(img_predicitions)               \n        img_predicition=np.expand_dims(img_predicition,axis=0)\n\n        result=model.predict_classes(img_predicition)\n\n        print(img, result)\n        submission = pd.DataFrame({'image_id': test, 'label': result})\n        submission.to_csv('submission.csv', index=False )\n        print(submission)",
      "votes": null
    },
    {
      "id": "1087879",
      "postDate": "11/23/2020 06:11:40",
      "content": "<p>kindly have a look! this is total code i am running on notebook</p>",
      "rawMarkdown": "kindly have a look! this is total code i am running on notebook",
      "votes": null
    },
    {
      "id": "1088024",
      "postDate": "11/23/2020 08:50:36",
      "content": "<p>This is your editor though. When you commit your notebook successfully it should generate the submission file.<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2383059%2F95748719a027f9b0fd49b2085a5ba9d9%2F(347).png?generation=1606121402921879&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "This is your editor though. When you commit your notebook successfully it should generate the submission file.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2383059%2F95748719a027f9b0fd49b2085a5ba9d9%2F(347).png?generation=1606121402921879&alt=media)",
      "votes": null
    },
    {
      "id": "1109278",
      "postDate": "12/11/2020 13:58:04",
      "content": "<p>I have the same problem. I create a new folder and move the test images into it to make the predictions. I do this because I want to use \"flow data from directory\". The notebook runs so far without errors, but the submission does not work. Supposedly \"submission.csv\" is not found.</p>",
      "rawMarkdown": "I have the same problem. I create a new folder and move the test images into it to make the predictions. I do this because I want to use \"flow data from directory\". The notebook runs so far without errors, but the submission does not work. Supposedly \"submission.csv\" is not found.",
      "votes": null
    },
    {
      "id": "1110215",
      "postDate": "12/12/2020 14:24:33",
      "content": "<p>is the issue resolved or any help needed ? 😊</p>",
      "rawMarkdown": "is the issue resolved or any help needed ? 😊",
      "votes": null
    },
    {
      "id": "1110363",
      "postDate": "12/12/2020 17:02:58",
      "content": "<p>It is still there 😊</p>",
      "rawMarkdown": "It is still there 😊",
      "votes": null
    },
    {
      "id": "1110379",
      "postDate": "12/12/2020 17:22:26",
      "content": "<p>In my case problem was that submission. Csv was not containing all the tested image labels. Try the thing that put 5 images in temp test folder and make submission.csv file and open it to see if it is made completely or not. </p>",
      "rawMarkdown": "In my case problem was that submission. Csv was not containing all the tested image labels. Try the thing that put 5 images in temp test folder and make submission.csv file and open it to see if it is made completely or not.",
      "votes": null
    },
    {
      "id": "1110790",
      "postDate": "12/13/2020 04:36:40",
      "content": "<p>my advice is to see how other kagglers are able to submit like u can see way they are generating the submission.csv from the notebooks that are kept public </p>",
      "rawMarkdown": "my advice is to see how other kagglers are able to submit like u can see way they are generating the submission.csv from the notebooks that are kept public",
      "votes": null
    },
    {
      "id": "1111282",
      "postDate": "12/13/2020 15:49:49",
      "content": "<p>Maybe it took more than 9 hrs to run.</p>",
      "rawMarkdown": "Maybe it took more than 9 hrs to run.",
      "votes": null
    },
    {
      "id": "1163871",
      "postDate": "01/22/2021 02:21:07",
      "content": "<p>Did anyone figure out the issue. I can see the Submission.csv in /kaggle/working folder but it shows as no output files found<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2873111%2Fc80c92d3e3a2fd33aa634062e68789c3%2Fkaggle.jpg?generation=1611282062832476&amp;alt=media\" alt=\"\"> </p>",
      "rawMarkdown": "Did anyone figure out the issue. I can see the Submission.csv in /kaggle/working folder but it shows as no output files found\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2873111%2Fc80c92d3e3a2fd33aa634062e68789c3%2Fkaggle.jpg?generation=1611282062832476&alt=media)",
      "votes": null
    },
    {
      "id": "1163934",
      "postDate": "01/22/2021 04:17:26",
      "content": "<p>You have to save the current version of your notebook. There will be \"save\" button on top right.</p>",
      "rawMarkdown": "You have to save the current version of your notebook. There will be \"save\" button on top right.",
      "votes": null
    },
    {
      "id": "1164916",
      "postDate": "01/22/2021 16:04:18",
      "content": "<p>Yes.  I have, that how the version number is shown in the screenshot above. I also set it to public, and also set the Internet to off. Although, there were issues when loading my model which is why during submission the csv was not getting created in the output folder. <br>\nThanks for taking the time to reply! <br>\nIssue Resolved. </p>",
      "rawMarkdown": "Yes.  I have, that how the version number is shown in the screenshot above. I also set it to public, and also set the Internet to off. Although, there were issues when loading my model which is why during submission the csv was not getting created in the output folder. \nThanks for taking the time to reply! \nIssue Resolved.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1087164,
      "author_name": "saikrishnapunna",
      "author_url": "",
      "post_date": "11/22/2020 12:23:43",
      "content": "<p>getting the same issue, please let me know if you are able to resolve it. Thanks!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1087723,
      "author_name": "kevinscaria",
      "author_url": "",
      "post_date": "11/23/2020 03:21:41",
      "content": "<p><a href=\"https://www.kaggle.com/saikrishnapunna\" target=\"_blank\">@saikrishnapunna</a> You  may need to commit the notebook. If it's still not resolving, let me know.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1087757,
          "author_name": "mtalhaarshad",
          "author_url": "",
          "post_date": "11/23/2020 04:10:07",
          "content": "<p>i have tried save and commit but problem is there.<br>\ni am attaching screen shot of output containing submission.csv file<br>\nany other solution you can suggest<br>\nthank you</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1088024,
          "author_name": "socratis",
          "author_url": "",
          "post_date": "11/23/2020 08:50:36",
          "content": "<p>This is your editor though. When you commit your notebook successfully it should generate the submission file.<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2383059%2F95748719a027f9b0fd49b2085a5ba9d9%2F(347).png?generation=1606121402921879&amp;alt=media\" alt=\"\"></p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1087795,
      "author_name": "kevinscaria",
      "author_url": "",
      "post_date": "11/23/2020 04:47:27",
      "content": "<p><a href=\"https://www.kaggle.com/mtalhaarshad\" target=\"_blank\">@mtalhaarshad</a> Please check if your internet is ON for the notebook in the settings console. If it's ON, it will not work as notebook competitions don't allow that. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1087804,
          "author_name": "mtalhaarshad",
          "author_url": "",
          "post_date": "11/23/2020 04:59:54",
          "content": "<p>internet is off checked that</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1087875,
          "author_name": "mtalhaarshad",
          "author_url": "",
          "post_date": "11/23/2020 06:09:52",
          "content": "<p>import tensorflow as tf<br>\nimport numpy as np<br>\nimport os<br>\nimport pandas as pd<br>\nfrom keras.engine.saving import save_model                             <br>\nfrom keras.preprocessing import image<br>\nmodel=tf.keras.models.load_model('../input/training-den169/leaf1.h5')<br>\nimport glob<br>\ntest = os.listdir('/kaggle/input/cassava-leaf-disease-classification/test_images/')<br>\nfor img in glob.glob(\"../input/cassava-leaf-disease-classification/test_images/*.jpg\"): <br>\n        img_predicitions=image.load_img(img,target_size=(224,224,3))<br>\n        img_predicition=image.img_to_array(img_predicitions)               <br>\n        img_predicition=np.expand_dims(img_predicition,axis=0)</p>\n<pre><code>    result=model.predict_classes(img_predicition)\n\n    print(img, result)\n    submission = pd.DataFrame({'image_id': test, 'label': result})\n    submission.to_csv('submission.csv', index=False )\n    print(submission)\n</code></pre>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1087879,
          "author_name": "mtalhaarshad",
          "author_url": "",
          "post_date": "11/23/2020 06:11:40",
          "content": "<p>kindly have a look! this is total code i am running on notebook</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1109278,
      "author_name": "frankmollard",
      "author_url": "",
      "post_date": "12/11/2020 13:58:04",
      "content": "<p>I have the same problem. I create a new folder and move the test images into it to make the predictions. I do this because I want to use \"flow data from directory\". The notebook runs so far without errors, but the submission does not work. Supposedly \"submission.csv\" is not found.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1110379,
          "author_name": "mtalhaarshad",
          "author_url": "",
          "post_date": "12/12/2020 17:22:26",
          "content": "<p>In my case problem was that submission. Csv was not containing all the tested image labels. Try the thing that put 5 images in temp test folder and make submission.csv file and open it to see if it is made completely or not. </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1110215,
      "author_name": "adityakrishnavamsy",
      "author_url": "",
      "post_date": "12/12/2020 14:24:33",
      "content": "<p>is the issue resolved or any help needed ? 😊</p>",
      "votes": null,
      "replies": [
        {
          "id": 1110363,
          "author_name": "frankmollard",
          "author_url": "",
          "post_date": "12/12/2020 17:02:58",
          "content": "<p>It is still there 😊</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1110790,
          "author_name": "adityakrishnavamsy",
          "author_url": "",
          "post_date": "12/13/2020 04:36:40",
          "content": "<p>my advice is to see how other kagglers are able to submit like u can see way they are generating the submission.csv from the notebooks that are kept public </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1111282,
      "author_name": "shanmukh05",
      "author_url": "",
      "post_date": "12/13/2020 15:49:49",
      "content": "<p>Maybe it took more than 9 hrs to run.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1163871,
      "author_name": "clatonhendricks",
      "author_url": "",
      "post_date": "01/22/2021 02:21:07",
      "content": "<p>Did anyone figure out the issue. I can see the Submission.csv in /kaggle/working folder but it shows as no output files found<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2873111%2Fc80c92d3e3a2fd33aa634062e68789c3%2Fkaggle.jpg?generation=1611282062832476&amp;alt=media\" alt=\"\"> </p>",
      "votes": null,
      "replies": [
        {
          "id": 1163934,
          "author_name": "shanmukh05",
          "author_url": "",
          "post_date": "01/22/2021 04:17:26",
          "content": "<p>You have to save the current version of your notebook. There will be \"save\" button on top right.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1164916,
          "author_name": "clatonhendricks",
          "author_url": "",
          "post_date": "01/22/2021 16:04:18",
          "content": "<p>Yes.  I have, that how the version number is shown in the screenshot above. I also set it to public, and also set the Internet to off. Although, there were issues when loading my model which is why during submission the csv was not getting created in the output folder. <br>\nThanks for taking the time to reply! <br>\nIssue Resolved. </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1086968": "why it is showing that submission.csv not found but that is showing in my output",
    "1087164": "getting the same issue, please let me know if you are able to resolve it. Thanks!",
    "1087723": "saikrishnapunna You  may need to commit the notebook. If it's still not resolving, let me know.",
    "1087757": "i have tried save and commit but problem is there.\ni am attaching screen shot of output containing submission.csv file\nany other solution you can suggest\nthank you",
    "1087795": "mtalhaarshad Please check if your internet is ON for the notebook in the settings console. If it's ON, it will not work as notebook competitions don't allow that.",
    "1087804": "internet is off checked that",
    "1087875": "import tensorflow as tf\nimport numpy as np\nimport os\nimport pandas as pd\nfrom keras.engine.saving import save_model                             \nfrom keras.preprocessing import image\nmodel=tf.keras.models.load_model('../input/training-den169/leaf1.h5')\nimport glob\ntest = os.listdir('/kaggle/input/cassava-leaf-disease-classification/test_images/')\nfor img in glob.glob(\"../input/cassava-leaf-disease-classification/test_images/*.jpg\"): \n        img_predicitions=image.load_img(img,target_size=(224,224,3))\n        img_predicition=image.img_to_array(img_predicitions)               \n        img_predicition=np.expand_dims(img_predicition,axis=0)\n\n        result=model.predict_classes(img_predicition)\n\n        print(img, result)\n        submission = pd.DataFrame({'image_id': test, 'label': result})\n        submission.to_csv('submission.csv', index=False )\n        print(submission)",
    "1087879": "kindly have a look! this is total code i am running on notebook",
    "1088024": "This is your editor though. When you commit your notebook successfully it should generate the submission file.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2383059%2F95748719a027f9b0fd49b2085a5ba9d9%2F(347).png?generation=1606121402921879&alt=media)",
    "1109278": "I have the same problem. I create a new folder and move the test images into it to make the predictions. I do this because I want to use \"flow data from directory\". The notebook runs so far without errors, but the submission does not work. Supposedly \"submission.csv\" is not found.",
    "1110215": "is the issue resolved or any help needed ? 😊",
    "1110363": "It is still there 😊",
    "1110379": "In my case problem was that submission. Csv was not containing all the tested image labels. Try the thing that put 5 images in temp test folder and make submission.csv file and open it to see if it is made completely or not.",
    "1110790": "my advice is to see how other kagglers are able to submit like u can see way they are generating the submission.csv from the notebooks that are kept public",
    "1111282": "Maybe it took more than 9 hrs to run.",
    "1163871": "Did anyone figure out the issue. I can see the Submission.csv in /kaggle/working folder but it shows as no output files found\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2873111%2Fc80c92d3e3a2fd33aa634062e68789c3%2Fkaggle.jpg?generation=1611282062832476&alt=media)",
    "1163934": "You have to save the current version of your notebook. There will be \"save\" button on top right.",
    "1164916": "Yes.  I have, that how the version number is shown in the screenshot above. I also set it to public, and also set the Internet to off. Although, there were issues when loading my model which is why during submission the csv was not getting created in the output folder. \nThanks for taking the time to reply! \nIssue Resolved."
  },
  "source": "meta"
}