Giter Site home page Giter Site logo

Performance Issue about fastfcn HOT 12 CLOSED

wuhuikai avatar wuhuikai commented on July 3, 2024
Performance Issue

from fastfcn.

Comments (12)

wuhuikai avatar wuhuikai commented on July 3, 2024

In the same environment, I got 0.5105 for single-scale.
Can you provide your scripts, running log and sha1sum of the model?

from fastfcn.

tonysy avatar tonysy commented on July 3, 2024

The sha1sum of the model_best.pth.tar is: d581b28ac711fda74100529319d4853041ba0e2b
I use the script in your project:

#train
CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --dataset pcontext \
    --model encnet --jpu --aux --se-loss \
    --backbone resnet50 --checkname encnet_res50_pcontext

#test [single-scale]
CUDA_VISIBLE_DEVICES=0,1,2,3 python test.py --dataset pcontext \
    --model encnet --jpu --aux --se-loss \
    --backbone resnet50 --resume {MODEL} --split val --mode testval

#test [multi-scale]
CUDA_VISIBLE_DEVICES=0,1,2,3 python test.py --dataset pcontext \
    --model encnet --jpu --aux --se-loss \
    --backbone resnet50 --resume {MODEL} --split val --mode testval --ms

The script didn't store the log and I'am re-training it again for saving the logs.

Maybe you can provide a Dockerfile to make sure we can get the same performance for verification.

from fastfcn.

tonysy avatar tonysy commented on July 3, 2024

Another issue about the FPS measurement.
I have tried the test_fps_params.py for FPS measurement.
I use

CUDA_VISIBLE_DEVICES=0 python test_fps_params.py --dataset pcontext \
    --model encnet --jpu --aux --se-loss \
    --backbone resnet50

get the following results:
jpu_fps
which is similar to your reported FPS.
But when I remove the --jpu parameters in the same machine, I got:
enc_fps
where the result is 78 FPS, different from the 18.77 FPS. I wonder is there anything wrong in my experiment? Or you use different repo to report the FPS of the original EncNet?

from fastfcn.

wuhuikai avatar wuhuikai commented on July 3, 2024
  1. For the original EncNet, the script is --model encnet --dilated --lateral.
  2. For the performance, can you first download the pre-trained model and verify its performence ?
  3. I'll test the training script myself and tell you the result later.

from fastfcn.

wuhuikai avatar wuhuikai commented on July 3, 2024

@tonysy I realized that there's a bug in this version's code. This bug will be fixed soon.

from fastfcn.

wuhuikai avatar wuhuikai commented on July 3, 2024

I got a mIoU 51.27% with the updated code.
Here's the log for training and evaluation.

from fastfcn.

tonysy avatar tonysy commented on July 3, 2024

Thanks for your update. While, I think the performance of EncNet reported in your work is not accurate, which is not fair for comparison. EncNet-Res50 is 51.0% and EncNet-Res101 is 54.1% reported by the author.
https://hangzhang.org/PyTorch-Encoding/experiments/segmentation.html

from fastfcn.

wuhuikai avatar wuhuikai commented on July 3, 2024

We cannot reproduce the performance reported in https://hangzhang.org/PyTorch-Encoding/experiments/segmentation.html. The performance I report is reproduced with the official code.

from fastfcn.

HolmesShuan avatar HolmesShuan commented on July 3, 2024

The test script is in the experiments/segmentation/ folder. For evaluating the model (using MS), for example Encnet_ResNet50_PContext:

using MS may explain the performance gap.

  • @wuhuikai Could you please further release the code to reproduce the results of Table 3, i.e., mIoU measured on 60 classes w/ background. Thanks in advance.

from fastfcn.

wuhuikai avatar wuhuikai commented on July 3, 2024

@HolmesShuan For 60 classes, see here.

from fastfcn.

HolmesShuan avatar HolmesShuan commented on July 3, 2024

Table 1 results should be higher than Table 3, right? But 51.2 (Table 3) is higher than 51.05 (Table 1). Did I miss anything?

from fastfcn.

wuhuikai avatar wuhuikai commented on July 3, 2024

@HolmesShuan Table 3 is evaluated with MS.

from fastfcn.

Related Issues (20)

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.