salesforce / BLIP

PyTorch code for BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation
BSD 3-Clause "New" or "Revised" License
4.86k stars 648 forks source link

Upgrade to Cog version 0.1 #103

Open chenxwh opened 2 years ago

chenxwh commented 2 years ago

The new version of Cog improves the Python API, along with several other changes. Particularly pydantic is now used for Predictor and the previous version will be deprecated.

This PR upgrades the Replicate demo and API to Cog version >= 0.1. I have already pushed this to Replicate, so you don't need to do anything for the demo to keep working :) https://replicate.com/salesforce/blip

salesforce-cla[bot] commented 2 years ago

Thanks for the contribution! Before we can merge this, we need @chenxwh to sign the Salesforce.com Contributor License Agreement.