forked from cobanov/image-captioning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 1,26 @@ | ||
# Image Captioning | ||
|
||
captioning is a Python library for dealing with image captioning using BLIP. | ||
|
||
model_url = "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth" | ||
model_url_vq = "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model*_vqa.pth" | ||
## Checkpoints [Required] | ||
|
||
Download the fine-tuned checkpoint and copy into 'checkpoints' folder (create if does not exists) | ||
|
||
- [BLIP-Large](https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth) | ||
|
||
## Usage | ||
|
||
``` | ||
python inference.py --image_folder --output_folder | ||
``` | ||
|
||
## Contributing | ||
|
||
Pull requests are welcome. For major changes, please open an issue first | ||
to discuss what you would like to change. | ||
|
||
Please make sure to update tests as appropriate. | ||
|
||
## License | ||
|
||
[MIT](https://choosealicense.com/licenses/mit/) |