Questions tagged [cntk]

Microsoft Cognitive Toolkit (CNTK) is an open source library for commercial-grade distributed deep learning. It became open source in January 2016. In March, 2019, Microsoft announced that version 2.7 was to be the last release of CNTK.

Microsoft Cognitive Toolkit (CNTK) is an open source library for commercial-grade distributed deep learning. It describes neural networks as a series of computational steps via a directed graph. In this directed graph, leaf nodes represent input values or network parameters, while other nodes represent matrix operations upon their inputs. CNTK allows to easily realize and combine popular model types such as feed-forward DNNs, convolutional nets (CNNs), and recurrent networks (RNNs/LSTMs).

CNTK implements stochastic gradient descent (SGD, error backpropagation) learning with automatic differentiation and parallelization across multiple GPUs and servers. CNTK has been available under an open-source license since April 2015. It is our hope that the community will take advantage of CNTK to share ideas more quickly through the exchange of open source working code.

In March 2019, Microsoft announced that version 2.7 was to be the last release of CNTK.

More information

Blogs:

503 questions
5
votes
1 answer

is Cross Entropy With Softmax proper for Multi-label Classification?

As mentioned here, cross entropy is not a proper loss function for multi-label classification. My question is "is this fact true for cross entropy with softmax too?". If it is, how it can be matched with this part of the document. I should mention…
OmG
  • 18,337
  • 10
  • 57
  • 90
5
votes
1 answer

How to verify the usage of the GPU?

How can I verify that CNTK is using the GPU? I have installed the CNTK-2-0-beta7-0-Windows-64bit-GPU-1bit-SGD binaries on my machine. But, when I try to run this from Python: from cntk.device import set_default_device,…
OlavT
  • 2,496
  • 4
  • 31
  • 56
5
votes
2 answers

CNTK: A loss function for sequence to sequence processing

I'm doing a sequence-to-sequence model for phonemes alignment. Specifically my train data look like paired sequences (phoneme - length), where phoneme is a one-hot vector, and length is a float. So I want to feed the model with a phoneme sequence…
Mikhail
  • 1,223
  • 14
  • 25
5
votes
2 answers

What is the CNTK randomizationWindow behavior?

I have a quick question about the randomizationWindow parameter of the reader. It says in the documentation it controls how much of the data is in memory – but I’m a little unclear what effect it will have on the randomness of the data. If the…
Nathaniel Powell
  • 255
  • 3
  • 11
5
votes
1 answer

use cntk trained model with python

I have trained a model using CNTK, lets call simple.dnn now for the phase of testing I do not want to install CNTK on windows,but use trained model with python. How can I use trained model (weights,...) for testing using python?
RahimEnt
  • 199
  • 1
  • 1
  • 16
4
votes
1 answer

Why is import cntk as C not working in google colab

I installed opencv version 3.4.4, installed cntk,Importing into google collab gives the following results. import cntk as C /usr/local/lib/python3.6/dist-packages/cntk/cntk_py_init.py:56: UserWarning: Unsupported Linux distribution…
Malathi
  • 350
  • 1
  • 11
4
votes
1 answer

CNTK C# LSTM Examples

Where can I find well-documented samples of LSTM models using CNTK C# (many-to-many, many-to-one, regression, classification)? Do they exist? I have been trying to use CNTK in C# for about 4 months now, and it has been very hard to find good…
douglas125
  • 71
  • 1
  • 4
4
votes
1 answer

Load (pretrained) CNTK model using C#

I am using CNTK.GPU v2.2.0 and saved a model using the following method: model.Save(modelFilePath); Now I want to load it again and e.g. continue training or just evaluate samples. I can see two ways how this could be possible. One way works, but…
JFFIGK
  • 632
  • 1
  • 7
  • 24
4
votes
2 answers

CNTK Asymmetric padding warning

When creating a model in CNTK, with a convolutional layer, I get the following warning: WARNING: Detected asymmetric padding issue with even kernel size and lowerPad (9) < higherPad (10) (i=2), cuDNN will not be able to produce correct result.…
4
votes
1 answer

"Hello World" CTC (Connectionist Temporal Classification) model

I have created the following Python program, which, as far as I understand CTC, should be a valid CTC-based model, as well as training data. The best documentation I can find is CNTK_208_Speech_CTC Tutorial, which is what I've based this on. The…
Ben Harper
  • 2,350
  • 1
  • 16
  • 15
4
votes
3 answers

Keras-CNTK saving model-v2 format

I'm using CNTK as the backend for Keras. I'm trying to use my model which I have trained using Keras in C++. I have trained and saved my model using Keras which is in HDF5. How do I now use CNTK API to save it in their model-v2 format? I tried…
Lenni
  • 41
  • 2
4
votes
0 answers

Using CNTK's Fast R-CNN tutorial to detect Rotated Objects

I am using CNTK's implementation of Fast R-CNN(released on github). Selective Search was not giving me good Region Proposals, so I wrote something that better suited my data(I am dealing with scanned documents). My task is to identify WaterMarks in…
4
votes
1 answer

CNTK: How to define UpSampling2D

I'm wondering how to achieve UpSampling2D in CNTK. I cannot find such layer in the API. UpSampling2D is an opposite operation of pooling layers, and expand the data by repeating the rows and columns of the data. Here's keras/tensorflow API for…
Naoto Usuyama
  • 845
  • 1
  • 7
  • 13
4
votes
3 answers

Accessing learned weights of a DNN in CNTK

How can one access to the learned weights of a DNN saved as following: lstm_network_output.save(model_path)
chrisbasoglu
  • 357
  • 1
  • 9
4
votes
2 answers

What is the best way of combining clinical and Image data in a Deep Learning approach?

I have CT images from patients and applied a CNN to those images to predict diseases. I would like to combine my clinical data with my image data in a CNN approach, is that possible? My clinical data has information like age, sex, dates, smoker, all…
Lucas Ramos
  • 459
  • 4
  • 12
1
2
3
33 34