Coder Social home page Coder Social logo

当我在运行TransUNet-main的train.py时出现错误:KeyError: 'Transformer/encoderblock_0/Multi5HeadDotProductAttention_1/query/kernel is not a file in the archive' 这是在我进行KeyError: 'Transformer/encoderblock_0/MultiHeadDotProductAttention_1/query\\kernel is not a file in the archive'后的更改出现的错误,csdn说这是os.path.join 合并路径的时候出现的问题,更改后仍然出现以上错误 about transunet HOT 4 OPEN

nishiwodebaby avatar nishiwodebaby commented on August 24, 2024
当我在运行TransUNet-main的train.py时出现错误:KeyError: 'Transformer/encoderblock_0/Multi5HeadDotProductAttention_1/query/kernel is not a file in the archive' 这是在我进行KeyError: 'Transformer/encoderblock_0/MultiHeadDotProductAttention_1/query\\kernel is not a file in the archive'后的更改出现的错误,csdn说这是os.path.join 合并路径的时候出现的问题,更改后仍然出现以上错误

from transunet.

Comments (4)

Zeay-ZZY avatar Zeay-ZZY commented on August 24, 2024

我也,你解决了吗

from transunet.

Zhao1580 avatar Zhao1580 commented on August 24, 2024

解决了吗请问

from transunet.

GeGuoao avatar GeGuoao commented on August 24, 2024

我也是这个问题,请问有人解决了吗

from transunet.

sanctuary-sun avatar sanctuary-sun commented on August 24, 2024

vit_seg_modeling.py中,ROOT = f"Transformer/encoderblock_{n_block}" 这个末尾也要加/,即 ROOT = f"Transformer/encoderblock_{n_block}/"。修改后应该就可以了

from transunet.

Related Issues (20)

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.