GithubHelp home page GithubHelp logo

Comments (7)

hyyuan123 avatar hyyuan123 commented on June 16, 2024

I have encountered the same problem. Have you resolved it

from lavis.

shams2023 avatar shams2023 commented on June 16, 2024

I have encountered the same problem. Have you resolved it
手动离线从hF下载所有文件到一个文件夹中,然后指定路径,就可以了

from lavis.

ShuxunoO avatar ShuxunoO commented on June 16, 2024

I have encountered the same problem. Have you resolved it
手动离线从hF下载所有文件到一个文件夹中,然后指定路径,就可以了

请问该如何load呢?

from lavis.

macqueen09 avatar macqueen09 commented on June 16, 2024

demo里的 model, vis_processors, txt_processors = load_model_and_preprocess(name="blip_vqa", model_type="vqav2", is_eval=True, device=device)
有三个模型, 如何能离线指定提前下载好的模型 ~
where are three model in load_model_and_preprocess function output, how can i use offline file in this demo.

from lavis.

zhaoyib avatar zhaoyib commented on June 16, 2024

一样的问题,哪个朋友找到了解决办法还请分享一下,我已经试过了os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com',也试过了在终端echo 'export HF_ENDPOINT="https://hf-mirror.com"' >> ~/.bashrc,但是都没有效果。

from lavis.

macqueen09 avatar macqueen09 commented on June 16, 2024

不知道是否符合你的解决办法,我已经搞成了。
我看一共两个地方需要下载模型,bert的特征提取器,是huggingface里下载的。
其余blip模型是google drive下载的,yaml里可以找到链接。

后者在翻墙电脑下载好,2G一个,挪到服务器里,然后yaml里改成路径就行
前者 通过命令行里 export HF_ENDPOINT=https://hf-mirror.com

可以变为国内镜像自动下载,或者找到加载bert代码那行,load_from_pretrain 地方改成路径即可。
至少可以跑通blip2的那个新加坡图片的VQA的demo,我再试试别的模型

from lavis.

ShuxunoO avatar ShuxunoO commented on June 16, 2024

from lavis.

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.