Code Monkey home page Code Monkey logo

Comments (3)

zyh3826 avatar zyh3826 commented on May 13, 2024 1

load_from_name的第97行,如果输入的name参数是模型的本地路径,那么这个name不会出现在_MODEL_INFO中,会报KeyError,而在第88行有处理输入的是本地路径的情况

感谢您指出的问题,最新的代码增加了对load本地路径模型的支持。在输入为本地模型路径时,需要额外输入对应的vision_model_name,text_model_name,以及input_resolution。例如load本地的Base规模Chinese-CLIP模型: load_from_name(name={local_base_model_path}, device={device}, vision_model_name="ViT-B-16", text_model_name="RoBERTa-wwm-ext-base-chinese", input_resolution=224)

感谢您的及时处理

from chinese-clip.

yangapku avatar yangapku commented on May 13, 2024

收到,我们看下哈 @DtYXs

from chinese-clip.

DtYXs avatar DtYXs commented on May 13, 2024

load_from_name的第97行,如果输入的name参数是模型的本地路径,那么这个name不会出现在_MODEL_INFO中,会报KeyError,而在第88行有处理输入的是本地路径的情况

感谢您指出的问题,最新的代码增加了对load本地路径模型的支持。在输入为本地模型路径时,需要额外输入对应的vision_model_name,text_model_name,以及input_resolution。例如load本地的Base规模Chinese-CLIP模型:
load_from_name(name={local_base_model_path}, device={device}, vision_model_name="ViT-B-16", text_model_name="RoBERTa-wwm-ext-base-chinese", input_resolution=224)

from chinese-clip.

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.