An open API service indexing awesome lists of open source software.

https://github.com/eljandoubi/paligemma

Coding PaliGemma from scratch using pytorch for inference.
https://github.com/eljandoubi/paligemma

pytorch-implementation transformers vision-language-model

Last synced: about 2 months ago
JSON representation

Coding PaliGemma from scratch using pytorch for inference.

Awesome Lists containing this project

README

        









Coding PaliGemma from scratch using pytorch for inference.

## Setup environment
* Clone the repository and Go to PaliGemma directory.
```bash
git clone https://github.com/eljandoubi/PaliGemma.git && cd PaliGemma
```

* Build environment.
```bash
make build
```

## Run inference
* Default test case.
```bash
make run
```

* Costumized tests
You can change these variables: `PROMPT` and `IMAGE_FILE_PATH` in order to run on your own test case.
```bash
make run PROMPT="this building is " IMAGE_FILE_PATH="sample/EiffelTower.jpg"
```

## Clean environment
```bash
make clean
```