Git Product home page Git Product logo

pspnet-pytorch's Introduction

PSPNet-Pytorch

This Repo contains an implemetation of "Pyramid Scene Parsing Network" in Pytorch. Pretrained weights are converted from Official Caffe Repo. The performance is: [acc 0.95196], [acc_cls 0.83369], [mean_iu 0.75547], [fwavacc 0.91172] on Validation set of CityScapes Dataset.

Installation

  1. Install Anaconda3 from Here
  2. Create a Conda Environment:
username@PC:~$ conda env create -f environment.yml
  1. Download Cityscapes Dataset from Here
  2. Download Caffe Pretrained from Here and put it in Caffe-PSPNet folder
  3. Run the code:
username@PC:~$ python main.py

Qualitative

Note

Weight conversion from Caffe to Pytorch is modified from pytorch-semseg.
Preprocessing and loss function is modified from pytorch-semantic-segmentation.
Since the differences are significant, I decided not to add a branch to any of the the above project.

pspnet-pytorch's People

Contributors

shahabty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pspnet-pytorch's Issues

Use custom dataset

@shahabty thank you for the code, I works fine :) I could get good results with the cityscapes dataset. However If I have to use a custom dataset, how can I do that?

Cannot reproduce your results

Hi,
I downloaded the pretrained caffemodel and put it in the correct directory, I have no errors at all, but the main script gives me IoU of 8%. Do you have any ideas why? I'm using pytorch 0.4.1.

val set result

Hi,
did you try the pspnet from repo pytorch-semseg (https://github.com/meetshah1995/pytorch-semseg)? I think the model structure in your code is almost the same as theirs, but their model can only produce mIoU of about 52% on val set, and I cannot find any difference in data processing, do you know why?

About mean_std value

Hi,
If I want to finetune this PSPNet, How should I set the transform, especially the mean std value?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.