
[英]Install Tensorflow in MacOs M1
我正在努力在带有 M1 芯片的 MacOS Monterey 12.5.1 上安装 tensorflow pip3 install tensorflow-macos pip3 install tensorflow-metal 我不断收到此错误: ERROR: Could not find a ve ...
[英]Install Tensorflow in MacOs M1
我正在努力在带有 M1 芯片的 MacOS Monterey 12.5.1 上安装 tensorflow pip3 install tensorflow-macos pip3 install tensorflow-metal 我不断收到此错误: ERROR: Could not find a ve ...
[英]Why doesn't Keras one-hot encode have not zeroes?
例如: 对于每个单词,它只分配一个 integer '3' 和 '2',而不是大小为 5 且包含 1 和 0 的向量? one-hot 编码是否应该始终产生 1 和 0 的向量? ...
[英]Failed to save and find any files for ./model_save. on my storage
嗨,我尝试在火车和代码运行成功后将 model 文件保存在我的存储中,但找不到任何文件,如 .h5 或...在 model 保存的文件夹中,它是空的 嗨,我尝试在火车和代码运行成功后将 model 文件保存在我的存储中,但找不到任何文件,如 .h5 或...在 model 保存的文件夹中,它是空的 ...
[英]Issue With CNN architecture
我正在尝试实现 CNN 架构,但是 output 的形状存在问题。集合的形状如下: 架构的设置如下: history=model_branching_summed.fit(x_train, y_train, batch_size=128, epochs=100, validation_data=( ...
[英]Why cannot predict in TensorFlow a equation of third degree?
我是 TensorFlow 的新手。我能够做出简单的预测。 但是当我进行更改时它停止工作。 为什么? 以及如何解决? 我用过这个演示。 我能够解决这样的方程式: y=2x-1 通过使用此代码: 然后我尝试使用相同的概念来求解这个方程: 3x^3+5x^2+10 这是新代码: 我的问题是,如何更改我 ...
[英]Why does estimator.export_saved_model complain about missing variables after TF2 migration?
我正在与老师和学生 BERT model 一起进行蒸馏,并使用estimator.export_saved_model导出学生 model 。 这在 TF1 中运行良好,但我转移到 TF2 以便能够使用多 GPU 训练,现在我不断收到以下错误消息: 当我调查检查点中的节点名称时,我发现它们都有某种 ...
[英]Tensorflow 2.4.1 can't find GPUs
我正在尝试在 Linux 机器 (ubuntu) 上运行 TensorFlow。 我创建了一个 Conda env 并安装了所需的软件包,但我认为我的版本有问题: 更新版本 cudatoolkit 11.6.0 cudatoolkit 11.2.0 cudnn 8.1.0.77 张量流-GPU ...
[英]UnimplementedError: Cast string to float is not supported in keras despite no strings being passed
我无法让我的 model 使用 Keras 调谐器进行训练。 我相信问题出在 Mygenerator(Sequence) class 上,但是当我在不使用它时用完 memory,我无法轻易验证这是问题所在。 由于代码很长,可以通过以下链接在 Google Colab 中访问: https://col ...
[英]Error using @tensorflow-models/qna: TypeError: context.trim is not a function
我正在开发一个 React 应用程序,它使用 TensorFlow QnA model 根据用户输入生成学习卡。 我实现了一个用户可以输入问题的表单,提交后,应用程序应使用 QnA model 生成答案并创建一个包含问题和答案的新学习卡。 但是,当我尝试提交表单时,出现以下错误:“TypeErro ...
[英]Saving Custom TableNet Model (VGG19 based) for table extraction - Azure Databricks
我有一个基于TableNet和VGG19的 model ,用于训练的数据(Marmoot)和保存路径映射到数据湖存储(使用 Azure)。 我试图通过以下方式保存它并在Databricks上出现以下错误: 第一种方法: import pickle pickle.dump(model, open(f ...
[英]Why is the loss nan in A2C?
赏金明天到期。 此问题的答案有资格获得+50声望赏金。 I_Al-thamary想提请更多人注意这个问题。 我正在实施A2C model,其中 actor 损失正在变为nan ,而 model 没有学习。 state 空间为5 ,动作空间为51 。 有时,state 值在几步后变得相同,有时变 ...
[英]How do I to save a stateful TFLite model where shape of state depends on input?
我正在尝试在 tensorflow-lite 中做一些相当简单的事情,但我不确定这是否可能。 我想定义一个状态图,其中 state 变量的形状是在加载 model 时定义的,而不是在保存时定义的。 作为一个简单的例子 - 假设我只想计算时间差异 - 即。 返回两个连续调用中输入之间差异的图形。 以 ...
[英]How to determine if two images contain the same object without a dataset?
这个问题是从 Stack Overflow 迁移过来的,因为它可以在 Cross Validated 上回答。 5 天前迁移。 我要解决的问题是,给定两个图像,确定它们是否包含相同的 object。 这是一个例子: 前两张图片包含相同的 object,而第三张图片包含相似但不同的 object ...
[英]Tensorflow - Text Classification - Shapes (None,) and (None, 250, 100) are incompatible error
我想对具有多个标签的文本进行分类。 我使用 TextVectorization 层和 CategoricalCrossEntropy function。这是我的 model 代码: 文本向量器: Model代: 合身: x_train是一个文本列表,例如['This is a text abou ...
[英]How to remove an object from the trained model in .pb format?
我正在训练 tello 无人机来检测汽车,所以我在这里使用此代码: https://github.com/Shreyas-dotcom/Tello_Obj_Recognition ,但该代码包含其他对象名称,例如自行车。 所以我的问题是:如何从训练有素的 model 中删除其他对象。 ...
[英]Tensorflow read large file line by line
请看下面的代码: 注意这里x.csv 和y.csv 很大,memory 加载整个文件时遇到问题。但我的批处理大小只有32。我的问题是,处理这种情况的最佳方法是什么? 我可以将文件而不是张量传递给 model.fit 吗? 如果没有,我如何指示 model.fit 从文件中逐行读取并处理它? 注意这也 ...
[英]Error when run model sequential image classification: Model was constructed with shape (None, 100, 100, 3) for input KerasTensor
所以我正在尝试 kaggle 的 model 进行水果图像分类链接: https://www.kaggle.com/code/aninditapani/cnn-from-scratch-with-98-accuracy 但是我在运行 model 时出错,我正在尝试另一个 model 但没有出错。 我 ...
[英]Jupyter Kernel Dies when Running TensorFlow Model
在 Jupyter 中训练 TensorFlow Model 时,kernel 在第一个纪元之前死亡。 我使用的 model 是在 ResNet50 编码器上输入大小为 256 的 DeepLab。 我无法显示 model 摘要,因为它太长而无法放入问题中。 此问题仅发生在这个特定的 model ...
[英]Implementation of Mini-batch gradient decent from scratch with tensorflow v2 getting error
我正在尝试使用 google colab 中的 MNIST 数据集在 tensorflow v2 中从头开始实现 minibatch 梯度体面。 我收到以下我无法理解的错误。 为什么会出现以及可以在 tensorflow v2 中使用 google colab 实施的正确解决方案是什么。 我附上了我 ...
[英]"Graph Execution Error" in Machine Learning and TensorFlow Project
我是一名学生,无法弄清楚我在这里做错了什么。 我不知道为什么会收到此错误。 关于代码的任何问题或规范,我很乐意回答以澄清任何事情。 如果有人有任何见解,我将不胜感激。 错误代码与目录名称等一起出现......我真的不确定该怎么做或我做错了什么而且我的教授不是很有帮助所以我很感激任何帮助。 ...