Giter Club home page Giter Club logo

bisr's Introduction

BiSR

Official implementation of Bilateral Upsampling Network for Single Image Super-Resolution with Arbitrary Scaling Factors(PyTorch)

Our code is built on EDSR(PyTorch) and Mata-SR.

avatar

Requirements

  • Pytorch 1.5.0
  • Python 3.7
  • numpy
  • skimage
  • imageio
  • cv2

Install and run demo

  1. download the code
git clone https://github.com/Merle314/BiSR
cd BiSR/src
  1. run training demo:
python3 main.py --save RBiRDN_BI --model RBiRDN --epochs 2000 --batch_size 16 --patch_size 50 --save_models --save_results --reset --ext sep --GPU_ids 0,1,2,3 --pre_train ../pretrain/RBiRDN_BI/model/model_latest.pt 

  1. run test demo:
  • download the model from the BaiduYun fetch code: p70u
python3 main.py --model RBiCARN --ext img --save RBiCARN_BI_Test_Urban100 --GPU_ids 0 --batch_size 1 --test_only --data_test Urban100 --pre_train ../pretrain/BiCARN_BI/model/model_latest.pt --save_results

Train and Test as our paper

  1. prepare dataset
  • download the dataset DIV2K and test dataset fetch code: ev7u GoogleDrive
  • change the path_src = DIV2K HR image folder path and run /prepare_dataset/generate_LR_metasr_X1_X4_idealboy.m
  • upload the dataset
  • change the dir_data in option.py: dir_data = "/path to your DIV2K and testing dataset'(keep the training and test dataset in the same folder: test dataset under the benchmark folder and training dataset rename to DIV2K, or change the data_train to your folder name)
  1. pre_train model for test BaiduYun fetch code: p70u
    GoogleDrive

train

cd BiSR/src 
python3 main.py --save RBiRDN_BI --model RBiRDN --epochs 2000 --batch_size 16 --patch_size 50 --save_models --save_results --reset --ext sep --GPU_ids 0,1,2,3 --pre_train ../pretrain/RBiRDN_BI/model/model_latest.pt 

test

python3 main.py --model RBiCARN --ext img --save RBiCARN_BI_Test_Urban100 --GPU_ids 0 --batch_size 1 --test_only --data_test Urban100 --pre_train ../pretrain/BiCARN_BI/model/model_latest.pt --save_results

Citation

bisr's People

Contributors

merle314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yycocl

bisr's Issues

Recursive Bilateral Upsample

Thanks for sharing your works. I have a question about where is the code of Recursive Bilateral Upsample? I just find the code of Bilateral Upsample.

Without utility

import utility is error, but project without utility.....

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.