Giter Club home page Giter Club logo

deepfspis's Introduction

DeepFSPIS

This repository contains the official implementation of "Deep Flexible Structure Preserving Image Smoothing" [ACM DL][self-hosted], which appeared in ACM Multimedia 2022.

teasor

Demo is avaliable at here!

Code

The released checkpoints are trained with BSDS500 Train-set and the first 10000 image (in the ascending alphabetical order of their filename) from MS-COCO.

Dependencies

pytorch >= 1.6
torchvision
numpy

Component Drop

The code of our heuristic component drop can be found here.

Please install component drop first.

Training

First, download pre-computed edge maps from link and train adjuster as follows:

python train_adjuster.py --train_dir=<COCO training image dir> --edge_dir=<COCO_edge> --workdir=./train_adjuster

Then train smoother as follows :

python train_smoother.py --train_dataset_path=<COCO train image dir> --val_dataset_path=<COCO val image dir> --workdir=./train_smoother

Inference

Inference is quite simple, as the example below.

python batch_inference.py              \
       --save_dir=./result             \
       --batch_size=1                  \
       --checkpoints_dir=./checkpoints \
       --image_dir=./test_image        \
       --lamb=0.6,0.5,0.4  

You can also use our online demo at here

Results

The results on BSDS500 test/val sets can be found here.

deepfspis's People

Contributors

lime-j avatar

Stargazers

 avatar GuuJi avatar  avatar YuHeng avatar hanban avatar Qiming Hu avatar  avatar  avatar

Watchers

 avatar hanban avatar

deepfspis's Issues

training codes

Hi, thanks for sharing the codes! I wonder when will the training code be released?

Unexpected key(s) in state_dict: "up1.model.0.weight",

Unexpected key(s) in state_dict: "up1.model.0.weight", "up1.model.0.bias", "up1.model.1.pa0.weight", "up1.model.1.pa0.bias", "up1.model.1.pa1.0.weight", "up1.model.1.pa1.0.bias", "up1.model.2.ca0.weight", "up1.model.2.ca0.bias", "up1.model.2.ca1.weight", "up1.model.2.ca1.bias", "up1.relu.weight"

how to deal with this

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.