TensorFlowNET:TransferLearningWithInceptionV3 示例中的 IndexOutOfRangeException

青葱年少 tensorflow 190

原文标题TensorFlowNET: IndexOutOfRangeException in TransferLearningWithInceptionV3 example

在执行 TransferLearningWithInceptionV3 期间,会抛出 IndexOutOfRangeException。

SciSharp-Stack-Examples 的版本自 2022 年 1 月 8 日起。

截图异常

原文链接:https://stackoverflow.com//questions/71449516/tensorflownet-indexoutofrangeexception-in-transferlearningwithinceptionv3-examp

回复

我来回复
  • Paltr的头像
    Paltr 评论

    在框架中,他们使用特征向量缓存并将其作为逗号分隔的浮点序列存储在 txt 中。

    但在我的文化中,小数分隔符也是逗号。所以这个文件被错误地读取了。

    如果应用用点分隔小数部分的区域性,则可以修复该错误:

    static void Main(string[] args)
    {
      Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB");
    
    2年前 0条评论