When performing custom batch training in the training loop,
which one should be used?
tf.gradient_tape or train_on_batch?
What is the difference?
submitted by /u/SuccMyStrangerThings
[visit reddit]
[comments]
When performing custom batch training in the training loop,
which one should be used?
tf.gradient_tape or train_on_batch?
What is the difference?
submitted by /u/SuccMyStrangerThings
[visit reddit]
[comments]
I got this error/warning while trying to run the webcam_demo.py
example in Posenet library from Tensorflow. how to resolve
this?
This is the Git Repo from where I forked this
code : posenet-python
and This is my Output Screen :
>>>
RESTART: A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterwebcam_demo.py
Cannot find model file ./_modelsmodel-mobilenet_v1_101.pb,
converting from tfjs…
WARNING:tensorflow:From
A:Pythonlibsite-packagestensorflowpythontoolsfreeze_graph.py:127:
checkpoint_exists (from
tensorflow.python.training.checkpoint_management) is deprecated and
will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
Traceback (most recent call last):
File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterwebcam_demo.py”, line 66, in
<module>
main()
File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterwebcam_demo.py”, line 20, in main
model_cfg, model_outputs = posenet.load_model(args.model,
sess)
File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterposenetmodel.py“, line 42, in load_model
convert(model_ord, model_dir, check=False)
File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterposenetconvertertfjs2python.py“, line 198, in
convert
initializer_nodes=””)
File
“A:Pythonlibsite-packagestensorflowpythontoolsfreeze_graph.py”,
line 361, in freeze_graph
checkpoint_version=checkpoint_version)
File
“A:Pythonlibsite-packagestensorflowpythontoolsfreeze_graph.py”,
line 190, in freeze_graph_with_def_protos
var_list=var_list, write_version=checkpoint_version)
File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 835, in __init__
File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 847, in build
self._build(self._filename, build_save=True,
build_restore=True)
File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 885, in _build
build_restore=build_restore)
File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 489, in _build_internal
names_to_saveables)
File
“A:Pythonlibsite-packagestensorflowpythontrainingsavingsaveable_object_util.py”,
line 362, in validate_and_slice_inputs
for converted_saveable_object in saveable_objects_for_op(op,
name):
File
“A:Pythonlibsite-packagestensorflowpythontrainingsavingsaveable_object_util.py”,
line 223, in saveable_objects_for_op
yield ResourceVariableSaveable(variable, “”, name)
File
“A:Pythonlibsite-packagestensorflowpythontrainingsavingsaveable_object_util.py”,
line 95, in __init__
self.handle_op = var.op.inputs[0]
IndexError: tuple index out of range
>>>
submitted by /u/Section_Disastrous
[visit reddit]
[comments]
I’m looking for a tensorflow implementation of BLEU score
similar to the nltk implementation. The reason I can’t use nltk is
because I need to calculate bleu score per each TPU replica result.
I cannot append predictions across replicas and then use nltk to
calculate BLEU for the entire corpus as I would prefer. The reason
is described in this stackoverflow post
https://stackoverflow.com/questions/60842868/how-can-i-merge-the-results-from-strategy-in-tensorflow-2
submitted by /u/International_Fix_94
[visit reddit]
[comments]
Hello all! I have spent some time working on my chatbot and it’s
working pretty well. I have a json file that stores all my intents,
but I have come across a problem that I don’t know how to solve. I
want to have an “other” tag. This tag should be called whenever the
input doesn’t match any other patterns or tags. The goal of this is
so that if no tags are matched, I have a separate set of
instructions for my program to follow in such cases. Does anyone
have any idea how I can go about this? Is there a certain pattern I
should have or what? Also, another question I have is what if a
certain pattern I have has variables in it, for example, “Play
Clocks by Coldplay”. In the case of “Play {songName} by {artist}” a
constant pattern cannot be used since the user can come up with any
combination of song names and artists. Any help is appreciated.
Thank you in advance!
submitted by /u/Rafhay101
[visit reddit]
[comments]
submitted by /u/ApproximateIdentity
[visit reddit]
[comments]
NVIDIA DRIVE IX is an open, scalable cockpit software platform that provides AI functions to enable a full range of in-cabin experiences, including intelligent visualization with augmented reality and virtual reality, conversational AI and interior sensing.
The post A Trusted Companion: AI Software Keeps Drivers Safe and Focused on the Road Ahead appeared first on The Official NVIDIA Blog.
To help data scientists and developers simplify their AI workflows, we have collaborated with Amazon Web Services (AWS) to bring NVIDIA NGC software resources directly to the AWS Marketplace.
Enterprises across industries are adopting AI to drive business growth and they’re relying on cloud infrastructure to develop and deploy their solutions.
To help data scientists and developers simplify their AI workflows, we have collaborated with Amazon Web Services (AWS) to bring NVIDIA NGC software resources directly to the AWS Marketplace. The AWS Marketplace is where customers find, buy and immediately start using software and services that run on AWS.
The NVIDIA NGC catalog provides GPU-optimized AI software for data engineers, data scientists, developers, and DevOps teams so they can focus on building and deploying their AI solutions faster.
More than 250,000 unique users have now downloaded over 1 million of the AI containers, pretrained models, application frameworks, Helm charts and other machine learning resources available on the NGC catalog.
Available free of charge, the software from the NGC catalog is optimized to run on NVIDIA GPU cloud instances, such as the Amazon EC2 P4d instance featuring the record-breaking performance of NVIDIA A100 Tensor Core GPUs.
NGC software in AWS Marketplace provides a number of benefits to help data scientists and developers build AI solutions.
Here’s a step-by-step guide to quickly discover the NGC software and run an object detection service on Amazon EC2 instances.
Accelerate your AI development on NVIDIA GPU-powered AWS services today with the NGC catalog in AWS Marketplace.
![]() |
submitted by /u/SpatialComputing [visit reddit] [comments] |
I am trying to implement a very basic recursive neural network
into my linear regression analysis project in Tensorflow that takes
two inputs passed to it and then a third value of what it
previously calculated. So, my project is trying to calculate
something across the next x number of years, and after the first
year I want it to keep taking the value of the last year.
Currently, my training data has two inputs, not three, predicting
one output, so how could I make it recursive, so it keeps on
passing in the value from the last year, to calculate the next? To
explain slightly further, if it were to calculate across the next 5
years:
1st year:
Input 1: 10
Input 2: 20
(Maybe need input 3, but a value that has no affect on the
linear regression model)
Output: 30
2nd year:
Input 1: 11
Input 2: 22
Input 3: 30 (1st year output)
Output: 35
3rd Year:
Input 1:12
Input 2: 24
Input 3: 35 (2nd year output)
Output: 40
submitted by /u/HexadecimalHero
[visit reddit]
[comments]
I’m trying to create my own model to classify a face as either
wearing a mask or not, and by what ratio. This
is my Colab notebook, with predictions output at the end.
The question is:
How do I make the model predict with confidence, for example:
[0.966 0.034]?
Note: I didn’t use binary_crossentropy with one neuron dense
layer on purpose for this model, as I am planning on adding a 3rd
class (mask worn incorrectley) as soon as I have a better
dataset.
submitted by /u/LGariv
[visit reddit]
[comments]