Error using dlnetwork and dlfeval

回答 (1 件)

Abolfazl Chaman Motlagh
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
Abu Yusuf 2022 年 9 月 20 日
thanks for your response, i convert my dataset by rgb2gray function, and I get this error :
Abolfazl Chaman Motlagh
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
Abu Yusuf 2022 年 9 月 20 日
I already included them
Abolfazl Chaman Motlagh
Abolfazl Chaman Motlagh 2022 年 9 月 20 日
if you can ,attach your script. maybe i could help.
Abu Yusuf
Abu Yusuf 2022 年 9 月 21 日
Abolfazl Chaman Motlagh
Abolfazl Chaman Motlagh 2022 年 9 月 21 日
you miss modelGradientGen function in supporting functions. Try attached code.
Abu Yusuf
Abu Yusuf 2022 年 9 月 22 日
i still get the same error
Abolfazl Chaman Motlagh
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 ExchangeData Import and Analysis についてさらに検索

タグ

質問済み:

2022 年 9 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by