Coder Social home page Coder Social logo

mivrc / mlefgn-pytorch Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 3.0 228.76 MB

This repository is a PyTorch version of "Soft-edge Assisted Network for Single Image Super-Resolution". (IEEE TNNLS 2020)

MATLAB 5.88% Python 86.55% Jupyter Notebook 7.57%
mlefgn image-denoising tnnls tnnls2020

mlefgn-pytorch's People

Contributors

cv-junchengli 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

Watchers

 avatar  avatar  avatar

mlefgn-pytorch's Issues

Does it work in medical dataset?

Hello ,my research interest is X-ray imaging and its applications.I want to use your code CT projection denoising because the excellent results in your paper.But what confusing me is that the data value fluctuate around 1.just like 1.000058 or 0.999954.
At the first,i tried tranforms my data to .png,it does works,resuls is pretty good.But the value is between 0-255,it can't reconstructed successfully because it losses many information.And I tried modify the code to input a matrix output a matrix with my true data value without normalized.But the L1 loss is too small and soon to zero.

Can you tell me how can I solve this issue?Like use normalization before the training or modify the loss function.Or if you are intrested in my area we can incooperate to do more thing.Like we can provide simulation and experimental dataset include attenution-based \phase contrast CT and expert knowledge. you can give us some advice about machine learning.
Best regards.

The model I trained is the model of edge detection

Use the following command:
python main.py --template MLEFGN --save MLEFGN_Gray_15 --scale 1 --reset --save_results --patch_size 64 --ext sep_reset
I got model_best.pt from Train/experiment/MLEFGN_Gray_15/model
But,when I use the following command to test,
python main.py --data_test MyImage --scale 1 --model MLEGN --pre_train ../model/model_best.pt --test_only --save_results --chop --save "MLEFGN_Gray_15" --testpath ../LR/LRBI --testset Set12
I got an edge detection image.
0801x1

How can I get a image denoising model?

Some questions about loss function

I see you have many loss function can be chosen,like adversarial loss and vgg loss.

And you also said it's not a GAN-based model,does it means if I use the adversarial loss,the original model MLEFGN can be seen as the 'generator',it generates the image to the discrimator.

And does the vgg loss means the perceptual loss ? But i didn't seen any pretrained model like vgg-19.

Thanks !

can't find Prepare_TestData_HR_LR.m for test and some problem

i've been successfully training in your default setting,but when i want to test,i can't find the .m doc.

And interestingly,i find the WGAN in the loss function,but i don't see it in u network,does it means even without the generator one can still use the adversial loss?

thank u very much.wonderful work

How does Edge-Net works?

Hello,I read your paper throughly in a couple days, and run your code successfully,the result is amazing,but what confuse me is that the design of your Edge-Net.It seems like a common feature extraction or mapping network.

(Sorry I am new to this area,maybe have some inaccuracy description )

I wonder know how you eliminate low-frequency features and image noise simultaneously and remain the edge information.As I know the noise and edge information both are high-frequency features.

How to run test code?

I made an environment with pytorch 0.4.1 and python 3.6 on ubuntu 18.
But i cannot run test code, I followed your instruction but i met the following message:
Exception has occurred: AttributeError
module 'model' has no attribute 'Model'
File "/.../MLEFGN-PyTorch-master/TestCode/code/main.py", line 15, in
model = model.Model(args, checkpoint)

What is the reason?
Please help me.

Can't reproduce test result

Hi, I'm trying to reproduce the testing result, but currently all I get is bizarre images as I show below. I'm using pre-trained model and testing data that already inside the repo.
My Environment:
Ubuntu 18.04
python 3.6.13
pytorch 0.4.0
torchvision 0.2.0
cuda 9.0

Command I run:

python main.py --data_test MyImage --scale 1 --model MLEFGN --pre_train ../model/15_gray.pt --test_only --save_results --chop --save "MLEFGN_Gray_15" --testpath ../LR/LRBI --testset Set12 --cpu

Input image:
0805x1_ori
Output images(denoised):
0805x1

Loss keeps increasing until it becomes 'nan'

When I was tring to train the model with gray-scaled images, I put the gray-scaled images and noisy images into folders of "DIV2K_train_HR" and "DIV2K_train_LR_bicubic/x1". The code seems running, however, the loss just keeps increasing during the training, and becomes "nan" finally after about 50 epochs of training. Maybe I have made something wrong about the training data? Can you provide some suggestions about this? Thanks.

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.