Giter Site home page Giter Site logo

clip_from_scratch's Introduction

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


clip_from_scratch's People

Contributors

anonymous-atom avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.