{
  "id": 130444,
  "title": "Error on commit",
  "url": "/competitions/deepfake-detection-challenge/discussion/130444",
  "author_name": "",
  "post_date": "2020-02-14T06:18:18.426931500Z",
  "votes": 1,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi, this is the <a href=\"https://www.kaggle.com/saanikagupta/deepfake1\">code</a> I tried submitting for the DFDC. I don't understand why but on committing it is throwing error. Is it because the internet was on? I can't print the entire trackeback, pls check the error on its first commit. Thank you so much!</p>",
  "messages": [
    {
      "id": "745738",
      "postDate": "02/14/2020 06:18:18",
      "content": "<p>Hi, this is the <a href=\"https://www.kaggle.com/saanikagupta/deepfake1\">code</a> I tried submitting for the DFDC. I don't understand why but on committing it is throwing error. Is it because the internet was on? I can't print the entire trackeback, pls check the error on its first commit. Thank you so much!</p>",
      "rawMarkdown": "Hi, this is the [code](https://www.kaggle.com/saanikagupta/deepfake1) I tried submitting for the DFDC. I don't understand why but on committing it is throwing error. Is it because the internet was on? I can't print the entire trackeback, pls check the error on its first commit. Thank you so much!",
      "votes": null
    },
    {
      "id": "745872",
      "postDate": "02/14/2020 09:58:12",
      "content": "<p>Hi, I believe I fix the problem have a look at the kernel <a href=\"https://www.kaggle.com/imoisharma/deep-fake-detection-challenge?scriptVersionId=28639716\">https://www.kaggle.com/imoisharma/deep-fake-detection-challenge?scriptVersionId=28639716</a> . You are getting this error \"AttributeError: 'numpy.ndarray' object has no attribute 'load_img' ” because you are using one name at places. The first one when you creating the image and second when you calling from keras.preprocessing.image due to which terminal is doing \"overshadowing\".\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F9f42191a44a9462b8d9a86f3561b6244%2Fimage1.png?generation=1581674281213389&amp;alt=media\" alt=\"\"></p>\n\n<p>See the picture, still, have any doubt let me know. </p>\n\n<p>Cheers, \nMoi<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F894c00d6d3fc1cb5f02df65d541f91b9%2Fimage2.png?generation=1581674286259148&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "Hi, I believe I fix the problem have a look at the kernel https://www.kaggle.com/imoisharma/deep-fake-detection-challenge?scriptVersionId=28639716 . You are getting this error \"AttributeError: 'numpy.ndarray' object has no attribute 'load_img' ” because you are using one name at places. The first one when you creating the image and second when you calling from keras.preprocessing.image due to which terminal is doing \"overshadowing\".\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F9f42191a44a9462b8d9a86f3561b6244%2Fimage1.png?generation=1581674281213389&amp;alt=media)\n\nSee the picture, still, have any doubt let me know. \n\nCheers, \nMoi![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F894c00d6d3fc1cb5f02df65d541f91b9%2Fimage2.png?generation=1581674286259148&amp;alt=media)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 745872,
      "author_name": "imoisharma",
      "author_url": "",
      "post_date": "02/14/2020 09:58:12",
      "content": "<p>Hi, I believe I fix the problem have a look at the kernel <a href=\"https://www.kaggle.com/imoisharma/deep-fake-detection-challenge?scriptVersionId=28639716\">https://www.kaggle.com/imoisharma/deep-fake-detection-challenge?scriptVersionId=28639716</a> . You are getting this error \"AttributeError: 'numpy.ndarray' object has no attribute 'load_img' ” because you are using one name at places. The first one when you creating the image and second when you calling from keras.preprocessing.image due to which terminal is doing \"overshadowing\".\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F9f42191a44a9462b8d9a86f3561b6244%2Fimage1.png?generation=1581674281213389&amp;alt=media\" alt=\"\"></p>\n\n<p>See the picture, still, have any doubt let me know. </p>\n\n<p>Cheers, \nMoi<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F894c00d6d3fc1cb5f02df65d541f91b9%2Fimage2.png?generation=1581674286259148&amp;alt=media\" alt=\"\"></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "745738": "Hi, this is the [code](https://www.kaggle.com/saanikagupta/deepfake1) I tried submitting for the DFDC. I don't understand why but on committing it is throwing error. Is it because the internet was on? I can't print the entire trackeback, pls check the error on its first commit. Thank you so much!",
    "745872": "Hi, I believe I fix the problem have a look at the kernel https://www.kaggle.com/imoisharma/deep-fake-detection-challenge?scriptVersionId=28639716 . You are getting this error \"AttributeError: 'numpy.ndarray' object has no attribute 'load_img' ” because you are using one name at places. The first one when you creating the image and second when you calling from keras.preprocessing.image due to which terminal is doing \"overshadowing\".\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F9f42191a44a9462b8d9a86f3561b6244%2Fimage1.png?generation=1581674281213389&amp;alt=media)\n\nSee the picture, still, have any doubt let me know. \n\nCheers, \nMoi![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3458403%2F894c00d6d3fc1cb5f02df65d541f91b9%2Fimage2.png?generation=1581674286259148&amp;alt=media)"
  },
  "source": "meta"
}