ytongxie / cotr Goto Github PK
View Code? Open in Web Editor NEW[MICCAI2021] CoTr: Efficiently Bridging CNN and Transformer for 3D Medical Image Segmentation
License: GNU General Public License v3.0
[MICCAI2021] CoTr: Efficiently Bridging CNN and Transformer for 3D Medical Image Segmentation
License: GNU General Public License v3.0
Hey,
Thanks for publicizing your Code and the awesome architecture you designed :)
I was wondering if you have some checkpoints for public datasets you used that you already trained as I would like to reuse the original ones in a research project.
Best regards,
Tassilo
When I want to test, I follow the instructions in README.md, but it seems to start training again? What's going on here?
Hi,
I'm trying to train the CoTr model on Hippocampus dataset that I downloaded from http://medicaldecathlon.com/
However, I'm getting the error that the size of the tensors when performing the in skip connection operation doesn't match.
The error is basically somewhere in the CoTr/network_architecture/ResTranUnet.py line 156
x = x + skip2
I tried to solve the issue but I don't fully understand the source of the error.
Any help will be really appreciated
Thank you
作者,你好,可以解释下这段代码的意思吗?
def get_reference_points(spatial_shapes, valid_ratios, device):
reference_points_list = []
for lvl, (D_, H_, W_) in enumerate(spatial_shapes):
ref_d, ref_y, ref_x = torch.meshgrid(torch.linspace(0.5, D_ - 0.5, D_, dtype=torch.float32, device=device),
torch.linspace(0.5, H_ - 0.5, H_, dtype=torch.float32, device=device),
torch.linspace(0.5, W_ - 0.5, W_, dtype=torch.float32, device=device))
ref_d = ref_d.reshape(-1)[None] / (valid_ratios[:, None, lvl, 0] * D_)
ref_y = ref_y.reshape(-1)[None] / (valid_ratios[:, None, lvl, 2] * H_)
ref_x = ref_x.reshape(-1)[None] / (valid_ratios[:, None, lvl, 1] * W_)
ref = torch.stack((ref_d, ref_x, ref_y), -1) # D W H
reference_points_list.append(ref)
reference_points = torch.cat(reference_points_list, 1)
reference_points = reference_points[:, :, None] * valid_ratios[:, None]
return reference_points
I have some questions about the preprocessing of BTCV data. I preprocessed according to nnUNet's method, but running "run_trainng.py" shows: KeyError:'bcv_32'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.