{
  "id": 231036,
  "title": "hpacellseg.cellsegmentator cannot be downloaded?",
  "url": "/competitions/hpa-single-cell-image-classification/discussion/231036",
  "author_name": "imori",
  "post_date": "2021-04-06T15:47:50.520000",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi, I found and started this competiton lately.</p>\n<p>I found nice notebook and try hpacellseg.cellsegmentator.<br>\nCode is below</p>\n<pre><code>import hpacellseg.cellsegmentator as cellsegmentator\nfrom hpacellseg.utils import label_cell, label_nuclei\nimport glob\n\nNUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    padding=False,\n    multi_channel_model=True,\n)\n</code></pre>\n<p>But I got below error :(</p>\n<pre><code>/opt/conda/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)\n    647 class HTTPDefaultErrorHandler(BaseHandler):\n    648     def http_error_default(self, req, fp, code, msg, hdrs):\n--&gt; 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)\n    650 \n    651 class HTTPRedirectHandler(BaseHandler):\n\nHTTPError: HTTP Error 403: Forbidden\n</code></pre>\n<p>Doesn't you get same error?, Thaks</p>",
  "messages": [
    {
      "id": 1265826,
      "postDate": "2021-04-07T08:36:36.823Z",
      "content": "<p>We have updated the URLs in the repo! It's working for us on our end, so please let us know if it's not working for you now.</p>\n<p>We're sorry for the inconvenience this caused</p>",
      "rawMarkdown": "We have updated the URLs in the repo! It's working for us on our end, so please let us know if it's not working for you now.\n\nWe're sorry for the inconvenience this caused",
      "votes": 1,
      "replies": [
        {
          "id": 1266082,
          "postDate": "2021-04-07T13:18:46.303Z",
          "content": "<p><a href=\"https://www.kaggle.com/cwinsnes\" target=\"_blank\">@cwinsnes</a> </p>\n<p>Thank you for reply.</p>\n<p>I retried below code and no error occurered. Thanks for quick response!</p>\n<pre><code>NUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    # NOTE: setting padding=True seems to solve most issues that have been encountered\n    #       during our single cell Kaggle challenge.\n    padding=False,\n    multi_channel_model=True,\n)\n</code></pre>",
          "rawMarkdown": "@cwinsnes \n\nThank you for reply.\n\nI retried below code and no error occurered. Thanks for quick response!\n\n```python\nNUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    # NOTE: setting padding=True seems to solve most issues that have been encountered\n    #       during our single cell Kaggle challenge.\n    padding=False,\n    multi_channel_model=True,\n)\n```"
        }
      ]
    },
    {
      "id": 1265369,
      "postDate": "2021-04-06T20:38:33.933Z",
      "content": "<p><a href=\"https://www.kaggle.com/yoshito\" target=\"_blank\">@yoshito</a>  Try using the model weights from here for now: <a href=\"https://www.kaggle.com/rdizzl3/hpacellsegmentatormodelweights\" target=\"_blank\">https://www.kaggle.com/rdizzl3/hpacellsegmentatormodelweights</a></p>\n<p>There seems to be an issue with the original URLs. It has been reported <a href=\"https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/230090\" target=\"_blank\">here </a> and the competition&nbsp;hosts have said that they will  update&nbsp;the links as soon as possible.</p>",
      "rawMarkdown": "@yoshito  Try using the model weights from here for now: https://www.kaggle.com/rdizzl3/hpacellsegmentatormodelweights\n\nThere seems to be an issue with the original URLs. It has been reported [here ](https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/230090) and the competition hosts have said that they will  update the links as soon as possible.",
      "votes": 2,
      "replies": [
        {
          "id": 1265446,
          "postDate": "2021-04-06T22:23:14.167Z",
          "content": "<p>Thank you </p>",
          "rawMarkdown": "Thank you ",
          "votes": 1
        },
        {
          "id": 1268430,
          "postDate": "2021-04-09T11:38:41.840Z",
          "content": "<p>Thank you for the info</p>",
          "rawMarkdown": "Thank you for the info"
        }
      ]
    },
    {
      "id": 1265073,
      "postDate": "2021-04-06T15:47:50.520Z",
      "content": "<p>Hi, I found and started this competiton lately.</p>\n<p>I found nice notebook and try hpacellseg.cellsegmentator.<br>\nCode is below</p>\n<pre><code>import hpacellseg.cellsegmentator as cellsegmentator\nfrom hpacellseg.utils import label_cell, label_nuclei\nimport glob\n\nNUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    padding=False,\n    multi_channel_model=True,\n)\n</code></pre>\n<p>But I got below error :(</p>\n<pre><code>/opt/conda/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)\n    647 class HTTPDefaultErrorHandler(BaseHandler):\n    648     def http_error_default(self, req, fp, code, msg, hdrs):\n--&gt; 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)\n    650 \n    651 class HTTPRedirectHandler(BaseHandler):\n\nHTTPError: HTTP Error 403: Forbidden\n</code></pre>\n<p>Doesn't you get same error?, Thaks</p>",
      "rawMarkdown": "Hi, I found and started this competiton lately.\n\nI found nice notebook and try hpacellseg.cellsegmentator.\nCode is below\n\n```python\nimport hpacellseg.cellsegmentator as cellsegmentator\nfrom hpacellseg.utils import label_cell, label_nuclei\nimport glob\n\nNUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    padding=False,\n    multi_channel_model=True,\n)\n```\n\nBut I got below error :(\n\n```python\n/opt/conda/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)\n    647 class HTTPDefaultErrorHandler(BaseHandler):\n    648     def http_error_default(self, req, fp, code, msg, hdrs):\n--> 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)\n    650 \n    651 class HTTPRedirectHandler(BaseHandler):\n\nHTTPError: HTTP Error 403: Forbidden\n```\n\nDoesn't you get same error?, Thaks",
      "votes": 2
    }
  ],
  "comments": [
    {
      "id": 1265826,
      "author_name": "Casper Winsnes",
      "author_url": "",
      "post_date": "2021-04-07T08:36:36.823000",
      "content": "<p>We have updated the URLs in the repo! It's working for us on our end, so please let us know if it's not working for you now.</p>\n<p>We're sorry for the inconvenience this caused</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1266082,
          "author_name": "imori",
          "author_url": "",
          "post_date": "2021-04-07T13:18:46.303000",
          "content": "<p><a href=\"https://www.kaggle.com/cwinsnes\" target=\"_blank\">@cwinsnes</a> </p>\n<p>Thank you for reply.</p>\n<p>I retried below code and no error occurered. Thanks for quick response!</p>\n<pre><code>NUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    # NOTE: setting padding=True seems to solve most issues that have been encountered\n    #       during our single cell Kaggle challenge.\n    padding=False,\n    multi_channel_model=True,\n)\n</code></pre>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1265369,
      "author_name": "Rai",
      "author_url": "",
      "post_date": "2021-04-06T20:38:33.933000",
      "content": "<p><a href=\"https://www.kaggle.com/yoshito\" target=\"_blank\">@yoshito</a>  Try using the model weights from here for now: <a href=\"https://www.kaggle.com/rdizzl3/hpacellsegmentatormodelweights\" target=\"_blank\">https://www.kaggle.com/rdizzl3/hpacellsegmentatormodelweights</a></p>\n<p>There seems to be an issue with the original URLs. It has been reported <a href=\"https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/230090\" target=\"_blank\">here </a> and the competition&nbsp;hosts have said that they will  update&nbsp;the links as soon as possible.</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1265446,
          "author_name": "imori",
          "author_url": "",
          "post_date": "2021-04-06T22:23:14.167000",
          "content": "<p>Thank you </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1268430,
          "author_name": "AnindyaGupta",
          "author_url": "",
          "post_date": "2021-04-09T11:38:41.840000",
          "content": "<p>Thank you for the info</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1265826": "We have updated the URLs in the repo! It's working for us on our end, so please let us know if it's not working for you now.\n\nWe're sorry for the inconvenience this caused",
    "1265369": "@yoshito  Try using the model weights from here for now: https://www.kaggle.com/rdizzl3/hpacellsegmentatormodelweights\n\nThere seems to be an issue with the original URLs. It has been reported [here ](https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/230090) and the competition hosts have said that they will  update the links as soon as possible.",
    "1265073": "Hi, I found and started this competiton lately.\n\nI found nice notebook and try hpacellseg.cellsegmentator.\nCode is below\n\n```python\nimport hpacellseg.cellsegmentator as cellsegmentator\nfrom hpacellseg.utils import label_cell, label_nuclei\nimport glob\n\nNUC_MODEL = \"./nuclei-model.pth\"\nCELL_MODEL = \"./cell-model.pth\"\nsegmentator = cellsegmentator.CellSegmentator(\n    NUC_MODEL,\n    CELL_MODEL,\n    scale_factor=0.25,\n    device=\"cuda\",\n    padding=False,\n    multi_channel_model=True,\n)\n```\n\nBut I got below error :(\n\n```python\n/opt/conda/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)\n    647 class HTTPDefaultErrorHandler(BaseHandler):\n    648     def http_error_default(self, req, fp, code, msg, hdrs):\n--> 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)\n    650 \n    651 class HTTPRedirectHandler(BaseHandler):\n\nHTTPError: HTTP Error 403: Forbidden\n```\n\nDoesn't you get same error?, Thaks"
  }
}