Comparisons between string and double are not supported.

조회 수: 16 (최근 30일)
주영 이
주영 이 2021년 12월 4일
댓글: 주영 이 2021년 12월 6일
error: nnet.cnn.TrainingOptionsADAM
The value of 'ValidationData' is not valid. The datastore has an invalid transform function defined.
cause: Comparisons between string and double are not supported.
What should I change to fix this error?
  댓글 수: 4
Walter Roberson
Walter Roberson 2021년 12월 4일
편집: Walter Roberson 2021년 12월 4일
Please show us the code for preprocessData()
Also, please show us the value of nettotrain at the time that the assignment to preprocessdValidationData is made.

댓글을 달려면 로그인하십시오.

채택된 답변

Abolfazl Chaman Motlagh
Abolfazl Chaman Motlagh 2021년 12월 5일
in your code nettotrain is eather "YOLOv2" or "SSD", but in training process and preprocessData function and some other lines you check if it is 1 or 2. (that's why you get Comparisons between string and double are not supported)
if nettotrain == 1 %line 101
...
if nettotrain == 1 %line 115
...
if nettotrain == 2 %line 151
for this issue use strcmp (or just change nettotrain to 1 or 2 before all this problems).
for example:
if strcmp(nettotrain,"YOLOv2")

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by