Git Product home page Git Product logo

secnet's Introduction

SECNet✨

Semantic Element Consistency Learning. This is the evaluation code for SECNet using PyTorch.

Framework

Installation

Dependencies

This code is designed to run on Ubuntu. You will need to prepare the following:

  1. Visit Link (Due to anonymous submission, link will be available soon) to download ALPRO_model.pt, SECNet_model.pt, bert-base-uncased.zip, vit_base_patch16_224.zip, and ext.zip to the root directory. Unzip the corresponding files. 
  2. Download videos.pt and place it in the data/msrvtt_ret/

The final directory structure should look like this:

- SECNet  
  - bert-base-uncased  
  - config_release  
  - data 
    - msrvtt  
      - txt
      - videos
  - ext
  - output
  - run_scripts
  - src
  - vit_base_patch16_224
  - ALPRO_model.pt
  - SECNet_model.pt

Installation Steps

conda create -n SECNet python=3.7
pip install cmake==3.13.0
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia 
pip install horovod
pip install -r requirements.txt 

Training SECNet

conda activate SECNet
cd run_scripts
bash pt_SECNet.sh

Zero-shot Retrieval Test

conda activate SECNet
cd run_scripts
bash inf_msrvtt_ret.sh

You can modify e2e_weights_path in config_release/msrvtt_ret.json to ALPRO_model to obtain test results for ALPRO. 

secnet's People

Contributors

mayingwuhu avatar

Watchers

 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.