Giter Club home page Giter Club logo

Comments (11)

lofrienger avatar lofrienger commented on July 17, 2024

@1456214718
As long as the folder structure of your external dataset follows the in-distribution dataset, just replacing the dataset location should be fine to assess the OOD performance.

from s2me.

1456214718 avatar 1456214718 commented on July 17, 2024

意思就是KvasirDataset这个数据集也要像SUN-SEG数据集一样,分出训练、测试和验证,然后和做成和data/polyp一样吗

from s2me.

lofrienger avatar lofrienger commented on July 17, 2024

@1456214718
Hi, you don't need to split the dataset.
We test on all 1000 images of the kvasir-seg dataset.

from s2me.

1456214718 avatar 1456214718 commented on July 17, 2024

测试?意思就是这个数据集只要测试,不需要训练和验证吗?

from s2me.

lofrienger avatar lofrienger commented on July 17, 2024

@1456214718
Yes, this can also be considered as a zero-shot out-of-distribution (OOD) transfer evaluation.

from s2me.

1456214718 avatar 1456214718 commented on July 17, 2024

可是CVCDataset这个数据库为什么测试的时候,总会出现这个错误stack expects each tensor to be equal size,but got [3,244,244]at entry 0 and [244,244,3]at entry 4,这个错误困扰我好久,不太会解决

from s2me.

lofrienger avatar lofrienger commented on July 17, 2024

@1456214718
Hi, the error arises because the two tensors have different dimension orders (CHW and HWC).
I have no idea if you can test with other datasets but not this one.
Perhaps you can paste more details here, like which lines of code, so that I can offer help.

from s2me.

1456214718 avatar 1456214718 commented on July 17, 2024

from dataloaders.dataset_polyp import (CVCDataset, trsf_train_image_224,
trsf_valid_image_224)
parser.add_argument('--ds_root', type=str,
default='../dataset/CVCDataset', help='dataset root dir')
db_train = CVCDataset(ds_root=args.ds_root, transform=trsf_train_image_224,save='False')
在你代码的基础上就改了这些,其他没动,而且这个数据集我也是下载您提供的链接,我不知道为什么会出现这种情况,KvasirDataset数据集没有问题了

from s2me.

lofrienger avatar lofrienger commented on July 17, 2024

@1456214718
Hi, for testing, you should use trsf_valid_image_224 rather than trsf_train_image_224 as the transformation.

from s2me.

1456214718 avatar 1456214718 commented on July 17, 2024

好的,谢谢您,除了这个还需改动哪里吗

from s2me.

lofrienger avatar lofrienger commented on July 17, 2024

@1456214718 Looks fine with your provided code.

from s2me.

Related Issues (4)

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.