Comments (7)
I have encountered the same problem. Have you resolved it
from lavis.
I have encountered the same problem. Have you resolved it
手动离线从hF下载所有文件到一个文件夹中,然后指定路径,就可以了
from lavis.
I have encountered the same problem. Have you resolved it
手动离线从hF下载所有文件到一个文件夹中,然后指定路径,就可以了
请问该如何load呢?
from lavis.
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.
一样的问题,哪个朋友找到了解决办法还请分享一下,我已经试过了os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com',也试过了在终端echo 'export HF_ENDPOINT="https://hf-mirror.com"' >> ~/.bashrc,但是都没有效果。
from lavis.
不知道是否符合你的解决办法,我已经搞成了。
我看一共两个地方需要下载模型,bert的特征提取器,是huggingface里下载的。
其余blip模型是google drive下载的,yaml里可以找到链接。
后者在翻墙电脑下载好,2G一个,挪到服务器里,然后yaml里改成路径就行
前者 通过命令行里 export HF_ENDPOINT=https://hf-mirror.com
可以变为国内镜像自动下载,或者找到加载bert代码那行,load_from_pretrain 地方改成路径即可。
至少可以跑通blip2的那个新加坡图片的VQA的demo,我再试试别的模型
from lavis.
from lavis.
Related Issues (20)
- How should I use blip2 for vqa task training? HOT 3
- XInstructBLIP demo text generation
- salesforce-lavis 1.0.2 requires transformers<4.27,>=4.25.0, but you have transformers 4.40.0 which is incompatible. HOT 1
- Use BLIP-2 for Image Captioning HOT 1
- safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge HOT 2
- Loss calculation across GPUs using all_gather_with_grad function
- what should be samples["text_output"] during finetuning HOT 3
- AttributeError: 'NoneType' object has no attribute 'from_pretrained' HOT 1
- Blip2-caption only generate "a photo of"
- About Text Preprocessing of InstructBLIP
- How are Learned Queries generated? What line of code is implemented?
- CUstom dataset Inference
- How is `Total Params` calculated?
- cache_version Value Error
- How can I change cache_root?
- generated output error HOT 2
- A question for BLIP2 Q-Former HOT 1
- BLIP-2 paper finetune replicate low performance: BLEU_4 score is 0.15 for finetuning COCO_caption HOT 8
- KeyError: 'image_id'
- FileNotFoundError: Package has no location <module 'imageio_ffmpeg.binaries' (namespace)> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavis.