Skip to content

anonymous-atom/CLIP_From_Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLIP FROM SCRATCH

Integrating Vision and Language

last-commit repo-top-language

Developed with :

PyTorch


Quick Links


TODO

  • Text Encoder
  • Vision Encoder
  • Projection Matrix
  • Basic Training Script
  • Make Model GPU Compatible (Just little changes in Text Encoder Part)
  • Write Distributed training scripts
  • Add options to switch to custom text and vision encoder

Repository Structure

└── CLIP_From_Scratch/
    ├── CLIP.py
    ├── encoder.py
    ├── projection_head.py
    └── train.py

Modules

File Summary
encoder.py The encoder.py provides text and image embeddings functionality.
train.py The train.py script trains a CLIP model, managing data loading, training steps, updating metrics, and learning rate retrieval.
CLIP.py CLIP.py defines a multimodal CLIP model, integrating image and text encoders with projection heads for joint embedding.
projection_head.py The projection_head.py defines a neural network module for transforming embeddings

Getting Started

Installation

  1. Clone the CLIP_From_Scratch repository:
git clone https://github.com/anonymous-atom/CLIP_From_Scratch
  1. Change to the project directory:
cd CLIP_From_Scratch
  1. Install the dependencies:
pip install -r requirements.txt


Contributing

Contributions are welcome! Here are several ways you can contribute:

Contributing Guidelines
  1. Fork the Repository: Start by forking the project repository to your GitHub account.
  2. Clone Locally: Clone the forked repository to your local machine using a Git client.
    git clone https://github.com/anonymous-atom/CLIP_From_Scratch
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to GitHub: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.

Once your PR is reviewed and approved, it will be merged into the main branch.


Return


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages