使用 CNTK 模型

Consuming CNTK Model

我是机器学习新手,一直在研究 CNTK 教程。我已经成功训练了几个模型。

我完成了迁移学习教程(https://github.com/Microsoft/CNTK/blob/v2.1/Tutorials/CNTK_301_Image_Recognition_with_Deep_Transfer_Learning.ipynb)并创建了一个花卉识别模型。

当我将此模型导入 CNTKAzureTutorial01 API 教程 (https://github.com/Microsoft/CNTK/tree/master/Examples/Evaluation/CNTKAzureTutorial01/CNTKAzureTutorial01) 时,它成功输出了密集的输出。

密集输出由 102 个小数组成的数组组成,我认为它与我的 102 个花卉类别的权重有关?我无法锻炼在哪里可以将数组中的这些值映射到花卉类别。例如数组[1] = 玫瑰,数组[2] = 郁金香。

我访问过数据所有者网站,虽然它列出了类别 (http://www.robots.ox.ac.uk/~vgg/data/flowers/102/categories.html),但我看不到这些类别如何映射到我的模型输出。思想可能是按字母顺序排列的,但那会在中途停止...... 我在 python 中输出了 2 个 .mat 文件,它们也没有解释任何内容。

有什么指点吗?

您需要在 Internet 上进行一些侦探工作才能找到它。这是对应于 类:

的名称列表

['pink primrose', 'hard-leaved pocket orchid', 'canterbury bells', 'sweet pea', 'english marigold', 'tiger lily', 'moon orchid', 'bird of paradise', 'monkshood', 'globe thistle', 'snapdragon', "colt's foot", 'king protea', 'spear thistle', 'yellow iris', 'globe-flower', 'purple coneflower', 'peruvian lily', 'balloon flower', 'giant white arum lily', 'fire lily', 'pincushion flower', 'fritillary', 'red ginger', 'grape hyacinth', 'corn poppy', 'prince of wales feathers', 'stemless gentian', 'artichoke', 'sweet william', 'carnation', 'garden phlox', 'love in the mist', 'mexican aster', 'alpine sea holly', 'ruby-lipped cattleya', 'cape flower', 'great masterwort', 'siam tulip', 'lenten rose', 'barbeton daisy', 'daffodil', 'sword lily', 'poinsettia', 'bolero deep blue', 'wallflower', 'marigold', 'buttercup', 'oxeye daisy', 'common dandelion', 'petunia', 'wild pansy', 'primula', 'sunflower', 'pelargonium', 'bishop of llandaff', 'gaura', 'geranium', 'orange dahlia', 'pink-yellow dahlia?', 'cautleya spicata', 'japanese anemone', 'black-eyed susan', 'silverbush', 'californian poppy', 'osteospermum', 'spring crocus', 'bearded iris', 'windflower', 'tree poppy', 'gazania', 'azalea', 'water lily', 'rose', 'thorn apple', 'morning glory', 'passion flower', 'lotus', 'toad lily', 'anthurium', 'frangipani', 'clematis', 'hibiscus', 'columbine', 'desert-rose', 'tree mallow', 'magnolia', 'cyclamen ', 'watercress', 'canna lily', 'hippeastrum ', 'bee balm', 'ball moss', 'foxglove', 'bougainvillea', 'camellia', 'mallow', 'mexican petunia', 'bromelia', 'blanket flower', 'trumpet creeper', 'blackberry lily']

this page

提供