Code Monkey home page Code Monkey logo

oftta's Introduction

Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition [IMWUT/UbiComp 2024]

This is the official implementation for "Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition".

Installation:

Please create and activate the following conda envrionment.

# It may take several minutes for conda to solve the environment
conda create -y -n oftta python=3.9
conda activate oftta
pip install -r requirements.txt 

HAR Dataset

Three datasets (UCI-HAR, Opportunity, and UniMiB-SHAR) are utilized in the experiments. The pre-processed outcome can be downloaded from here. The datasets is adopt from GILE. Please save datasets under folder ./data.

Pre-trained Model

Since test-time adaptation needs pre-trained on source domains. We provide our used model in Table 4. You can download the model from here. Please save datasets under folder ./ckpt. If you want to train your model from scratch, you can refer to code for generalizable HAR.

Reproduce our results

To reproduce the leave-one-out adaptation results in Table 4, you just need:

bash adapt.sh

You can get the all results in Table 4.

Supported algorithms

We support all the TTA algorithms used in the paper. Feel free to adopt them on other types of dataset.

Title Venue
PL: Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks ICML Workshop 2013
SHOT: Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation ICML 2020
BN: Improving robustness against common corruptions by covariate shift adaptation NeurIPS 2020
TENT: Tent: Fully test-time adaptation by entropy minimization ICLR 2021
T3A: Test-Time Classifier Adjustment Module for Model-Agnostic Domain Generalization NeurIPS 2021
TAST: Test-time Adaptation via Self-training with Nearest Neighbor information ICLR 2023
SAR: Towards Stable Test-time Adaptation in Dynamic Wild World ICLR 2023

oftta's People

Contributors

claydon-wang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

oftta's Issues

I have encountered a code problem, can you help me solve it?

I have downloaded the data set as required and placed it in the corresponding folder.When I run it directly, the following error is displayed. Is there an unuploaded .py file?

FileNotFoundError: ./data/ucihar/train/InertialSignals/body_acc_x_train.txt not found.

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.