
I am trying to implement a Multilayer Perceptron through the Keras package (and tensorflow) to run a fast MLP. I want to use Bayesian Optimization to train the algorithm's hyperparameters. I get an ...

I'm want to train my model with Keras. I'm using a huge dataset Where one training epoch has more than 30000 steps. My problem is that I don't want to wait for an epoch before checking the model ...

I'm trying to trace the code for DeepSpeech to learn about its inner working and it's using Tensorflow. And for that I'm using Pycharm.
After some hassle, I managed to setup the environment so now I ...

Preferably I'd like to pursuit this in the simplest way possible as i am just a beginner.
I am basically going for something like mobilenet, but i want the images it detects to focus only on birds. ...

I am trying to use the device camera from IOS/Android. I wish to obtain the video stream and pass it to tensorflow and detect faces. I have achieve this in windows using python+opencv+tensorflow. Now ...

https://colab.research.google.com/drive/1_YW_Afi0yZS5wJQxJbHXddezIppZFUL_
model = tf.keras.Sequential([
tf.keras.layers.LSTM(5, return_sequences=True, dropout=0.2),
tf.keras.layers....

I'm running style transfer in ios following tensoeflow examples,i did strictly following this build and run:
Build and run
1.Clone the TensorFlow examples GitHub repository to your computer to ...

I wrote a biclassification model for detect airplane in photos based on FastRCNN, train datasets are generated by Selective Search, when I use datasets with a Negative/Positive ratio about 1, the ...

I am trying to build my custom activation function with the below code, but it gives the error:
"TypeError: Using a tf.Tensor as a Python bool is not allowed. Use if t is not None: instead of if t: to ...

Is there any way to install Cuda on machine that have NVIDIA GP100GL (Tesla P100 SMX2 16GB) ? I will use this machine for running TensorFlow and Keras.
I tried to install it using the following but I ...

I can't seem to find a reliable version of MaskRCNN for TensorFlow 2. The matterport maskrcnn (https://github.com/matterport/Mask_RCNN) has depreciated Tensorflow 1 code. Does anyone know of ...

I'm completely new to swift for TF, but find it interesting and wanted to try it out. I downloaded it and tried to used it in Xcode but always get a "Abort trap 6" error while building.
Here's my ...

I have a file structure that looks something like this:
Master:
First
train.py
other1.py
Second
train.py
other2.py
Third
train.py
other3.py
I want to be able to have one Python script that ...

I'm using the following code to create a custom loss function,
@tf.function
def custom_loss(self, y_true, y_pred):
mask_shape = tf.shape(y_true)[:4]
cell_x = tf.cast(tf.reshape(tf.tile(tf....

It's a crossplatform project in VS 19, but for now, I'm starting with Android.
I have found tons of repos. of apps that open the native camera software of your device and then analyze it, and throw ...

When defining a model, it is possible to apply sample weight in tensorflow keras. According to the documentation, this sample weight is applied on the test samples. However, how can I apply sample ...

I pretty new in Python programming and I try to run some DCGAN Training scripts
https://github.com/ml5js/trainingdcgan
After creating my environment with conda and build all the dependencies , I ...

I want to build a Matlab GUI app to make predictions and plotting graphs. Is this possible in Matlab using a model saved as HDF5 format? How do I import it and use it to build the app? Any ideas would ...

first time posting here ! If my question is lacking anything please tell me and I'll fix it !
Facebook recently released DETR, an object detection model using transformers ! The model is implemented ...

There are plenty good tutorials on building a tensorflow model and I achieved creating a model with good accuracy. However, there are 2 questions left.
In my dataset there are plenty of classes, I ...

I am working with some data that contains some features in some continues days and the shape of the array of each of these data is as below:
(number of days, 1, number of features)
Number of ...

I was studying how to do transfer learning in TF 2 and I saw that at this tutorial from Tensorflow they use the attribute trainable_variables to reference the trainable variables of a model but in ...

I am trying to train my neural network, which is written in PyTorch, but I got the following traceback because of incorrect dimensions. Got the following traceback
Traceback (most recent call last):
...

I am trying to use tensorflow and keras "learn" and insertion function in a model. My problem is tf.gradienttape doesn't seem to record the gradient of the NN weights.
First an overview of the model
...

I know that this is (sort of) a duplicate question, however the original has no activity and remains unanswered.
My problem is that I have installed tensorflow for python 3.7.5 and upon installation (...

I am using Tensorflow to minimize a function. The function takes about 10 parameters. Every single parameter has bounds, e.g. a minimum and a maximum value the parameter is allowed to take. For ...

I have CNN project on Signature Identification, but I got error like the title,
Here is the code
#import lib
import numpy as np
import cv2
import matplotlib.pyplot as plt
import os
import time
#...

I am trying to run TensorFlow object detection API in jupyter notebook but I faced with this problem "cannot import name 'path_to_str". anybody can help me.
26 from tensorflow.python.util.compat ...

My input shape is (150,10,1) and my output has the same shape (150,10,1). My problem is multiclassification (3 classes). After using np_utils.to_categorical(Ytrain) the output shape will be (150,10,3)...

I found a code that uses tensorflow 1.4 low level api for create CNN. I want to convert this model to tensorflow 2 based on keras.
but any attemp was faild. I used tf_upgrade_v2 script to update but I ...

In my input_shape there is a variable x that goes from 0 to 100, and I want to separate the neural network such that for values smaller than 50 it uses some weights and for values bigger than 50 it ...

I'm using TF2 on Google Colab and a pretrained Huggingface transformers for text classification. I wanted to used transfer learning, so I added a few more layers on their DistilBERT model.
import ...

Trying a 2 input model, one from image generator and one from a dataframe.
X_train = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
columns=['featureA', 'featureB', '...

I am building a LSTM model multi class classification which will classify text in one out of 4 classes. But it is not giving good accuracy.Even if it gives good accuracy prediction is getting wrong.
...

I'm trying get flatten layer as input to convd2d and predicting the output for 10 class classification problem on Densenet with cifar10 dataset.
following code snippet where I'm getting the error.
...

Is it normal to have the learn throughput decrease and the learn time increase as a Dueling DDQN agent gets trained?
A 7X increase in learn time after a few hours of training is pretty significant, ...

I'm trying to train a model using Tensorflow 2. I'm getting resource out of memory error. After going through various docs, I used the following code to fix it,
gpus = tf.config.experimental....

I'm making a model that takes a grayscale image and returns a rgb image. Now I'm using MSE as loss function but I think that this isn't a good choice. Which loss function is better to use in this type ...

I am using tensorflow Object Detection API 1.13 version, I took the pre trained ssd_inceptionv2_coco model from tensorflow object detection model zoo and want to train my 200 custom images of two ...

I try to test cyclegan program in python3.7 with tensorflow2.2.
and When I load cyclegan h5 weights files , It's showed warning message to me.

I'm working on a model to generate music. All of my training data is in the same key and mode, C Major. I have a numpy array keyspace with shape (n,) that represents the total number of keys on my ...

I'm working with tensorflow on an image project and with the AdamOptimizer. It is basically a style transfert project. For several reasons I need to update all the pixels/values of my images one part ...

I am using tf.distribute.MirroredStrategy() to train the textcnn model, but when I set vocab_size=0 or other wrong values, no error will be reported in this mode. When tf.distribute.MirroredStrategy() ...

When I calculate the gradient of x^2 in the following way.
x = tf.convert_to_tensor(np.linspace(5,5,11))
y=np.zeros(10)
with tf.GradientTape() as g:
g.watch(x)
y=x*x
y = tf.convert_to_tensor(...

I am constructing a neural network where the output I intend to predict simply has the following conditions implemented using tf.cond:
def net(self, x, y):
v1_out = self.neural_net(tf.concat([x,...

I am trying to implement a stochastic armijo rule in the get_gradient method of Keras SGD optimizer.
Therefore, I need to calculate another forward pass to check if the learning_rate chosen was good. ...

My project needs tensorflow==1.11.0
But when I tried to install it, I got:
pip install tensorflowgpu==1.11.0
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version ...

model = tf.keras.Sequential([
tf.keras.layers.Embedding(VOCAB_SIZE, 32),
tf.keras.layers.LSTM(32),
tf.keras.layers.Dense(1, activation="sigmoid")
])
model.compile(loss="...

I am training a Graph neural network using Spektral with an auxiliary input layer. I am concatenating the layers. The model compiles perfectly. But when fitting the data into the model I am getting ...

Im traying to run a script with tensorflow imported, it works when use spyder but with pycharm gives me this traceback:
Traceback (most recent call last):
File "C:\Users\YOURDATA\AppData\Local\...