Code Monkey home page Code Monkey logo

memorynet's Introduction

MemoryNet:Memory augument is All You Need for image restoration

Memory augument is All You Need for image restoration Memory是一个即插即用的记忆模块,随时提点! Paper link https://arxiv.org/abs/2309.01377

The structure of MemoryNet

image

Results of Shadow removal on ISTD dataset

image

Quick Run

To test the pre-trained models of Decloud on your own images, run

python demo.py --task Task_Name --input_dir path_to_images --result_dir save_images_here

Pretrained model

  1. Download the pretrained model cloud-removal

2.Baidu Drive: 链接:https://pan.baidu.com/s/1nBNEsRLIFS2VVtHl8O14Rw 提取码:5mli

Dataset

Download datasets RICE from here, and ISTD dataset from here

To reproduce PSNR/SSIM scores of the paper, run MATLAB script

evaluate_PSNR_SSIM.m

ACKNOLAGEMENT

The code is updated on https://github.com/swz30/MPRNet

memorynet's People

Contributors

zhangbaijin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

memorynet's Issues

关于训练的问题

您好,运行环境和原作者的运行环境是一样的吗?
在训练的时候是否出现了下面这种问题:
image

找不到文件

运行后报错,找不到文件
PS C:\Users\dell\Desktop\yhdd\test_cloud\MemoryNet-main> python demo.py --task Deraining --input_dir ./Test-image-RICE/cloudy_image --result_dir ./result/1.png
Traceback (most recent call last):
File "C:\Users\dell\Desktop\yhdd\test_cloud\MemoryNet-main\demo.py", line 52, in
load_file = run_path(os.path.join(task, "MPRNet.py"))
File "D:\yhdd\language\python\lib\runpy.py", line 288, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "D:\yhdd\language\python\lib\runpy.py", line 252, in _get_code_from_file
with io.open_code(decoded_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\dell\Desktop\yhdd\test_cloud\MemoryNet-main\Deraining\MPRNet.py'

demo的model是?

你好!我想直接用您train好的model来试试,但遇到了一些问题,还请指教!

To test the pre-trained models of Decloud on your own images, run

python demo.py --task Task_Name --input_dir path_to_images --result_dir save_images_here

这里必须指定的task,是Deblurring, Denoising和Deraining任选一个吗?它们对应的model是您提供的哪一个呢?我download下来的有三个model_best.pth, model_epoch_250_250.pth, model_latest.pth,不知该如何和这些task对应。谢谢!

Increase model capacity

Hi @zhangbaijin,

Thank you for your fantastic works!
I have tested your model on a customized dataset and it works very well. However, I realized two things:

  1. Doing the inference on resized image yielded much better results compared to inferencing on high resolution image using sliceding window. Though, during the training, you already used random cropping. Do you have any idea on this?
  2. It seems that this archecture does not work well with low-lightning images (please correct me if I'm wrong).

Additionally, I want to know if there is anyway to increase the model capacity? As well as changing the size of the receptive field?
Any guidance is priceless.
Thank you so much!

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.