Code Monkey home page Code Monkey logo

skeleton-anonymization's Introduction

Anonymization for Skeleton Action Recognition

This repository is the official implementation of 'Anonymization for Skeleton Action Recognition' (AAAI2023)

Anonymization framework

Prerequisites

  • Python3
  • Pytorch
  • Run pip install -r requirements.txt for installing other python libraries
  • We use Wandb for experiment tracking

Compile cuda extensions

cd ./model/Temporal_shift
bash run.sh

Data Preparation

  • We use NTU RGB+D skeleton-only datasets (nturgbd_skeletons_s001_to_s017.zip).
  • After downloading datasets, generate the skeleton data with this command.
python data_gen/ntu_gendata.py --data_path <path to nturgbd+d_skeletons>

Training

To train the models in the paper, run this command:

python main.py --config ./config/train_adver_resnet.yaml
python main.py --config ./config/train_adver_unet.yaml

Pre-trained Models

We provide two pre-trained model with NTU60. You can download pretrained models here:

Model Anonymizer network Re-iden. acc. Action acc.
./save_models/pretrained_resnet.pt ResNet 4.20% 91.75%
./save_models/pretrained_unet.pt UNet 5.70% 91.45%

To test the pre-trained models given above, run this command:

python main.py --config ./config/train_adver_resnet.yaml
python main.py --config ./config/train_adver_unet.yaml

Also, we provide more privacy pre-trained models for test privacy model. You can find at /save_models/ntu_pretrained_x.

Acknowledgements

This code is based on Shift-GCN. Also, we use U-Net for anonymizer network. Thanks to the original authors!☺️

skeleton-anonymization's People

Contributors

saemi410 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

skeleton-anonymization's Issues

requirements and bush.sh

Hi authors, it's the nice code and a fantastic idea. But I have some problems at runtime, when I install the requirements, there are some links that always report errors. Besides, I can't find the bush.sh file.

Consultation on anonymization attributes

Great job, but I have a question that I don't quite understand. What are the anonymization attributes of this project, only gender? If you could help me, I would be grateful not only.

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.