Git Product home page Git Product logo

Comments (4)

Tramac avatar Tramac commented on August 24, 2024

Hi,the default loss function is cross entropy loss,MixSoftmaxCrossEntropyLoss means auxiliary loss (deep supervised)+ cross entropy loss.

from awesome-semantic-segmentation-pytorch.

HuaZheLei avatar HuaZheLei commented on August 24, 2024

Thanks for your reply. When I use multi-gpu to evaluate my trained model, I get an error.
Traceback (most recent call last): File "eval.py", line 108, in <module> evaluator = Evaluator(args) File "eval.py", line 49, in __init__ self.model = self.model.module File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 539, in __getattr__ type(self).__name__, name)) AttributeError: 'FCN32s' object has no attribute 'module'
My conmand is
export NGPUS=4 python -m torch.distributed.launch --nproc_per_node=$NGPUS eval.py --model fcn32s --backbone vgg16 --dataset coco_voc

from awesome-semantic-segmentation-pytorch.

roclark avatar roclark commented on August 24, 2024

Hey @HuaZheLei, I'm running into this issue as well (for ENet specifically, but the same principle applies). Did you find a resolution?

from awesome-semantic-segmentation-pytorch.

roclark avatar roclark commented on August 24, 2024

Hello again @HuaZheLei, not sure if you are still looking at this or not, but I just created a pull request (#50) which now fully supports multi-GPU evaluation. I tested with the following command:

export NGPUS=8
python -m torch.distributed.launch --nproc_per_node=$NGPUS eval.py --model enet --dataset citys

Feel free to give it a shot and let me know if it solves your issue!

from awesome-semantic-segmentation-pytorch.

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.