情報詳細Q:HALCON20.05 DeepLearning画像分類の学習プログラムをC#にエクスポートするとHOperatorSet.SetSystem("seed_rand", hv_SampleSeedsTrainRaw.TupleSelect(hv_BatchEnd));のコードにて【HALCON error #1402:Wrong number of values of control parameter 2 in operator set_system】のエラーが発生します。A:本エラーの要因としましてはプロシージャ:restore_dl_train_info_for_resumingにて本来出力されるべき変数StartEpochNumberが空のまま出力されることが要因となっております。※本エラーはHdevelopでは発生せず、エクスポートした場合のみ発生しますメソッド:restore_dl_train_info_for_resuming内にて明示的にhv_StartEpochNumber = 0;と記述し値を代入することで回避することが可能となっております。本現象はHALCON 20.05 Progressで確認できております。※現在のはHALCONのバージョンアップでは修正されております。以下MVTec原文************ Thank you for your patience in this case so far. We now have analyzed the problem and found the cause of the problem. The procedure restore_dl_train_info_for_resuming does not provide an output value for StartEpochNumber which leads to the error. In HDevelop this variable is set to 0 in this case, in C# it is undefined. As a workaround for the moment you can change the procedure and set this output value to 0 or to the provided StartEpoch at the beginning of this procedure. Then everything should work fine. We will discuss this problem and there will probably be a fix for this procedure in a future version of HALCON. We will also discuss if the code export should handle undefined output variables of procedures or if it is the responsibility of the procedure author to provide output values for all output variables.***********添付ファイルタイトルDeepLearning画像分類のプログラムをC#にエクスポートするとエラーが発生URL 名000006495公開状況公開済み検証状況公開済み