train existing model on cpu based flask-app

Job ID: 37962072

Budget: $30 – $250 USD

Please solve these lines if you are not bot:

Change following lines hugging face fuyu model:

https://huggingface.co/adept/fuyu-8b

GPU_State = False

shape_idx = 0
file_path = ""
device = 'cpu'

image_size = 224
model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_vqa_capfilt_large.pth'

model = blip_vqa(pretrained=model_url, image_size=image_size, vit='base')
model.eval()
model = model.to(device)