Skip to content
Advertisement

Tag: tensorflow

tf-nightly-gpu and Keras

So, I was able to get lucky and get my hands on an RTX 3070. Unfortunately, this isn’t working out as well as I would have liked for me when it comes to tensorflow. I’ve spent some time on google and from what I can tell, tf-nightly-gpu is the solution to my issues here. I’ve installed Cuda 11/10, cuDNN, and

How do I fit tensorflow ImageDataGenerator

I’ve build my model, but do not know how to fit it. Could anyone give me some tip so I can use ImageDataGenerator in my models while working with images, or it is better to use other ways like using Dataset? My directory architecture: PS: I found article where same method used and everything seems to work, but not in

Implementing Multiclass Dice Loss Function

I am doing multi class segmentation using UNet. My input to the model is HxWxC and my output is, Using SparseCategoricalCrossentropy I can train the network fine. Now I would like to also try dice coefficient as the loss function. Implemented as follows, However, I am actually getting an increasing loss instead of decreasing loss. I have checked multiple sources

Tensorflow 2.3, Tensorflow dataset, TypeError: () takes 1 positional argument but 4 were given

I use tf.data.TextLineDataset to read 4 large files and I use tf.data.Dataset.zip to zip these 4 files and create “dataset”. However, I can not pass “dataset” to dataset.map to use tf.compat.v1.string_split and split with t separator and finally use batch, prefetch and finally feed into my model. This is my code: This is error message: What should I do? Answer

What if the validation step does not fit into numbers of samples?

It’s a bit annoying that tf.keras generator still faces this issue, unlike pytorch. There are many discussions regarding this, however, still stuck with it. Already visit: Meaning of validation_steps in Keras steps_per_epoch does not fit into numbers of samples Problem I have a data set consist of around 21397. I wrote a custom data loader which returns the total number

Advertisement