Comments (4)
Hi,the default loss function is cross entropy loss,MixSoftmaxCrossEntropyLoss means auxiliary loss (deep supervised)+ cross entropy loss.
from awesome-semantic-segmentation-pytorch.
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.
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.
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)
- Errors occured when running with multi-GPUs
- 为什么只能训练fcn系列的
- why " iteration=iteration+1" in train.py ?
- 有人能把模型跑到论文中的精度吗 HOT 1
- Why the performance dropped by half when use pytorch1.5 or the newer version?
- Hello! Is there any group number?
- 执行demo程序发生如下报错TypeError: __init__() got an unexpected keyword argument 'local_rank'怎么解决 HOT 2
- DenseASPP与官方代码似乎实现的不太一样(different implemantation with official code in DenseASPP)
- 有训练好的checkpoint吗
- 请问一下这个fcn32s_vgg16_pascal_voc.pth在哪里获取啊?根据readme的指示跑demo.py出现ValueError: Model file is not found. Downloading or trainning. HOT 1
- bisenet cityscapes the miou is low
- VOC_aug里的mat格式标签怎么得到
- bisenet我只能跑到64左右,离论文里面的76差了很多,有人跑到哪个精度吗
- TypeError: init() got an unexpected keyword argument 'local_rank' HOT 2
- DeepLabV3+, the backbone can only use Xception, and other backbones cannot be selected HOT 1
- 预训练权重
- Dataset Directory Structure
- model file path issue. Getting error - ValueError: Model file is not found. Downloading or training. Please help!
- Anyone able to successfully execute it with ade20k dataset? Please help!
- RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-semantic-segmentation-pytorch.