Error using dlnetwork and dlfeval
이전 댓글 표시
Hi,
I am only trying to recreate this example: https://www.mathworks.com/help/images/unsupervised-medical-image-denoising-using-unit.html
I get this error :

답변 (1개)
Abolfazl Chaman Motlagh
2022년 9월 15일
0 개 추천
the image or images you're forwarding through dl network is colored ( has 3 channels - RGB most probably). try rgb2gray function on your dataset for set channel dimension to 1.
댓글 수: 8
Abu Yusuf
2022년 9월 20일
Abolfazl Chaman Motlagh
2022년 9월 20일
there are 6 supporting functions at the end of the page. including 'modelGradientGen' (https://www.mathworks.com/help/images/unsupervised-medical-image-denoising-using-unit.html)
copy all of them at the end of your script and run it again.
(or for each one create a .m file with it's name to use it as function.)
these functions are used inside the scripts but apparently you didn't include them, that's why you get this error.
Abu Yusuf
2022년 9월 20일
Abolfazl Chaman Motlagh
2022년 9월 20일
if you can ,attach your script. maybe i could help.
Abu Yusuf
2022년 9월 21일
Abolfazl Chaman Motlagh
2022년 9월 21일
you miss modelGradientGen function in supporting functions. Try attached code.
Abu Yusuf
2022년 9월 22일
Abolfazl Chaman Motlagh
2022년 9월 22일
that shouldn't be possible :) (because the error is "there is no modelGradientGen value or function but we just add it!)
ok. fix your own code by adding modelGradientGen to supporting functions yourself. and run it.
카테고리
도움말 센터 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
