How can I remove this error ?

1 view (last 30 days)
Error using trainNetwork (line 184)
Conversion to single from uint8 is not possible.
Error in TLcode (line 27)
training= trainNetwork(trainingImages, layers, opt);
Caused by:
Error using cast
Conversion to single from uint8 is not possible.

Accepted Answer

Abhishek Kolla
Abhishek Kolla on 9 Nov 2021
Could you please provide a detailed explanation along with the code you have tried so that we can replicate the issue?
  1 Comment
Badavath Purnesh Singh
Badavath Purnesh Singh on 10 Nov 2021
The problem got resolved as I have restarted the matlab and ran the programme again. Thank you for asking.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!