This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0G5187:关于特性识别 AI 模型的问题

Guru**** 2771175 points

Other Parts Discussed in Thread: MSPM0G5187

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1615113/mspm0g5187-quesiton-about-char-recognition-ai-model

器件型号: MSPM0G5187

您好、

客户希望更改 MSPM0G5187 参考设计中的特性识别特性模式(而非 0-9)。

我查看以下内容。  

https://github.com/TexasInstruments/tinyml-tensorlab/tree/r1.2

image.png

对于“1",“,客户、客户可以修改以下文件。

https://github.com/TexasInstruments/tinyml-tensorlab/blob/r1.2/tinyml-modelmaker/examples/MNIST_image_classification/config_image_classification_mnist.yaml

对于 2、我找不到字符识别的示例或我遗漏了一些内容。

image.png

您能告诉我在哪里可以找到它吗?

 

BR、

Frank

 

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Frank、我看到客户想要修改模型的输入参数。

    在图像分类中没有更改模型参数的具体示例。 他们可以使用您在 2 中显示的屏幕截图、并修改图像分类模型的任何参数、例如:

    Input_features=(28、28)、variable=1、num_class=10、with_input_batchnorm=True

    这可以是 YAML 文件的一部分、就像第二个屏幕截图中的文件一样。 创建此文件后、说“model_config.yaml";“;可以在  https://github.com/TexasInstruments/tinyml-tensorlab/blob/r1.2/tinyml-modelmaker/examples/MNIST_image_classification/config_image_classification_mnist.yaml 的第 27 行中使用此配置

    然后将其用作 model_config:/path/to/model_config.yaml

    此致、

    Adithya

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Adithya、

    我 按如下方式修改 MODEL_CONFIG.YAML。

    Input_features:(28、28)
    变量:1
    NUM_CLASS:10
    with_input_batchnorm:True

    但它显示错误。

    回溯(最近一次呼叫):
    中的文件“C:\Users\a0219317\Downloads\tinyml-tensorlab-R1.2 (1)\tinyml-tensorlab-R1.2\tinyml-modelmaker\tinyml_modelmaker\run_tinyml_modelmaker.py“、第 156 行
    主 (CONFIG)
    文件“C:\Users\a0219317\Downloads\tinyml-tensorlab-R1.2 (1)\tinyml-tensorlab-R1.2\tinyml-modelmaker\tinyml_modelmaker\run_tinyml_modelmaker.py“、第 96 行、位于 main 中
    model_runner.run()
    运行中的文件“C:\ti\Python310\lib\site-packages\tinyml_modelmaker\ai_modules\vision\runner.py“、第 191 行
    self.model_training.run()
    运行中的文件“C:\ti\Python310\lib\site-packages\tinyml_modelmaker\ai_modules\vision\training\tinyml_tinyverse\image_classification.py“、第 404 行
    train.run(args)
    文件“C:\ti\Python310\lib\site-packages\tinyml_tinyverse\references\image_classification\train.py“(第 672 行)正在运行
    main (0、args)
    文件“C:\ti\Python310\lib\site-packages\tinyll_tinyverse\references\image_classification\train.py“、第 501 行、位于 main 中
    model = models.get_model (
    get_model 中的文件“C:\ti\Python310\lib\site-packages\tinyml_tinyverse\common\models\___init__.py“、第 83 行
    model_config_dict.update (dict (variable=variables, num_classs=num_classs, with_input_batchnorm=with_input_batchnorm, input_features=input_features, dual_op=dual_op))
    属性错误:'STR'对象没有属性'update'

    有什么想法吗?

    BR、

    Frank

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您是否也在 config_image_classification_mnist.yaml 的“training"部分“部分通过了以下内容  

    model_config:/path/to/model_config.yaml

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Adithya、

    我只在下面补充。

    model_config.\examples\mnist image_classification\model_config.yaml
    我将 num_class 更改为 2 并可以传递编译。

    Input_features(28、28)
    变量:1.
    NUM_CLASS:2.
    with_input_batchnormtrue
    改回 10 后即可通过编译。

    Input_features(28、28)
    变量:1.
    NUM_CLASS10
    with_input_batchnormtrue
    所以、我认为它现在起作用了。
    BR、
    Frank
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    坦率地说、num_class 通常是从数据集本身推断出来的。 如果这是您要更改的唯一参数、则应让数据集中的 10 个类完成此操作、而无需更改此操作。