Giter Site home page Giter Site logo

Comments (11)

Eileen000 avatar Eileen000 commented on September 7, 2024

这个报错呢?
Traceback (most recent call last):
File "/drive/MyDrive/DANet-0.5.0/danet/train.py", line 204, in
trainer.training(epoch)
File "/drive/MyDrive/DANet-0.5.0/danet/train.py", line 128, in training
outputs = self.model(image)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/parallel/data_parallel.py", line 141, in forward
return self.module(*inputs[0], **kwargs[0])
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/drive/MyDrive/DANet-0.5.0/encoding/models/danet.py", line 45, in forward
_, _, c3, c4 = self.base_forward(x)
File "/drive/MyDrive/DANet-0.5.0/encoding/models/base.py", line 61, in base_forward
c1 = self.pretrained.layer1(x)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/container.py", line 92, in forward
input = module(input)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/drive/MyDrive/DANet-0.5.0/encoding/dilated/resnet.py", line 96, in forward
out = self.conv1(x)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/conv.py", line 320, in forward
self.padding, self.dilation, self.groups)
RuntimeError: Given groups=1, weight of size [64, 128, 1, 1], expected input[1, 64, 192, 192] to have 128 channels, but got 64 channels instead

from danet.

JIA-HONG-CHU avatar JIA-HONG-CHU commented on September 7, 2024

在danet.py 更改input 可以使用 transpose 和 view套件

from danet.

wlj567 avatar wlj567 commented on September 7, 2024

在 danet.py 更改输入可以使用转置和视图套件
您好,能具体点吗,谢谢了

from danet.

JIA-HONG-CHU avatar JIA-HONG-CHU commented on September 7, 2024

https://zhuanlan.zhihu.com/p/342675997 。這篇有講蠻淺顯易懂的

from danet.

wlj567 avatar wlj567 commented on September 7, 2024

https://zhuanlan.zhihu.com/p/342675997 。這篇有講蠻淺顯易懂的

麻烦了,谢谢

from danet.

wlj567 avatar wlj567 commented on September 7, 2024

@Eileen000 您好,请问你能运行完整代码吗,方便加个联系方式吗,谢谢了

from danet.

Eileen000 avatar Eileen000 commented on September 7, 2024

from danet.

JIA-HONG-CHU avatar JIA-HONG-CHU commented on September 7, 2024

我有用 encnet danet dranet 用在 mmsegmentation 套件上並且套用swin transformer backbone而不是resnet101,你可以參考 https://github.com/JIA-HONG-CHU/Swin-Transformer-add-EncNet-DaNet-DraNet-for-semantic-segmentation-on-Statelite-Dataset

from danet.

wlj567 avatar wlj567 commented on September 7, 2024

十分感谢你们的回复,作为新人,代码上的问题颇多,我再好好琢磨琢磨吧。打扰了

from danet.

wlj567 avatar wlj567 commented on September 7, 2024

十分感谢你们的回复,作为新人,代码上的问题颇多,我再好好琢磨琢磨吧。打扰了

from danet.

wlj567 avatar wlj567 commented on September 7, 2024

您们好,我想问问训练DANet,怎么用cityscapes数据集进行训练?希望能有空回复一下,先谢谢了。

from danet.

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.