Skip to content Skip to sidebar Skip to footer
Showing posts with the label Deep Learning

Pytorch Most Efficient Jacobian/hessian Calculation

I am looking for the most efficient way to get the Jacobian of a function through Pytorch and have … Read more Pytorch Most Efficient Jacobian/hessian Calculation

Find Number Of Non-zero Elements In A Tensor Along An Aixs

I want to find the number of non-zero elements in a tensor along a particular axis. Is there any Py… Read more Find Number Of Non-zero Elements In A Tensor Along An Aixs

How To Split Dataset Into K-fold Without Loading The Whole Dataset At Once?

I can't load all of my dataset at once, so I used tf.keras.preprocessing.image_dataset_from_dir… Read more How To Split Dataset Into K-fold Without Loading The Whole Dataset At Once?

Python : Attributeerror: 'str' Object Has No Attribute 'keys'

I'm trying to solve classification problem. I don't know why I'm getting this error: At… Read more Python : Attributeerror: 'str' Object Has No Attribute 'keys'

Use Different Target Vectors For Cnn

I wish to use different target vectors (not the standard one-hot encoded) for training my CNN. My i… Read more Use Different Target Vectors For Cnn

How To Fix ''valueerror: Input 0 Is Incompatible With Layer Flatten: Expected Min_ndim=3, Found Ndim=2" Error When Loading Model

I'm trying to save and load my keras model. It trains, evaluates, and saves fine (using .h5 to … Read more How To Fix ''valueerror: Input 0 Is Incompatible With Layer Flatten: Expected Min_ndim=3, Found Ndim=2" Error When Loading Model

Initial Weights In Network With Keras / Tensorflow

I am trying to get the initial weights for a given network. This thread suggests that one needs to … Read more Initial Weights In Network With Keras / Tensorflow

Unable To Read From Tensorflow Tfrecord File

I am able to create the tfrecords file by using the below code. def _int64_feature(value): ret… Read more Unable To Read From Tensorflow Tfrecord File

How To Make The Generated Data In Remote Worker Span Iterations In In-graph Replica In Distributed Tensorflow?

I use the in-graph replication of tensorflow to do distributed training. For reducing communicaiton… Read more How To Make The Generated Data In Remote Worker Span Iterations In In-graph Replica In Distributed Tensorflow?

Uninitialized Value Error While Using Adadelta Optimizer In Tensorflow

I am trying to build a CNN using Adagrad optimizer but am getting the following error. tensorflow.p… Read more Uninitialized Value Error While Using Adadelta Optimizer In Tensorflow

Creating A Multi-channel Network: 'concatenate' Object Has No Attribute 'shape'

I'm trying to make a multiple input model as follow but am having trouble defining the followin… Read more Creating A Multi-channel Network: 'concatenate' Object Has No Attribute 'shape'

Runtimeerror: Given Groups=1, Weight Of Size [64, 3, 7, 7], Expected Input[3, 1, 224, 224] To Have 3 Channels, But Got 1 Channels Instead

In the code below: model_ft.eval() test_data, test_target = image_datasets['train']… Read more Runtimeerror: Given Groups=1, Weight Of Size [64, 3, 7, 7], Expected Input[3, 1, 224, 224] To Have 3 Channels, But Got 1 Channels Instead

Importerror: Cannot Import Name 'keras_tensor' From 'tensorflow.python.keras.engine'

I'm getting this error while loading the tensorflow addons library import tensorflow_addons as … Read more Importerror: Cannot Import Name 'keras_tensor' From 'tensorflow.python.keras.engine'

Adding Regularizer To Skflow

I recently switched form tensorflow to skflow. In tensorflow we would add our lambda*tf.nn.l2_loss(… Read more Adding Regularizer To Skflow

Error While Running Tensorflow A Second Time

I am trying to run the following tensorflow code and it's working fine the first time. If I try… Read more Error While Running Tensorflow A Second Time

"loss Is Nan" Error In Keras, How To Debug?

I know there are other questions here with the 'Loss is NaN', but I'm working with exam… Read more "loss Is Nan" Error In Keras, How To Debug?

How To Train And Test Lenet Using Caffe Using Python

I am new to caffe and Machine learning algorithms. Are there any tutorials to train and TEST LeNet … Read more How To Train And Test Lenet Using Caffe Using Python

Keras Cnn Training Accuracy Is Good But Test Accuracy Is Very Low

Please give me any comment for these CNN results. I have used 2000 training images and 400 test ima… Read more Keras Cnn Training Accuracy Is Good But Test Accuracy Is Very Low

Tensorflow - Convolutonal Neural Network With Custom Data Set Does Not Learn

I am trying to make a convolutional neural network for custom data set. The classifier has only two… Read more Tensorflow - Convolutonal Neural Network With Custom Data Set Does Not Learn

Runtimeerror: Mat1 Dim 1 Must Match Mat2 Dim 0 With Addition Of Data Augmentation

I am getting this error in the training loop. The model was training fine before I added an augment… Read more Runtimeerror: Mat1 Dim 1 Must Match Mat2 Dim 0 With Addition Of Data Augmentation