Giter VIP home page Giter VIP logo

Comments (23)

 avatar commented on August 27, 2024

First step, I run GenerateTrainingPatches.m,Second step ,I run Demo_Train_model_64_25_Res_Bnorm_Adam.m to train.But I find data_size is NAN.what's wrong with it?
then I should run Demo_Test_model_64_25_Res_Bnorm_Adam.m?

from dncnn.

 avatar commented on August 27, 2024

By the way,if I just want to validate your code,could I run Demo_test_DnCNN.m directly? But PSNR and SSIM both are NAN.so,could you figure the problem?

from dncnn.

 avatar commented on August 27, 2024

maybe I solved above problem,but I met the follow problem :

>> Demo_test_DnCNN
引用了不存在的字段 'dilate'。

出错 vl_simplenn (line 303)
        'dilate', l.dilate, ...

出错 Demo_test_DnCNN (line 64)
    res    = vl_simplenn(net,input,[],[],'conserveMemory',true,'mode','test');

maybe I solved above problem,but

from dncnn.

cszn avatar cszn commented on August 27, 2024

Train400

See #11

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

hello , I run Demo_test_DnCNN.m , But PSNR and SSIM both are NAN.so,could you figure the problem?
and run DnCNN_train ,the result have error and is Input factor is insufficient DnCNN_train(line 75) net = vl_simplenn_tidy(net); can you help me

from dncnn.

ngcthuong avatar ngcthuong commented on August 27, 2024

I dont have this problem. It seems like you might have some problem with your training. How bout your training error? it should reduce around 1.0.

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

what is difference for 1.0 and 1.1? l run the 1.0 also have error.

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

l first run Demo_test_DnCNN3.m, the result is -----------------------------------------------
----BSD68------Gaussian Denoising-----

Average PSNR is NaNdB
Average SSIM is NaN

----Set5-----Super-Resolution-----

Average PSNR is NaNdB
Average SSIM is NaN

----Set14-----Super-Resolution-----

Average PSNR is NaNdB
Average SSIM is NaN

----BSD100-----Super-Resolution-----

Average PSNR is NaNdB
Average SSIM is NaN

----Urben100-----Super-Resolution-----

Average PSNR is NaNdB
Average SSIM is NaN

----classic5------Deblocking-----

Average PSNR is NaNdB
Average SSIM is NaN

----LIVE1------Deblocking-----

Average PSNR is NaNdB
Average SSIM is NaN

from dncnn.

ngcthuong avatar ngcthuong commented on August 27, 2024

For the NAN problem in version 1.1, you should (1) add the path to 'train400' data, then (2) run 'data\GenerateTrainingPatches.m', so that it will generate the training data for you. The training data is storaged in 'data\TrainingPatches\imdb_40_128.mat'. And please check your training data size 'imdb_40_128.mat' whether you really have the data or not.

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

thank you very much

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

wait , what is (1), 1.1 add or 1.0 add?

from dncnn.

ngcthuong avatar ngcthuong commented on August 27, 2024

You should add it for TrainingCodes_v1.1 since it doesn't have 'Train400' images in their 'data' folder. The 'Train400' images path is located in 'TrainingCodes_v1.0' folder.

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

OK, thank you

from dncnn.

moinul95 avatar moinul95 commented on August 27, 2024

Hi, I don't understand how the mat files in model are created. Can you please tell in what sequence the code should run?

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

hello. first, you should run Demo_test_DnCNN3. if you use GPU, ni should remove "%net = vl_simplenn_tidy(net);" "%", and if have error, in Demo_test_DnCNN3 add your vl_setupnn path. then run GenerateData_model_64_25_Res_Bnorm_Adam.

from dncnn.

moinul95 avatar moinul95 commented on August 27, 2024

I am actually new to deep learning. I didn't get how the models are created as .mat files. We need to run some code and then save it as mat file. Where is this code to create model? Thank you.

from dncnn.

cszn avatar cszn commented on August 27, 2024

@moinul95

save(modelPath(epoch), 'net')

from dncnn.

allenkate12 avatar allenkate12 commented on August 27, 2024

I am new to deep learning. how did u you resolve the data_size and data_meme NaN issue? @goonder .

from dncnn.

YananXM avatar YananXM commented on August 27, 2024

也许我解决了上面的问题,但我遇到了以下问题:

>> Demo_test_DnCNN
引用了不存在的字段 'dilate'。

出错 vl_simplenn (line 303)
        'dilate', l.dilate, ...

出错 Demo_test_DnCNN (line 64)
    res    = vl_simplenn(net,input,[],[],'conserveMemory',true,'mode','test');

也许我解决了上面的问题,但是

您好,我现在也遇到了同样的问题,请问您是怎么解决的。

from dncnn.

15230127713 avatar 15230127713 commented on August 27, 2024

I am new to deep learning. how did you resolve the data_size and data_meme NaN issue? @goonder @allenkate12

from dncnn.

chenjian123321 avatar chenjian123321 commented on August 27, 2024

from dncnn.

1804941502 avatar 1804941502 commented on August 27, 2024

maybe I solved above problem,but I met the follow problem :

>> Demo_test_DnCNN
引用了不存在的字段 'dilate'。

出错 vl_simplenn (line 303)
        'dilate', l.dilate, ...

出错 Demo_test_DnCNN (line 64)
    res    = vl_simplenn(net,input,[],[],'conserveMemory',true,'mode','test');

maybe I solved above problem,but

How can you solve this problem,could you tell me? I have met the same problem,my datasiaze is also NAN.

from dncnn.

YananXM avatar YananXM commented on August 27, 2024

from dncnn.

Related Issues (20)

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.