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.
502
questions
0
votes
0
answers
13
views
CNTK - Faster RCNN Train with My Own Labels Data Set Can not Train More Than 20 Images
I'm working with CNTK Faster RCNN object detection and now I have been facing with problem.
To make you understand the problem, I will start with explain my work process from started.
First I follow ...
0
votes
1
answer
31
views
How to use two different Python Versions in the same File or Project?
I have written some code in cntk, which needs Python Version 3.6 or older. The problem is that I want to use this code in a Project, which only allows Python 3.8 or newer. What's the best solution to ...
0
votes
0
answers
21
views
MS Computer Numerical Toolkit (CNTK) Neural Network Application Crashing
I'm trying to run the MS CNTK neural network example found on this website:
https://mdfarragher.medium.com/use-c-and-a-cntk-neural-network-to-predict-house-prices-in-california-f776220916ba#:~:text=...
0
votes
1
answer
27
views
Getting multiple variables in TensorFlow and other frameworks (overheads)
If I have the following graph and want to get the values of tensors T1 and T2 in TF without eager execution, how would I do this? I only know of eval() or session.run() (running that twice could be an ...
0
votes
0
answers
82
views
Run keras model uses .net
I tried convert tf.keras model to cntk, but this does not work for me.
I used MMdnn: mmconvert -sf keras -iw genre_predictor.krs -df cntk -om genre_predictor.dnn
But he outputs this message:
...
1
vote
1
answer
196
views
CNTK NVidia RTX 3060 Cublas Failure 13 with layers larger than 512
I have a LSTM network with 2000 neurons in CNTK 2.7 using EasyCNTK C# which is working fine with CPU and with Gigabyte NVidia RTX 2060 6GB, but with Gigabyte NVidia RTX 3060 12GB I get this error if I ...
1
vote
2
answers
227
views
How to save CNTK model as ONNX in C#
The only function I know to save a trained model is trainer.SaveCheckpoint which can save the CNTK model, but I cannot find how to save the model to ONNX format in C#
On the documentation site here ...
1
vote
1
answer
231
views
Error installing CNTK on win10 via scripted install
I have been trying to install the CNTK via scripted install on windows 10 and have come across a strange error.
I got the install from https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-...
0
votes
1
answer
72
views
why Installed module in python throws error
I installed cntk module in my system but whenever I try to run a code it says no module found
import cntk as C
ModuleNotFoundError: No module named 'cntk'
1
vote
1
answer
321
views
Throw exception 'cuDNN failure 8: CUDNN_STATUS_EXECUTION_FAILED' in training ONNX's pretrained model Emotion FerPlus
I am testing to train Emotion FerPlus emotion recognition model.
Training has cuDNN failure 8: CUDNN_STATUS_EXECUTION_FAILED error.
I am using Nvidia GPU TitanRTX 24G.
Then change the minibatch_size ...
0
votes
0
answers
215
views
How to use CNTK as the backend of Keras on Google Colab?
After I set the backend of Keras to CNTK on Google Colab, getting the following warning and error despite I do not get any issues when I use TensorFlow or Theano as the backend of Keras:
/usr/local/...
0
votes
1
answer
247
views
When will CNTK wheel be released for Python 3.7?
I wanted to use cntk for anaconda,but on microsoft there is only link provided uptil version 3.5.
Is there any othetr way around that I can use cntk without downgrading python?
0
votes
0
answers
212
views
install CNTK on server
I am installing cntk on my server. (Only CPU version)
python version is 3.6.6
mpirun -V
mpirun (Open MPI) 3.1.1
I follow the instructions here and it is ok.
pip install https://cntk.ai/...
0
votes
1
answer
78
views
Are there syntax differences between using Keras with a Tensorflow 2, Theano, or CNTK backend?
It looks like tf.keras is suggested if you're using a Tensorflow 2 backend, but what about using Theano or CNTK as a backend? I have never used Keras or any DL library.
0
votes
1
answer
31
views
CNTK: ->Forward or ->Evaluate crash on some PCs, not on others
I am evaluating various neural networks created with CNTK from C++. Some are essentially AlexNet, others are V3-inception.
Everything runs fine on dozens and dozens of PCs. But I have found two ...
7
votes
1
answer
627
views
Why are deep learning libraries so huge?
I've recently downloaded all packages from PyPI. One interesting observation was that of the Top-15 of the biggest packages, all execept one are deep learning packages:
mxnet: mxnet-cu90 (600 MB), ...
2
votes
0
answers
151
views
Using CNTK from F#
I am trying to use CNTK from F#, I have added Cntk.Core.Managed-2.7 to my project (.NET framework 4.7.2 also tried under 4.5.0)
I only have the following code in Program.cs
let main argv =
...
0
votes
1
answer
39
views
Convert cntk model v1 to cntk model v2
I have trained a model using cntk brain script. I then needed to use my model in python. The problem is that models saved using brainscript are v1 models and have input nodes and output nodes saved. ...
0
votes
0
answers
42
views
Problem with defining softmax user function in cntk python api
I was following the cntk tutorial here https://github.com/microsoft/CNTK/tree/master/Examples/Speech/AN4/Python
I wanted to update to manipulate the SoftMax function, so that I can implement a ...
1
vote
0
answers
55
views
CNTK on Azure Function
I have simple azure function
public async Task Run(
[ServiceBusTrigger(
"%TopicName%",
"%SubscriptionName%",
Connection = "ServiceBusConnection")]
Message input,
...
0
votes
1
answer
1k
views
How to use Colab with Ubuntu 16?
I'm trying out CNTK on Google Colab, and Colab runs on Ubuntu 18.
However, CNTK requires OpenMPI 1.10.x, but this version of OpenMPI is only available on Ubuntu 16.
Is it possible to switch Colab to ...
1
vote
1
answer
224
views
Trouble implementing custom Negative Log-Likelihood loss in pet example
I am using a pet example to optimize the parameters of a dense layer connected to a softplus and outputing the parameters of a negative binomial distribution. My process has been:
1) Build a custom ...
0
votes
1
answer
21
views
Getting argument data's type Tensor[3,850,850] is incompatible with the type Tensor[3,370,1224] of the passed Variable on cntk
I am getting argument data's type Tensor[3,850,850] is incompatible with the type Tensor[3,370,1224] of the passed Variable error when running cntk's Fast RCNN sample code.
Sometime the number in ...
3
votes
0
answers
224
views
CNTK add a Bidirectional LSTM Layer
From here: Tutorial
I am asking how C# could implement such a function:
In Brainscript:
BiRecurrentLSTMLayer {outDim} = {
F = RecurrentLSTMLayer {outDim, goBackwards=false}
G = ...
1
vote
0
answers
158
views
I can't load pretrained CNTK model on C#
I use Microsoft CNTK technology to create a simple neural network. I managed to train the network, but I have problems with saving the model to a file and then loading it.
Step-by-step
First run ...
1
vote
1
answer
675
views
Installing CNTK on Ubuntu 18.04 for Python 3.6
I have installed CNTK on my ubuntu 18.04 for python 3.6 using pip. However, once I execute simple test, I'm getting an error.
Simple installation test:
python3.6 -c "import cntk; print(cntk....
0
votes
0
answers
39
views
Keras 2.2.4 runs slowly with backend cntk-gpu version 2.5.1
everyone. I have a problem when I use Keras with backend cntk-gpu version 2.5.1.
For some reason, I have to use cntk-gpu 2.5.1 as Keras backend and I have a piece of code with the core code as ...
0
votes
1
answer
96
views
CNTK: "inferred dimension cannot be calculated from input and new shape size."
I've set up a model for CIFAR-10 using Pytorch, and saved it as an ONNX file.
But it looks like I can't load it from CNTK.
I've already loaded another ONNX file from the same source code (by mistake)...
0
votes
1
answer
51
views
CNTK Python API: access layers after loading model
I can not access layers after loading the model.
I created the model as follows:
def create_model(vocab_dim, hidden_dim):
input_seq_axis1 = Axis('inputAxis1')
input_sequence_before = ...
2
votes
0
answers
108
views
Transfer learning with CNTK and pre-trained ONNX model fails
I'm trying to use the ResNet-50 model from the ONNX model zoo and load and train it in CNTK for an image classification task. The first thing that confuses me is, that the batch axis (not sure what's ...
-1
votes
1
answer
70
views
CNTK CMD RedirectStandardOutput = true not working
Microsoft have dropped CNTK for ML.NET ( Horrible product ) and ONNX ( Not yet looked at it ).
CNTK, best product Microsoft have Open Sourced, but lots of Bugs and Zero Support, sadly!
I reluctantly ...
1
vote
1
answer
22
views
CNTK sends an error regarding 'sequence.gather' operator
I am trying to create a model with 'sequence.gather' operator, but getting an error "Where operation can only operate on scalar input" when calling 'train_minibatch'.
input_seq_axis = Axis('inputAxis'...
17
votes
1
answer
4k
views
Has Microsoft abandoned CNTK?
I want to know if CNTK dead? Release notes on GitHub dated 03/31/2019: "Today’s 2.7 release will be the last main release of CNTK." I've spent months developing software using CNTK and now it appears ...
0
votes
1
answer
158
views
RuntimeError: Failed to parse Dictionary from the input stream
I'm completely new to cntk. I recently installed cntk 2.7 (GPU version) on my pc (windows 10,i5-7200U CPU) with GeForce 940MX GPU. I'm trying to set up cntk and the faster rcnn object-detection ...
1
vote
1
answer
82
views
CNTK Trainer for multiple Outputs
In the situation where CNTK has multiple Output Layers, should one Train with multiple Trainers?
List<Learner> learnersA = new List<Learner>() { Learner.SGDLearner(OutputLayerOne....
0
votes
1
answer
287
views
Windows application on Nvidia TX2?
I have code developed for windows 10 ( C++, GDI+, CNTK) that I wish to run on Nvidia TX2. Is it possible? Or must port to Linux?
3
votes
2
answers
114
views
How to feed data from a numpy array to train a CNTK regression model
I generated some random values inside a 1D numpy array and I'm trying to feed this data into a CNTK model I've created (codes below) to train it. But I'm getting different errors according my approach....
0
votes
1
answer
86
views
CNN Model overfitting and not learning correctly from OpenCV sequences when learning games
I'm trying to get a Convolution Neural Network up and running to be able to play the old NES Ice Climbers. Right now I have utilized OpenCV to capture the screen for inputs and the output is the ...
1
vote
1
answer
128
views
How to run Neural network developed in CNTK on a Azure Sphere board
I have a neural network developed using CNTK and I am looking for a way to have that neural network deployed on a Azure Sphere device. The network is an ANN and is not that compute intensive. Can ...
1
vote
1
answer
218
views
CNTK basic operation with c# following python example gives error
at this moment I'm struggling to not desperate just trying to convert this (from https://cntk.ai/pythondocs/gettingstarted.html#overview-and-first-run)
cntk.minus([1, 2, 3], [4, 5, 6]).eval()
which ...
2
votes
1
answer
174
views
CNTK Input Data Structure for example: CSTrainingCPUOnlyExamples
I am using the Example of CNTK: LSTMSequenceClassifier via the Console Application: CSTrainingCPUOnlyExamples, using the default data file: Train.ctf, it looks like this:
The Input Layer is dimension:...
0
votes
1
answer
141
views
CNTK C# - Connect output to specific layer input
I need to create 10 neurons each with 2 inputs. Each of these has an output that should be connected to a layer that has 10 inputs and an output.
My definition of input neurons:
Function in1 = Util....
0
votes
0
answers
187
views
CNTK Low GPU utilisation training via C++ API
I've written some fairly standard CNTK code to train a simple feed forward network using the C++ API. During training I get a speed up of about 4 times using GPU over CPU (CPU is 100% utilised) but ...
0
votes
1
answer
774
views
Source path inside jupyter notebook to other files
From a jupyter notebook, I would like to set up a location to other files already uploaded in Jupyter.
Here’s the code, I guess the line which is wrong is the first one:
location = os.path.normpath(...
0
votes
0
answers
214
views
How do I access the weights and layers of a pre-existing model using CNTK with C#?
Using CNTK and C#, I'd like to create class activation maps (CAM).
My model is a densenet model exported from Keras(Tensorflow backend) in ONNX format and I'm importing this in my Windows C# console ...
0
votes
1
answer
44
views
Can one mix data types in CNTK ElementSelect?
I'm trying to do the following in CNTK (in C#):
a = ElementSelect(x, y, z);
expecting something equivalent to a[i] = (x[i] != 0 ? y[i] : z[i]). However, for various reasons, x is Int8 whereas y and ...
1
vote
0
answers
64
views
Using Multiple GPUs (CNTK) with C++ cntk
I use the CNTK library for learning LSTM on a single CPU or GPU. I do not understand how to change my code and run training on multiple GPUs (CPU). My current code is:
labels = InputVariable({ ...
0
votes
3
answers
268
views
what is difference between CNTK and WIN ML
I know my question is basic one but I need some clarification.
CNTK is deep learning framework which I currently use, can be used to train and evaluate models on windows machine.
If I want to run my ...
0
votes
1
answer
48
views
CNTK - Weight update composes 90% of slow training time
When profiling CNTK training a variant of Alexnet, the results were as follows:
Description................ ............Mean ..........StdDev .............Min .............Max ...........Count ..........
3
votes
1
answer
5k
views
Cannot Install CNTK
When I try to install CNTK using pip, it gives me the following error - Could not find a version that satisfies the requirement cntk (from versions: )
No matching distribution found for cntk
I'm ...