Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
TensorFlow is an open source library for machine learning and machine intelligence. TensorFlow uses data flow graphs with tensors flowing along edges. For details, see https://www.tensorflow.org. TensorFlow is released under an Apache 2.0 License.
0
votes
Mixed precision with a keras data generator
Found it! It's a matter of using the cast() method in the rescaling function. eg:
def rescale(img, label):
sc_img=(tf.cast(img, tf.float16) / 127.5)-1
return sc_img, label
0
votes
1
answer
80
views
Mixed precision with a keras data generator
My GPU is RTX so I would also like to use mixed precision training in Tensorflow 2.5.
How do I cast the output images of the generator to float16? I've tried the .cast() method with no success. …
0
votes
Keras early stopping to a target
Comment above to SO post is spot on. A custom callback, as provided in that post, is the solution and the term 'baseline' is not meant to be interpreted as a threshold.
1
vote
1
answer
33
views
Optimizers, loss functions and weights: when do they matter?
I'm training an FCN in TF/Keras with sigmoid focal loss (from TF addons) and saving weights in checkpoints. I will need the inference to be done on another computer that, for the moment, does not hav …
0
votes
0
answers
29
views
Using images with 5 or more channel in a tf.data pipeline
I have a data generator used to train FCNs (eg Unets) that uses tf.data. The image parser followed by the creation of the tf.data dataset for the training images looks like:
def parse_image(img_ …
3
votes
1
answer
320
views
Keras early stopping to a target
Using: Tensorflow 2.4 …