Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #34

Open
HuaZheLei opened this issue Jun 24, 2019 · 4 comments
Open

Question #34

HuaZheLei opened this issue Jun 24, 2019 · 4 comments

Comments

@HuaZheLei
Copy link

Thanks for your nice work. I can not figure out 'MixSoftmaxCrossEntropyLoss' in your code, which is the default loss function. Could you explain it for me?

@Tramac
Copy link
Owner

Tramac commented Jun 24, 2019

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

@HuaZheLei
Copy link
Author

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

@roclark
Copy link
Contributor

roclark commented Jul 19, 2019

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

@roclark
Copy link
Contributor

roclark commented Jul 24, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants