Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR]: convert to kmodel fail #24

Open
haoshuiwuxiang opened this issue Nov 9, 2022 · 1 comment
Open

[ERROR]: convert to kmodel fail #24

haoshuiwuxiang opened this issue Nov 9, 2022 · 1 comment

Comments

@haoshuiwuxiang
Copy link

I used the docker image to run the train code ,and the train process is successful, but the kmode can't be made ,it report error.
The detail is list as :
2022-11-09 08:55:59,493 - [ERROR]: convert to kmodel fail
2022-11-09 08:55:59,493 - [ERROR]: failed: TrainFailReason.ERROR_INTERNAL, convert kmodel fail: output:
b''
error:
b"FailFast:\nCouldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.\n\n at System.Environment.FailFast(System.String)\n at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()\n at System.Globalization.GlobalizationMode..cctor()\n at System.Globalization.CultureData.CreateCultureWithInvariantData()\n at System.Globalization.CultureData.get_Invariant()\n at System.Globalization.CultureData.GetCultureData(System.String, Boolean)\n at System.Globalization.CultureInfo..ctor(System.String, Boolean)\n at System.Reflection.RuntimeAssembly.GetLocale()\n at System.Reflection.RuntimeAssembly.GetName(Boolean)\n at System.Reflection.Assembly.GetName()\n at System.Diagnostics.Tracing.EventPipeController.GetAppName()\n at System.Diagnostics.Tracing.EventPipeController..ctor()\n at System.Diagnostics.Tracing.EventPipeController.Initialize()\n at System.StartupHookProvider.ProcessStartupHooks()\n"

@alirezainallo
Copy link

hi
I think that have the same problem.
I do what this Doc say.
and i think that have problem in these two steps:
1)
Screenshot from 2023-05-27 14-01-40
2)
Screenshot from 2023-05-27 14-02-42

and try to train test_classifier_datasets for my first test, but don't return me .Kmodel file.
I use this command python3 train.py -t classifier -z datasets/test_classifier_datasets.zip train and return me this error:

2023-05-27 12:42:16,778 - [INFO]:  generate report image end
INFO:logger: generate report image end
2023-05-27 12:42:16,778 - [INFO]:  now generate kmodel
INFO:logger: now generate kmodel
2023-05-27 12:42:16,778 - [INFO]:  save model as .h5 file
INFO:logger: save model as .h5 file
2023-05-27 12:42:16,853 - [INFO]:  save model as .tflite file
INFO:logger: save model as .tflite file
2023-05-27 12:42:18.311221: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'inputs' with dtype float and shape [?,768]
	 [[{{node inputs}}]]
2023-05-27 12:42:19.756161: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'inputs' with dtype float and shape [?,768]
	 [[{{node inputs}}]]
WARNING:absl:Found untraced functions such as _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op while saving (showing 5 of 28). These functions will not be directly callable after loading.
2023-05-27 12:42:23.095415: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:364] Ignored output_format.
2023-05-27 12:42:23.095444: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:367] Ignored drop_control_dependency.
2023-05-27 12:42:23.095762: I tensorflow/cc/saved_model/reader.cc:45] Reading SavedModel from: /tmp/tmpwxcqtttf
2023-05-27 12:42:23.103238: I tensorflow/cc/saved_model/reader.cc:89] Reading meta graph with tags { serve }
2023-05-27 12:42:23.103259: I tensorflow/cc/saved_model/reader.cc:130] Reading SavedModel debug info (if present) from: /tmp/tmpwxcqtttf
2023-05-27 12:42:23.127064: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:353] MLIR V1 optimization pass is not enabled
2023-05-27 12:42:23.135190: I tensorflow/cc/saved_model/loader.cc:231] Restoring SavedModel bundle.
2023-05-27 12:42:23.286738: I tensorflow/cc/saved_model/loader.cc:215] Running initialization op on SavedModel bundle at path: /tmp/tmpwxcqtttf
2023-05-27 12:42:23.337088: I tensorflow/cc/saved_model/loader.cc:314] SavedModel load for tags { serve }; Status: success: OK. Took 241326 microseconds.
2023-05-27 12:42:23.448409: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:269] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable.
2023-05-27 12:42:23,699 - [ERROR]:  failed: TrainFailReason.ERROR_INTERNAL, node error:[Errno 13] Permission denied: '/home/alireza/Documents/maix_train/instance/../tools/ncc/ncc_v0.1/ncc'
ERROR:logger: failed: TrainFailReason.ERROR_INTERNAL, node error:[Errno 13] Permission denied: '/home/alireza/Documents/maix_train/instance/../tools/ncc/ncc_v0.1/ncc'

are you can solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants