Comments (11)
@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.
意思就是KvasirDataset这个数据集也要像SUN-SEG数据集一样,分出训练、测试和验证,然后和做成和data/polyp一样吗
from s2me.
@1456214718
Hi, you don't need to split the dataset.
We test on all 1000 images of the kvasir-seg dataset.
from s2me.
测试?意思就是这个数据集只要测试,不需要训练和验证吗?
from s2me.
@1456214718
Yes, this can also be considered as a zero-shot out-of-distribution (OOD) transfer evaluation.
from s2me.
可是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.
@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.
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.
@1456214718
Hi, for testing, you should use trsf_valid_image_224 rather than trsf_train_image_224 as the transformation.
from s2me.
好的,谢谢您,除了这个还需改动哪里吗
from s2me.
@1456214718 Looks fine with your provided code.
from s2me.
Related Issues (4)
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 s2me.