Giter VIP home page Giter VIP logo

Comments (11)

cbachen1997 avatar cbachen1997 commented on August 29, 2024

我尝试使用提供的预训练权重deepglobe.pth,构建出符合该权重的模型,但是提示缺少STDCLpLsRefineHeadArchAff2定义,该类在项目中无法找到。

from isdnet.

cedricgsh avatar cedricgsh commented on August 29, 2024

请问您是按照README里的安装流程吗,我从头安装了一遍,可以正常运行
@cbachen1997

from isdnet.

cbachen1997 avatar cbachen1997 commented on August 29, 2024

@cedricgsh 您好,我按照README进行了安装,mmcv相关库均能对应,确实能够运行。
但是问题似乎出在使用的下载的pretrained_model权重deepglobe.pth和configs/isdnet/isdnet_r18-d8_1224x1224_80k_DeepGlobe.py进行推理时,权重与config无法正确匹配,因此按照inference_demo.ipynb推理时效果很差。请问您是使用对应的权重和config文件吗?

from isdnet.

cedricgsh avatar cedricgsh commented on August 29, 2024

你的结果是多少,unknown这个类别不用计算在总的mIoU内,但程序输出结果最后是包含了unknown这个的结果,需要自己重新计算除了unknown这个类别之外其他类别的mIoU,README中有除了unknown这个类别之外的其他类别结果,如果都对应的话说明推理没有问题。
@cbachen1997

from isdnet.

cbachen1997 avatar cbachen1997 commented on August 29, 2024

@cedricgsh 您好,我现在并没有需要计算mIOU,只是希望使用deepglobe预训练的isdnet对Deepglobe的图像进行语义分割,目前按照的是demo/inference_demo.ipynb进行推理,使用deepglobe的10452.jpg作为demo图像,得到的结果会得到全为2的预测结果。所以我之前猜想是权重不匹配的问题,如果这不影响,不知是否数据输入前需要进行处理?

from isdnet.

cedricgsh avatar cedricgsh commented on August 29, 2024

建议使用整个数据集验证推理结果是否正确,如果整个数据集的mIoU没问题,那么对于特定图像的输出也是没有问题的。

from isdnet.

cbachen1997 avatar cbachen1997 commented on August 29, 2024

您好,按照readme说明,设置好数据集后,我利用tools/test.py对整个数据集进行了测试,使用指标为mIoU。
mIoU效果很差,检查show_dir发现所有图片预测均为黄色,每个像素预测都是相同的结果(0,255,255)。
反复确认多次,完全按照要求进行了测试,仍不知为何出现这种结果。
能否劳烦您检查一下,是否是github项目发布页提供的权重无法与isdnet_r18-d8_1224×1224_80k_DeepGlobe.py对应的问题?或者能否提供一个使用该权重和config进行分割的demo?

from isdnet.

cedricgsh avatar cedricgsh commented on August 29, 2024

你的测试命令和最终结果mIoU是多少
我的测试命令是这样的:
python tools/test.py configs/isdnet/isdnet_r18-d8_1224x1224_80k_DeepGlobe.py ./best_models/deepglobe.pth --eval mIoU

from isdnet.

cedricgsh avatar cedricgsh commented on August 29, 2024

1679319532029

我又重新安装并且运行测试,这个是测试结果。可以看一下你pip list之后的配置库吗

from isdnet.

cbachen1997 avatar cbachen1997 commented on August 29, 2024

非常感谢您耐心细致的回复,我准备重新clone该项目并重新再开一个新环境进行配置测试。
可能是某些难以察觉到的原因导致目前的问题,无论后续我是否能完成测试,我都会再来回复,并附上我的详细情况
再次感谢

from isdnet.

cbachen1997 avatar cbachen1997 commented on August 29, 2024

您好,我已能够正常调试。现在看来是与我此前的mmcv相关库由于路径原因存在冲突导致的问题,这一问题在之前的配置环境过程中没有得到解决。按照您的说明再次配置环境后,问题得到解决。非常感谢您的帮助与回答。

from isdnet.

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.