Skip to content

Coding PaliGemma from scratch using pytorch for inference.

License

Notifications You must be signed in to change notification settings

eljandoubi/PaliGemma

Repository files navigation

Coding PaliGemma from scratch using pytorch for inference.

Setup environment

  • Clone the repository and Go to PaliGemma directory.
git clone https://github.com/eljandoubi/PaliGemma.git && cd PaliGemma
  • Build environment.
make build

Run inference

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

Clean environment

make clean