Giter Club home page Giter Club logo

ucmt's People

Contributors

senyh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

forwardforevere

ucmt's Issues

How to select the uncertainty map topk small batch on the 3d heart volume data?

你好,非常高兴看见你们的工作被ijcai接受,我复现了你们的代码,再ISIC数据集上面可以达到你们的效果,甚至略微超过了0.1个点,证明你们的方法是可行有效的。

但我想在3d的ct数据上面实现UCMT,关键的难点在于unfold 函数pytorch官方只能实现4d的张量,对于ct数据而言,训练时的数据维度是五维的[batch,class,depth,width,height]。我无法实现umix的这一步,请问我应该使用哪一个函数来对3d的ct数据进行不确定度最高的块的选择呢。我在这一步卡了很长时间,非常感谢你们的回复。

unfolds  = torch.nn.Unfold(kernel_size=(h, w), stride=s).to(device)
folds = torch.nn.Fold(output_size=(args.image_size, args.image_size), kernel_size=(h, w), stride=s).to(device)
x11 = unfolds(uncertainty_map11)  # B x C*kernel_size[0]*kernel_size[1] x L  8 256 256 
x11 = x11.view(B, 1, h, w, -1)  # B x C x h x w x L
x11_mean = torch.mean(x11, dim=(1, 2, 3))  # B x L
_, x11_max_index = torch.sort(x11_mean, dim=1, descending=True)  # B x L B x L
# for student 2
x22 = unfolds(uncertainty_map22)  # B x C*kernel_size[0]*kernel_size[1] x L
x22 = x22.view(B, 1, h, w, -1)  # B x C x h x w x L
x22_mean = torch.mean(x22, dim=(1, 2, 3))  # B x L
_, x22_max_index = torch.sort(x22_mean, dim=1, descending=True)  # B x L B x L
img_unfold = unfolds(imageA1).view(B, C, h, w, -1)  # B x C x h x w x L
lab_unfold = unfolds(label.float()).view(B, 1, h, w, -1)  # B x C x h x w x L
for i in range(B):## 对8张图片进行操作
    img_unfold[i, :, :, :, x11_max_index[i, :topk]] = img_unfold[i, :, :, :, x22_max_index[i, -topk:]]
    img_unfold[i, :, :, :, x22_max_index[i, :topk]] = img_unfold[i, :, :, :, x11_max_index[i, -topk:]]
    lab_unfold[i, :, :, :, x11_max_index[i, :topk]] = lab_unfold[i, :, :, :, x22_max_index[i, -topk:]]
    lab_unfold[i, :, :, :, x22_max_index[i, :topk]] = lab_unfold[i, :, :, :, x11_max_index[i, -topk:]]
image2 = folds(img_unfold.view(B, C*h*w, -1))
label2 = folds(lab_unfold.view(B, 1*h*w, -1))

image

require code

Hello:
I am very intrested in your work,and I am doing research on semi-supervised .If I publish a paper,I will referance your work.if your are convenience ,you could sent your code to my email [email protected]

不确定性映射

作者你好,请问论文当中的不确定映射我应该怎么可视化出来呢

Code required

Very much looking forward to the code you can provide

结肠数据集的一些问题

您好,
我最近在复现结肠数据集的测试结果,但是遇到了一些问题。
由于代码中没有这部分的数据集处理,所以我采用了PraNet的数据集,采用合并训练的方法。并结合您在ISIC数据集的预处理方法(即:通过imread打开,类型转换,resize(512,512),数据增强,将标签转为tensor并增加维度),同时我还参考了代码中ISIC数据集划分有标签数据与无标签数据的方法(即:采用整个训练集作为无标签,随机选择其中的15%作为有标签,将其索引保存在文件中,并将有标签数据复制,直到与训练集长度一致)。
在这种设置下我进行了训练与测试,测试结果在Kvasir上dice分数低了5个百分点,在CVC-Clinic数据集上低了9个百分点。我不确定是数据集处理中哪一步出了问题,所以想向您请教一下。
谢谢!

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.