{"id":21836766,"url":"https://github.com/bes-dev/pytorch_clip_interrogator","last_synced_at":"2025-07-01T09:05:40.108Z","repository":{"id":153308702,"uuid":"603796564","full_name":"bes-dev/pytorch_clip_interrogator","owner":"bes-dev","description":"Image-to-prompt reconstruction.","archived":false,"fork":false,"pushed_at":"2023-06-01T08:25:02.000Z","size":797,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T09:05:33.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bes-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-19T15:50:09.000Z","updated_at":"2024-01-03T10:03:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"1570717b-ea39-422d-b36a-7268e2334c45","html_url":"https://github.com/bes-dev/pytorch_clip_interrogator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bes-dev/pytorch_clip_interrogator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fpytorch_clip_interrogator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fpytorch_clip_interrogator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fpytorch_clip_interrogator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fpytorch_clip_interrogator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bes-dev","download_url":"https://codeload.github.com/bes-dev/pytorch_clip_interrogator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fpytorch_clip_interrogator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262933261,"owners_count":23386778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T20:42:40.991Z","updated_at":"2025-07-01T09:05:40.075Z","avatar_url":"https://github.com/bes-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytorch_clip_interrogator: Image-To-Promt.\n[![Downloads](https://pepy.tech/badge/pytorch_clip_interrogator)](https://pepy.tech/project/pytorch_clip_interrogator)\n[![Downloads](https://pepy.tech/badge/pytorch_clip_interrogator/month)](https://pepy.tech/project/pytorch_clip_interrogator)\n[![Downloads](https://pepy.tech/badge/pytorch_clip_interrogator/week)](https://pepy.tech/project/pytorch_clip_interrogator)\n\n\n## Install package\n\n```bash\npip install pytorch_clip_interrogator\n```\n\n## Install the latest version\n\n```bash\npip install --upgrade git+https://github.com/bes-dev/pytorch_clip_interrogator.git\n```\n\n## Features\n- Fully compatible with models from Huggingface.\n- Supports BLIP 1/2 model.\n- Support batch processing.\n\n## Usage\n\n### Simple code\n\n```python\nimport torch\nimport requests\nfrom PIL import Image\nfrom pytorch_clip_interrogator import PromptEngineer\n\n# build pipeline\npipe = PromptEngineer(\n    blip_model=\"Salesforce/blip2-opt-2.7b\",\n    clip_model=\"openai/clip-vit-base-patch32\",\n    device=\"cuda\",\n    torch_dtype=torch.float16\n)\n\n# load image\nimg_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg'\nimage = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')\n\n\n# generate caption\nprint(pipe(image))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-dev%2Fpytorch_clip_interrogator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbes-dev%2Fpytorch_clip_interrogator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-dev%2Fpytorch_clip_interrogator/lists"}