Code Monkey home page Code Monkey logo

ev-lafor's Introduction

Ev-LaFOR (ICCV 2023 Oral)

This repository contains the official PyTorch implementation of the paper "Label-Free Event-based Object Recognition via Joint Learning with Image Reconstruction from Events" paper (ICCV 2023, Oral). [Paper]

Qualitative Results on N-Caltech101 and N-ImageNet100 datasets

Quantitative results on N-Caltech101 and N-ImageNet100 datasets

Requirements

Dataset

Download N-Caltech101 datasets. Download N-ImageNet datasets.

For convenience, you can also use data split that we have used: Download N-Caltech101 & Caltech101 datasets. Download N-ImageNet100 & ImageNet100 datasets.

πŸ“‚ Data structure

Our folder structure is as follows:

caltech-101 (For Image)
└── caltech-101
   └── 101_ObjectCategories
      β”œβ”€β”€ accordion
      β”‚   β”œβ”€β”€ image_0001.jpg
      β”‚   └── ...
      β”œβ”€β”€ airplanes
      β”‚   β”œβ”€β”€ image_0001.jpg
      β”‚   └── ...
      β”‚ 
      └── ...

Caltech101 (For Event)
β”œβ”€β”€ accordion
β”‚   β”œβ”€β”€ image_0001.bin
β”‚   └── ...
β”œβ”€β”€ airplanes
β”‚   β”œβ”€β”€ image_0001.bin
β”‚   └── ...
└── ...


ImageNet (For Image)
β”œβ”€β”€ extracted_100_train
β”‚      β”œβ”€β”€ n01443537
β”‚      β”‚   β”œβ”€β”€ n01443537_2.JPEG
β”‚      β”‚   └── ...
β”‚      └── ...
└── extracted_100_val
       β”œβ”€β”€ ILSVRC2012_val_00000007.JPEG
       β”œβ”€β”€ ILSVRC2012_val_00000017.JPEG
       └── ...

N_ImageNet (For Event)
β”œβ”€β”€ extracted_100_train
β”‚      β”œβ”€β”€ n01443537
β”‚      β”‚   β”œβ”€β”€ n01443537_2.npz
β”‚      β”‚   └── ...
β”‚      └── ...
└── extracted_100_val
       β”œβ”€β”€ n01443537
       β”‚   β”œβ”€β”€ ILSVRC2012_val_00000236.npz
       β”‚   └── ...
       β”œβ”€β”€ n01616318
       β”‚   β”œβ”€β”€ ILSVRC2012_val_00000018.npz
       β”‚   └── ...
       β”‚ 
       └── ...

Data Path Change

datasets/caltech_event_ours_unpair_noise.py -L136: data_dir = "your caltech-101 path", event_dir = "your N-Caltech 101 path"

datasets/N_imagenet100_noise.py -L115: data_dir = "your ImageNet path", event_dir = "your N-ImageNet path"

Training & Test Code

Train & Test on N-Caltech 101 Dataset

    $ python pretraining_event_with_prototype_caltech.py -en $experiment_name$ -d caltech_ours --ssl_spatial --inverse --n_mask 6

Train & Test on N-ImageNet 100 Dataset

    $ python pretraining_event_with_prototype_imagenet.py -en $experiment_name$ -d imagenet100 --ssl_spatial --inverse --n_mask 6

You can also use the multi prototype by adding the --multi_proto

Reference

Hoonhee Cho*, Hyeonseong Kim*, Yujeong Chae, and Kuk-Jin Yoon "Label-Free Event-based Object Recognition via Joint Learning with Image Reconstruction from Events", In ICCV, 2023.

@inproceedings{cho2023label,
  title={Label-Free Event-based Object Recognition via Joint Learning with Image Reconstruction from Events},
  author={Cho, Hoonhee and Kim, Hyeonseong and Chae, Yujeong and Yoon, Kuk-Jin},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={19866--19877},
  year={2023}
}

Contact

If you have any question, please send an email to hoonhee cho ([email protected])

License

The project codes and datasets can be used for research and education only.

ev-lafor's People

Contributors

chohoonhee avatar

Stargazers

 avatar  avatar  avatar  avatar jihun1998 avatar Jaewoo Jeong avatar  avatar Minseok Kim  avatar Jae-Young Kang avatar zampa-zampa avatar changgyoon avatar Hoyong Kwon avatar zzk avatar chenk avatar  avatar  avatar Dachun Kai avatar Ziyun (Claude) Wang avatar Lingdong Kong avatar  avatar

Watchers

Mark_ avatar Lingdong Kong avatar  avatar chenk avatar

ev-lafor's Issues

Why Your Model Isn't Converging?

While running your code on the ImageNet dataset, I encountered persistent convergence issues with the model. I suspect the problem may arise from the code in Ev-LaFOR/datasets/N_imagenet100_noise.py at line 154, specifically with the line
img_dict.update({label : image_list})
The variable 'label' at this point seems to be associated with the label of the last class in the dataset due to variable lifespan. This doesn't result in an immediate error, but it is evident that this 'label' does not match the current data being load. My experimental results also support this observation. Should I consider changing the 'label' in this line and subsequent code to 'code'?

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.