Coder Social home page Coder Social logo

PyTorch implementation of One Shot Affordance Detection, completed as a part of the semester long project for the course Advanced Machine Learning (CS5824/ECE5424) at Virginia Tech (Fall-2022).

We have conducted our study by extending the work done in the following papers

  • One-Shot Affordance Detection (IJCAI2021) (link)

Authors: Hongchen Luo, Wei Zhai, Jing Zhang, Yang Cao, Dacheng Tao

  • One-Shot Affordance Detection in the Wild (IJCV) (link)

Authors: Wei Zhai*, Hongchen Luo*, Jing Zhang, Yang Cao, Dacheng Tao

Requirements

  • python 3.7
  • pytorch 1.1.0
  • opencv
  • scipy
  • matplotlib

Download the Dataset

  • You can download the PAD from [ Google Drive | Baidu Pan (z40m) ].
  • Create a datasets folder, and unzip the PAD dataset there.

Train

You have to download the pretrained resnet50 model from [ Google Drive | Baidu Pan (xjk5) ], then move it to the newly created models folder. Create save_models folder in the OSAD directory before training the model. Remember that in the OSAD directory os_ad_1.py, os_ad_2.py, and os_ad_3.py are three different models trained by us. Whichever model you want to train, just rename that model as os_ad.py. To train the models, execute run_os_ad.py script using the following command:

python run_os_ad.py   

Test

To test these models, execute run_os_ad.py script. Make sure in the save_models folder created before training the models, you are able to see model weights after each epoch:

python run_os_ad.py  --mode test 

Evaluation

In order to evaluate the results, go to the PyMetrics directory and run the requirements.txt file first by using the bash command:

pip install -r requirements.txt

Then go to the code folder and execute the test_metrics_3.py script:

python test_metrics_3.py

We have referred to the following public github repositories for reference

  • One-Shot Affordance Detection (IJCAI2021) (link)
  • One-Shot Affordance Detection Evaluation (link)

Contributors

Aruj Nayak's Projects

blogs icon blogs

Machine Learning Blogs on a variety of topics

numeval icon numeval

This project explores and evaluates different techniques, including Few-Shot Prompting and Fine-Tuning Large Language Models (LLMs), for generating numerically aware headlines

one_shot_affordance_detection_cs5824_ece5424 icon one_shot_affordance_detection_cs5824_ece5424

PyTorch implementation of One Shot Affordance Detection, completed as a part of the semester long project for the course Advanced Machine Learning (CS5824/ECE5424) at Virginia Tech (Fall-2022).

onlineretailrecommendationsystem icon onlineretailrecommendationsystem

The title of this project is - Translating Batch Processing to Stream Processing: Applications in Online Retail. This application is built as a part of the semester long project for the course Big Data Engineering (CS 5614) offered by Virginia Tech (Spring 2023)

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.