{
  "id": 465273,
  "title": "Trouble with Keras_CV",
  "url": "/competitions/blood-vessel-segmentation/discussion/465273",
  "author_name": "",
  "post_date": "2024-01-03T15:08:52.012917400Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi Everyone,</p>\n<p>I just got started on this competition and in my last competition, I learned about keras_cv. It seemed like a really nice package for getting up and running with things, but I'm having a bit of trouble configuring my environment. In the last competition, the Kaggle notebook environment had keras_cv.<strong>version</strong> = '0.6.1' However, in the notebook I just created, it has keras_cv.<strong>version</strong> = '0.8.0.dev0'</p>\n<p>When I try to run the following code in the current notebook environment:</p>\n<pre><code>model = keras_cv.models.DeepLabV3Plus.from_preset(,\ninput_shape=[, , ],\nnum_classes=)\n</code></pre>\n<p>I get the following error:<br>\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook…<br>\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook…</p>\n<p>TypeError: Error when deserializing class 'InputLayer' using config={'batch_shape': [None, None, None, 304], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer_17'}.</p>\n<p>Exception encountered: Unrecognized keyword arguments: ['batch_shape']</p>\n<p>I think it's because there's something wrong with the current version and I'd like to roll back to 0.6.1…I tried the following:</p>\n<p>!pip install --force-reinstall keras_cv==0.6.1</p>\n<p>but I get an error that it can't resolve the package dependencies.</p>\n<p>Any help would be greatly appreciated.</p>",
  "messages": [
    {
      "id": "2585441",
      "postDate": "01/03/2024 15:08:52",
      "content": "<p>Hi Everyone,</p>\n<p>I just got started on this competition and in my last competition, I learned about keras_cv. It seemed like a really nice package for getting up and running with things, but I'm having a bit of trouble configuring my environment. In the last competition, the Kaggle notebook environment had keras_cv.<strong>version</strong> = '0.6.1' However, in the notebook I just created, it has keras_cv.<strong>version</strong> = '0.8.0.dev0'</p>\n<p>When I try to run the following code in the current notebook environment:</p>\n<pre><code>model = keras_cv.models.DeepLabV3Plus.from_preset(,\ninput_shape=[, , ],\nnum_classes=)\n</code></pre>\n<p>I get the following error:<br>\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook…<br>\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook…</p>\n<p>TypeError: Error when deserializing class 'InputLayer' using config={'batch_shape': [None, None, None, 304], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer_17'}.</p>\n<p>Exception encountered: Unrecognized keyword arguments: ['batch_shape']</p>\n<p>I think it's because there's something wrong with the current version and I'd like to roll back to 0.6.1…I tried the following:</p>\n<p>!pip install --force-reinstall keras_cv==0.6.1</p>\n<p>but I get an error that it can't resolve the package dependencies.</p>\n<p>Any help would be greatly appreciated.</p>",
      "rawMarkdown": "Hi Everyone,\n\nI just got started on this competition and in my last competition, I learned about keras_cv. It seemed like a really nice package for getting up and running with things, but I'm having a bit of trouble configuring my environment. In the last competition, the Kaggle notebook environment had keras_cv.__version__ = '0.6.1' However, in the notebook I just created, it has keras_cv.__version__ = '0.8.0.dev0'\n\nWhen I try to run the following code in the current notebook environment:\n\n```python\nmodel = keras_cv.models.DeepLabV3Plus.from_preset(\"deeplab_v3_plus_resnet50_pascalvoc\",\ninput_shape=[96, 96, 3],\nnum_classes=3)\n\n```\nI get the following error:\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook...\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook...\n\nTypeError: Error when deserializing class 'InputLayer' using config={'batch_shape': [None, None, None, 304], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer_17'}.\n\nException encountered: Unrecognized keyword arguments: ['batch_shape']\n\nI think it's because there's something wrong with the current version and I'd like to roll back to 0.6.1...I tried the following:\n\n!pip install --force-reinstall keras_cv==0.6.1\n\nbut I get an error that it can't resolve the package dependencies.\n\nAny help would be greatly appreciated.",
      "votes": null
    },
    {
      "id": "2747163",
      "postDate": "04/11/2024 17:52:01",
      "content": "<p>Did it get solved then?</p>",
      "rawMarkdown": "Did it get solved then?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2747163,
      "author_name": "rishupandey058",
      "author_url": "",
      "post_date": "04/11/2024 17:52:01",
      "content": "<p>Did it get solved then?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2585441": "Hi Everyone,\n\nI just got started on this competition and in my last competition, I learned about keras_cv. It seemed like a really nice package for getting up and running with things, but I'm having a bit of trouble configuring my environment. In the last competition, the Kaggle notebook environment had keras_cv.__version__ = '0.6.1' However, in the notebook I just created, it has keras_cv.__version__ = '0.8.0.dev0'\n\nWhen I try to run the following code in the current notebook environment:\n\n```python\nmodel = keras_cv.models.DeepLabV3Plus.from_preset(\"deeplab_v3_plus_resnet50_pascalvoc\",\ninput_shape=[96, 96, 3],\nnum_classes=3)\n\n```\nI get the following error:\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook...\nAttaching 'config.json' from model 'keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/1' to your Kaggle notebook...\n\nTypeError: Error when deserializing class 'InputLayer' using config={'batch_shape': [None, None, None, 304], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer_17'}.\n\nException encountered: Unrecognized keyword arguments: ['batch_shape']\n\nI think it's because there's something wrong with the current version and I'd like to roll back to 0.6.1...I tried the following:\n\n!pip install --force-reinstall keras_cv==0.6.1\n\nbut I get an error that it can't resolve the package dependencies.\n\nAny help would be greatly appreciated.",
    "2747163": "Did it get solved then?"
  },
  "source": "meta"
}