SUN-1024 / DA-TransUnet

DA-TransUNet: Combining Dual Attention of Position and Channel with Transformer U-net for Medical Image Segmentation
GNU General Public License v3.0
120 stars 10 forks source link

运行报错 #5

Open Ckkxx opened 10 months ago

Ckkxx commented 10 months ago

菜鸟一枚, KeyError: 'Transformer/encoderblock_0\MultiHeadDotProductAttention_1/query\kernel is not a file in the archive'

yizhipan commented 9 months ago

https://blog.csdn.net/m0_69607904/article/details/135243311?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22135243311%22%2C%22source%22%3A%22m0_69607904%22%7D

lkk117766 commented 7 months ago

@Ckkxx https://blog.csdn.net/weixin_43311451/article/details/118962451 這可以解決 還要改def load_from(self, weights, nblock): ROOT = f"Transformer/encoderblock{n_block}/"哥这里{n_block}后边还得加一个