Giter Site home page Giter Site logo

crf-net's Introduction

CRF-Net

This repository contains the code and supplementary materials for our paper titled "CRF-Net: Enhancing Semantic Segmentation using Conditional Random Fields and CNNs", which has been accepted at CVPR 2023 (Conference on Computer Vision and Pattern Recognition).

Abstract

In this paper, we propose a novel deep learning approach for semantic segmentation, which aims to assign semantic labels to each pixel in an image. Our method combines the power of convolutional neural networks (CNNs) and conditional random fields (CRFs) to achieve highly accurate and detailed segmentation results. We demonstrate the effectiveness of our approach on various challenging datasets, showcasing its potential for real-world applications.

Installation

To install and set up the required dependencies, follow these steps:

  1. Clone this repository: git clone https://github.com/daidshow/CRF-Net.git
  2. Install the necessary packages: pip install -r requirements.txt
  3. Download the pretrained models: Download Link
  4. Unzip the pretrained models and place them in the models/ directory.

Usage

To train and evaluate the semantic segmentation model, follow these instructions:

  1. Prepare your dataset by following the guidelines in data_preparation.md.
  2. Run the training script: python train.py --dataset /path/to/dataset --epochs 50
  3. Evaluate the trained model: python evaluate.py --dataset /path/to/dataset --model /path/to/model.pth
  4. Generate segmentation predictions on new images: python predict.py --image /path/to/image.jpg --model /path/to/model.pth

For more detailed usage instructions and options, please refer to the documentation.

Datasets

Please download the datasets and follow the instructions in data_preparation.md to preprocess the data.

Pretrained Models

We provide pretrained models for our approach, which can be downloaded from the following links:

To use the pretrained models, simply load them using torch.load() in your own code.

Citation

If you find our work helpful in your research, please consider citing our paper:


crf-net's People

Contributors

daidshow 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.