示例#1
0
 void updateLabels(DatasetFactory factory)
 {
     for (int i = 0; i < m_parser.Labels.Count; i++)
     {
         factory.UpdateLabelName(i, m_parser.Labels[i]);
     }
 }
        void updateLabels(DatasetFactory factory)
        {
            Dictionary <int, string> rgLabels = new Dictionary <int, string>();

            rgLabels.Add(0, "airplane");
            rgLabels.Add(1, "automobile");
            rgLabels.Add(2, "bird");
            rgLabels.Add(3, "cat");
            rgLabels.Add(4, "deer");
            rgLabels.Add(5, "dog");
            rgLabels.Add(6, "frog");
            rgLabels.Add(7, "horse");
            rgLabels.Add(8, "ship");
            rgLabels.Add(9, "truck");

            for (int i = 0; i < rgLabels.Count; i++)
            {
                factory.UpdateLabelName(i, rgLabels[i]);
            }
        }