Skip to content

TungChintao/DK-Adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Knowledge Adapter with Probabilistic Calibration for Generalized Few-Shot Semantic Segmentation [CVPR 2024 Workshop]

Description

This repository contains separate environments for training and testing machine learning models, each with its own requirements file for ease of setup and independent use.

Setup

Environment Setup

To ensure each part of the project runs smoothly, the training and testing environments are separated. Install the required dependencies for each by navigating to the respective directory and running:

pip install -r requirements.txt

Dataset Preparation

  1. Divide the dataset into trainset and valset.

Data Processing

  1. Run data processing: Execute data_processing.py to crop each 1024x1024 image and its corresponding label into four 512x512 images.

    python data_processing.py

Training

  1. Start training: Navigate to the training directory and run:

    bash train.sh

Testing

  1. Conduct testing: A pre-trained .pth file has been provided for immediate testing. It is stored in the Test/pretrain/ directory.

    bash test.sh

About

[CVPR 2024 Workshop] Dynamic Knowledge Adapter with Probabilistic Calibration for Generalized Few-Shot Semantic Segmentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors