cost 133 ms
在 MacOs M1 中安装 Tensorflow

[英]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 ...

无法为 ./model_save 保存和查找任何文件。 在我的存储

[英]Failed to save and find any files for ./model_save. on my storage

嗨,我尝试在火车和代码运行成功后将 model 文件保存在我的存储中,但找不到任何文件,如 .h5 或...在 model 保存的文件夹中,它是空的 嗨,我尝试在火车和代码运行成功后将 model 文件保存在我的存储中,但找不到任何文件,如 .h5 或...在 model 保存的文件夹中,它是空的 ...

为什么无法预测 TensorFlow 中的三次方程?

[英]Why cannot predict in TensorFlow a equation of third degree?

我是 TensorFlow 的新手。我能够做出简单的预测。 但是当我进行更改时它停止工作。 为什么? 以及如何解决? 我用过这个演示。 我能够解决这样的方程式: y=2x-1 通过使用此代码: 然后我尝试使用相同的概念来求解这个方程: 3x^3+5x^2+10 这是新代码: 我的问题是,如何更改我 ...

为什么 estimator.export_saved_model 在 TF2 迁移后抱怨缺少变量?

[英]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 找不到 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:尽管没有传递任何字符串,但 keras 不支持将字符串转换为浮点数

[英]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 ...

使用@tensorflow-models/qna 时出错:TypeError:context.trim 不是 function

[英]Error using @tensorflow-models/qna: TypeError: context.trim is not a function

我正在开发一个 React 应用程序,它使用 TensorFlow QnA model 根据用户输入生成学习卡。 我实现了一个用户可以输入问题的表单,提交后,应用程序应使用 QnA model 生成答案并创建一个包含问题和答案的新学习卡。 但是,当我尝试提交表单时,出现以下错误:“TypeErro ...

保存自定义 TableNet Model(基于 VGG19)用于表提取 - Azure Databricks

[英]Saving Custom TableNet Model (VGG19 based) for table extraction - Azure Databricks

我有一个基于TableNet和VGG19的 model ,用于训练的数据(Marmoot)和保存路径映射到数据湖存储(使用 Azure)。 我试图通过以下方式保存它并在Databricks上出现以下错误: 第一种方法: import pickle pickle.dump(model, open(f ...

为什么A2C中的损失是nan?

[英]Why is the loss nan in A2C?

赏金明天到期。 此问题的答案有资格获得+50声望赏金。 I_Al-thamary想提请更多人注意这个问题。 我正在实施A2C model,其中 actor 损失正在变为nan ,而 model 没有学习。 state 空间为5 ,动作空间为51 。 有时,state 值在几步后变得相同,有时变 ...

如何保存有状态的 TFLite model,其中 state 的形状取决于输入?

[英]How do I to save a stateful TFLite model where shape of state depends on input?

我正在尝试在 tensorflow-lite 中做一些相当简单的事情,但我不确定这是否可能。 我想定义一个状态图,其中 state 变量的形状是在加载 model 时定义的,而不是在保存时定义的。 作为一个简单的例子 - 假设我只想计算时间差异 - 即。 返回两个连续调用中输入之间差异的图形。 以 ...

如何在没有数据集的情况下确定两个图像是否包含相同的 object?

[英]How to determine if two images contain the same object without a dataset?

这个问题是从 Stack Overflow 迁移过来的,因为它可以在 Cross Validated 上回答。 5 天前迁移。 我要解决的问题是,给定两个图像,确定它们是否包含相同的 object。 这是一个例子: 前两张图片包含相同的 object,而第三张图片包含相似但不同的 object ...

Tensorflow - 文本分类 - 形状 (None,) 和 (None, 250, 100) 不兼容错误

[英]Tensorflow - Text Classification - Shapes (None,) and (None, 250, 100) are incompatible error

我想对具有多个标签的文本进行分类。 我使用 TextVectorization 层和 CategoricalCrossEntropy function。这是我的 model 代码: 文本向量器: Model代: 合身: x_train是一个文本列表,例如['This is a text abou ...

如何从经过训练的 model in.pb 格式中删除一个 object?

[英]How to remove an object from the trained model in .pb format?

我正在训练 tello 无人机来检测汽车,所以我在这里使用此代码: https://github.com/Shreyas-dotcom/Tello_Obj_Recognition ,但该代码包含其他对象名称,例如自行车。 所以我的问题是:如何从训练有素的 model 中删除其他对象。 ...

Tensorflow 逐行读取大文件

[英]Tensorflow read large file line by line

请看下面的代码: 注意这里x.csv 和y.csv 很大,memory 加载整个文件时遇到问题。但我的批处理大小只有32。我的问题是,处理这种情况的最佳方法是什么? 我可以将文件而不是张量传递给 model.fit 吗? 如果没有,我如何指示 model.fit 从文件中逐行读取并处理它? 注意这也 ...

运行 model 顺序图像分类时出错:Model 是用输入 KerasTensor 的形状 (None, 100, 100, 3) 构建的

[英]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 运行时死亡 TensorFlow Model

[英]Jupyter Kernel Dies when Running TensorFlow Model

在 Jupyter 中训练 TensorFlow Model 时,kernel 在第一个纪元之前死亡。 我使用的 model 是在 ResNet50 编码器上输入大小为 256 的 DeepLab。 我无法显示 model 摘要,因为它太长而无法放入问题中。 此问题仅发生在这个特定的 model ...

tensorflow v2 从头开始实现 Mini-batch gradient decent 错误

[英]Implementation of Mini-batch gradient decent from scratch with tensorflow v2 getting error

我正在尝试使用 google colab 中的 MNIST 数据集在 tensorflow v2 中从头开始实现 minibatch 梯度体面。 我收到以下我无法理解的错误。 为什么会出现以及可以在 tensorflow v2 中使用 google colab 实施的正确解决方案是什么。 我附上了我 ...

机器学习和TensorFlow项目中的“图执行错误”

[英]"Graph Execution Error" in Machine Learning and TensorFlow Project

我是一名学生,无法弄清楚我在这里做错了什么。 我不知道为什么会收到此错误。 关于代码的任何问题或规范,我很乐意回答以澄清任何事情。 如果有人有任何见解,我将不胜感激。 错误代码与目录名称等一起出现......我真的不确定该怎么做或我做错了什么而且我的教授不是很有帮助所以我很感激任何帮助。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM