All Projects → Hanzy1996 → CE-GZSL

Hanzy1996 / CE-GZSL

Licence: MIT license
Codes for the CVPR 2021 paper: Contrastive Embedding for Generalized Zero-Shot Learning

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to CE-GZSL

gzsl-od
Out-of-Distribution Detection for Generalized Zero-Shot Action Recognition
Stars: ✭ 47 (-35.62%)
Mutual labels:  zero-shot-learning
Awesome-Weak-Shot-Learning
A curated list of papers, code and resources pertaining to weak-shot classification, detection, and segmentation.
Stars: ✭ 142 (+94.52%)
Mutual labels:  zero-shot-learning
ZS SDL
Official Pytorch Implementation of: "Semantic Diversity Learning for Zero-Shot Multi-label Classification"(ICCV, 2021) paper
Stars: ✭ 22 (-69.86%)
Mutual labels:  zero-shot-learning
Natural-language-understanding-papers
NLU: domain-intent-slot; text2SQL
Stars: ✭ 77 (+5.48%)
Mutual labels:  zero-shot-learning
Zero-shot-Fact-Verification
Codes for ACL-IJCNLP 2021 Paper "Zero-shot Fact Verification by Claim Generation"
Stars: ✭ 39 (-46.58%)
Mutual labels:  zero-shot-learning
neuron-importance-zsl
[ECCV 2018] code for Choose Your Neuron: Incorporating Domain Knowledge Through Neuron Importance
Stars: ✭ 56 (-23.29%)
Mutual labels:  zero-shot-learning
Zero-Shot-TTS
Unofficial Implementation of Zero-Shot Text-to-Speech for Text-Based Insertion in Audio Narration
Stars: ✭ 33 (-54.79%)
Mutual labels:  zero-shot-learning
class-norm
Class Normalization for Continual Zero-Shot Learning
Stars: ✭ 34 (-53.42%)
Mutual labels:  zero-shot-learning
deep-eos
General-Purpose Neural Networks for Sentence Boundary Detection
Stars: ✭ 66 (-9.59%)
Mutual labels:  zero-shot-learning
hierse
Zero-shot image tagging by hierarchical semantic embedding
Stars: ✭ 77 (+5.48%)
Mutual labels:  zero-shot-learning
Zero-Shot-Learning
零样本学习
Stars: ✭ 20 (-72.6%)
Mutual labels:  zero-shot-learning
Feature-Generating-Networks
Zero Shot Learning with Feature Generating Networks
Stars: ✭ 31 (-57.53%)
Mutual labels:  zero-shot-learning
Awesome-Zero-Shot-Object-Detection
No description or website provided.
Stars: ✭ 89 (+21.92%)
Mutual labels:  zero-shot-learning
zero shot learning
A Visual-semantic embedding model using word2vec and CNNs
Stars: ✭ 13 (-82.19%)
Mutual labels:  zero-shot-learning
adapt
Awesome Domain Adaptation Python Toolbox
Stars: ✭ 46 (-36.99%)
Mutual labels:  zero-shot-learning
tfvaegan
[ECCV 2020] Official Pytorch implementation for "Latent Embedding Feedback and Discriminative Features for Zero-Shot Classification". SOTA results for ZSL and GZSL
Stars: ✭ 107 (+46.58%)
Mutual labels:  zero-shot-learning
FREE
Codes for the ICCV'21 paper "FREE: Feature Refinement for Generalized Zero-Shot Learning"
Stars: ✭ 28 (-61.64%)
Mutual labels:  zero-shot-learning
good robot
"Good Robot! Now Watch This!": Repurposing Reinforcement Learning for Task-to-Task Transfer; and “Good Robot!”: Efficient Reinforcement Learning for Multi-Step Visual Tasks with Sim to Real Transfer
Stars: ✭ 84 (+15.07%)
Mutual labels:  zero-shot-learning
Awesome Domain Adaptation
A collection of AWESOME things about domian adaptation
Stars: ✭ 3,357 (+4498.63%)
Mutual labels:  zero-shot-learning
domain-adaptation-capls
Unsupervised Domain Adaptation via Structured Prediction Based Selective Pseudo-Labeling
Stars: ✭ 43 (-41.1%)
Mutual labels:  zero-shot-learning

CE-GZSL

Codes for the CVPR 2021 paper: Contrastive Embedding for Generalized Zero-Shot Learning [CVPR2021][arxiv].

Keras implementation [code]. Much appreciation for @webcsm's efforts!

generation_framework

Contrastive Embedding for Generalized Zero-Shot Learning

Dependencies

This codes requires the following:

  • Python 3.6
  • Pytorch 1.2.0
  • scikit-learn

Datasets

Download the dataset (AWA1/AWA2/CUB/FLO/SUN) from the work of Xian et al. (CVPR2017), and save correspongding data into directory ./data/. Here, we provide the semantic descriptor for CUB, which is the 1,024-dimensional class embeddings generated from textual descriptions sent_splits.mat.

Train and Test

Run python CE_GZSL.py with the following args:

  • --dataset: datasets, e.g: CUB.

  • --class_embedding: the semantic descriptors to use, e.g: sent or att.

  • --syn_num: number synthetic features for each class.

  • --batch_size: the number of the instances in a mini-batch.

  • --attSize: size of semantic features.

  • --nz: size of the Gaussian noise.

  • --embedSize: size of embedding h.

  • --outzSize: size of non-liner projection z.

  • --nhF: size of the hidden units comparator network F.

  • --ins_weight: weight of the classification loss when learning G.

  • --cls_weight: weight of the score function when learning G.

  • --ins_temp: temperature in instance-level supervision.

  • --cls_temp: temperature in class-level supervision

  • --manualSeed: manual seed.

  • --nclass_all: number of all classes.

  • --nclass_seen: number of seen classes

For example:

python3.6 CE_GZSL.py --dataset CUB --class_embedding sent --syn_num 100 --batch_size 2048 --attSize 1024 --nz 1024 --embedSize 2048 --outzSize 512 --nhF 2048 --ins_weight 0.001 --cls_weight 0.001 --ins_temp 0.1 --cls_temp 0.1 --manualSeed 3483 --nclass_all 200 --nclass_seen 150

Citation

If you find this useful, please cite:

@InProceedings{Han_2021_CVPR,
    author    = {Han, Zongyan and Fu, Zhenyong and Chen, Shuo and Yang, Jian},
    title     = {Contrastive Embedding for Generalized Zero-Shot Learning},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2021},
    pages     = {2371-2381}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].