{"id":13546228,"url":"https://github.com/mitmul/chainer-pspnet","last_synced_at":"2025-03-22T05:30:55.611Z","repository":{"id":141384918,"uuid":"99774505","full_name":"mitmul/chainer-pspnet","owner":"mitmul","description":"PSPNet in Chainer","archived":false,"fork":false,"pushed_at":"2018-10-09T08:25:40.000Z","size":80,"stargazers_count":74,"open_issues_count":5,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T08:22:03.741Z","etag":null,"topics":["ade20k","chainer","cityscapes","convolutional-neural-networks","deep-learning","imagenet","pascal-voc","pspnet","python","semantic-segmentation"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitmul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-09T06:47:49.000Z","updated_at":"2024-01-12T17:59:06.000Z","dependencies_parsed_at":"2024-01-16T17:47:28.975Z","dependency_job_id":"99ea20e0-620d-4bef-bb02-d2505b530a52","html_url":"https://github.com/mitmul/chainer-pspnet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainer-pspnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainer-pspnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainer-pspnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainer-pspnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitmul","download_url":"https://codeload.github.com/mitmul/chainer-pspnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ade20k","chainer","cityscapes","convolutional-neural-networks","deep-learning","imagenet","pascal-voc","pspnet","python","semantic-segmentation"],"created_at":"2024-08-01T12:00:34.296Z","updated_at":"2025-03-22T05:30:54.207Z","avatar_url":"https://github.com/mitmul.png","language":"Python","funding_links":[],"categories":["Preferred Networks Research"],"sub_categories":["Computer Vision"],"readme":"PSPNet\n======\n\nThis is an unofficial implementation of Pyramid Scene Parsing Network (PSPNet) in [Chainer](https://github.com/chainer/chainer).\n\n![](https://github.com/mitmul/chainer-pspnet/wiki/images/demoVideo.gif)\n\n# Training\n\n## Requirement\n\n- Python 3.4.4+\n    - Chainer 3.0.0b1+\n    - ChainerMN master\n    - CuPy 2.0.0b1+\n    - ChainerCV 0.6.0+\n    - NumPy 1.12.0+\n    - tqdm 4.11.0+\n\n```\npip install chainer --pre\npip install cupy --pre\npip install git+git://github.com/chainer/chainermn\npip install git+git://github.com/chainer/chainercv\npip install tqdm\n````\n\n---\n\n# Inference using converted weights\n\n## Requirement\n\n- Python 3.4.4+\n    - Chainer 3.0.0b1+\n    - ChainerCV 0.6.0+\n    - Matplotlib 2.0.0+\n    - CuPy 2.0.0b1+\n    - tqdm 4.11.0+\n\n## 1. Run demo.py\n\n### Cityscapes\n\n```\n$ python demo.py -g 0 -m cityscapes -f aachen_000000_000019_leftImg8bit.png\n```\n\n### Pascal VOC2012\n\n```\n$ python demo.py -g 0 -m voc2012 -f 2008_000005.jpg\n```\n\n### ADE20K\n\n```\n$ python demo.py -g 0 -m ade20k -f ADE_val_00000001.jpg\n```\n\n### FAQ\n\nIf you get `RuntimeError: Invalid DISPLAY variable`, how about specifying the matplotlib's backend by an environment variable?\n\n```\n$ MPLBACKEND=Agg python demo.py -g 0 -m cityscapes -f aachen_000000_000019_leftImg8bit.png\n```\n\n---\n\n# Convert weights by yourself\n\n**Caffe is NOT needed** to convert `.caffemodel` to Chainer model. Use `caffe_pb2.py`.\n\n## Requirement\n\n- Python 3.4.4+\n    - protobuf 3.2.0+\n    - Chainer 3.0.0b1+\n    - NumPy 1.12.0+\n\n## 1. Download the original weights\n\nPlease download the weights below from the author's repository:\n\n- pspnet50\\_ADE20K.caffemodel: [GoogleDrive](https://drive.google.com/open?id=0BzaU285cX7TCN1R3QnUwQ0hoMTA)\n- pspnet101\\_VOC2012.caffemodel: [GoogleDrive](https://drive.google.com/open?id=0BzaU285cX7TCNVhETE5vVUdMYk0)\n- pspnet101\\_cityscapes.caffemodel: [GoogleDrive](https://drive.google.com/open?id=0BzaU285cX7TCT1M3TmNfNjlUeEU)\n\n**and then put them into `weights` directory.**\n\n## 2. Convert weights\n\n```\n$ python convert.py\n```\n\n---\n\n# Reference\n\n- The original implementation by authors is: [hszhao/PSPNet](https://github.com/hszhao/PSPNet)\n- The original paper is:\n    - Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, Jiaya Jia, \"Pyramid Scene Parsing Network\", Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Fchainer-pspnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitmul%2Fchainer-pspnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Fchainer-pspnet/lists"}