GithubHelp home page GithubHelp logo

frozenwolf-cyber / sam-pm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spidernitt/sam-pm

0.0 0.0 0.0 11.48 MB

๐Ÿ“œ [CVPRw] SAM-PM: Enhancing Video Camouflaged Object Detection using Spatio-Temporal Attention, Muhammad Nawfal Meeran, Gokul Adethya T, Bhanu Pratyush Mantha

License: Apache License 2.0

Shell 0.21% Python 85.41% MATLAB 14.38%

sam-pm's Introduction

SAM-PM: Enhancing Video Camouflaged Object Detection using Spatio-Temporal Attention

Muhammad Nawfal Meeran, Gokul Adethya T*, Bhanu Pratyush Mantha*


| [arXiv] | [Paper] |
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, 2024


Installation

The current code was written and tested on top of pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel docker. To install the dependencies, run the following:

pip install -r requirements.txt

Dataset

Download and setup the dataset using following cmd:

bash dataset_download.sh

Train

To train the model run both Stage 1 and 2 sequentially:

Stage 1:

python train.py

Stage 2:

Modify these parameters in config.py

num_epochs: 140
save_log_weights_interval: 20
train_metric_interval: 20
learning_rate: 5e-4
steps: []
stage1: True

and run:

python train.py

Test

To test the model run

python test.py --ckpt {Path to checkpoint}

Benchmark scores mentioned in the paper uses SLT's evaluation code which is given at eval/

For CAD/frog alone delete groundtruth images from 021_gt.png onwards since those are empty masks and they throw an error with the matlab code

Change the following paths according to where you are saving the predictions and where you have placed the dataset for main_CAD.m and main_MoCA.m:

resPath = ['../best/' seqfolder '/'] % Enter the path of the results

Before running the Matlab scripts make sure you have Deep Learning Tool box installed in Matlab. Run the following Matlab scripts:

main_CAD.m
main_MoCA.m

Citation

@InProceedings{Meeran_2024_CVPR,
    author    = {Meeran, Muhammad Nawfal and T, Gokul Adethya and Mantha, Bhanu Pratyush},
    title     = {SAM-PM: Enhancing Video Camouflaged Object Detection using Spatio-Temporal Attention},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
    month     = {June},
    year      = {2024},
    pages     = {1857-1866}
}

sam-pm's People

Contributors

frozenwolf-cyber avatar

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.