Git Product home page Git Product logo

clipmulti's Introduction

CLIPMulti

License: MIT

This repository contains the PyTorch implementation and the data of the paper: CLIPMulti. AAA, BBB, CCC, DDD, EEE. Computer Speech & Language.[paper].

Current progress

  • Submit paper
  • Prepare code and push

Prerequisites

This codebase was developed and tested with the following settings:

scikit-learn==1.2.1
numpy==1.24.2
pytorch==2.0.1
torchvision==0.15.2
tqdm==4.64.1
clip==1.0
transformers==4.27.1
regex==2022.10.31
ftfy==6.1.1
pillow==9.4.0

CLIP:

pip install git+https://github.com/openai/CLIP.git

How to run it

CLIPMulti

run main.py:

python main.py --dataset [dataset] --combination [combination] --prompt [prompt] --num_of_word [number_of word] --topk [number_of_topk] --test

[dataset] in ['topic', 'emotion', 'situation', 'agnews', 'snips', 'trec', 'subj']

[combination] in ['NSC', 'NWSC', 'MF']
dataset [subj] only use ['MF']

[prompt] in [0, 1, 2, 3]
prompt_0 is text written by humans based on labels
other is Match-CLIPMulti generation

[number_of word] in [30, 40, 50]
prompt_1 have [30, 40, 50], prompt_2 and prompt_3 only have [30]

[number_of_topk] in [1, 2, 3]

Match-CLIPMulti

run label2text_main.py:

python label2text_main.py --prompt [prompt] --num_of_word [number_of word] --topk [number_of_topk]

[prompt] in [1, 2, 3]

[number_of word] in [30, 40, 50]
prompt_1 have [30, 40, 50], prompt_2 and prompt_3 only have [30]

[number_of_topk] in [1, 2, 3]

clipmulti's People

Contributors

wpengxs 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.