Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Blenderbot 微调
我一直在尝试微调 HuggingFace 的对话模型 Blendebot 我已经尝试过官方拥抱脸网站上给出的传统方法 该方法要求我们使用 trainer train 方法来完成此操作 我使用 compile 方法尝试了它 我尝试过使用 Py
python
tensorflow
NLP
Pytorch
huggingfacetransformers
如何使用 Keras 将图像文件夹转换为 X 和 Y 批次?
假设我有一个图像文件夹 例如 PetData Dog images Cat images 我如何将其转换为 x train y train x test y test 格式 我看到这种格式广泛用于 MNIST 数据集 如下所示 mnist
python
tensorflow
Keras
target_vocab_size 在方法 tfds.features.text.SubwordTextEncoder.build_from_corpus 中到底意味着什么?
根据这个链接 https www tensorflow org datasets api docs python tfds features text SubwordTextEncoder build from corpus target
python
tensorflow
NLP
使用稀疏张量计算梯度时,tensorflow给出nans
以下代码片段来自相当长的一段代码 但希望我可以提供所有必要的信息 y2 tf matmul y1 ymask dist tf norm ystar y2 轴 0 y1 和 y2 为 128x30 ymask 为 30x30 ystar 为
tensorflow
计算复合损失函数各部分的梯度范数
假设我有以下损失函数 loss a tf reduce mean my loss fn model output targets loss b tf reduce mean my other loss fn model output tar
tensorflow
Tensorflow 何时更新权重和偏差?
张量流什么时候更新for循环中的权重和偏差 下面是tf的github上的代码 mnist softmax py https github com tensorflow tensorflow blob master tensorflow ex
python
tensorflow
TensorFlow 数据集的函数 cache() 和 prefetch() 有何作用?
我正在关注 TensorFlow图像分割 https www tensorflow org tutorials images segmentation教程 其中有以下几行 train dataset train cache shuffle
tensorflow
caching
Dataset
tensorflowdatasets
Prefetch
在 Tensorboard 中获取简单的绘图
我正在尝试在张量板上画一个简单的图 就像他们在主页上一样 如下所示 To understand how this is working I ve wrote the following import tensorflow as tf imp
python
tensorflow
tensorboard
Tensorflow:tf.get_collection 未返回范围内的变量
我正在尝试获取变量范围内的所有变量 如所解释的here https stackoverflow com questions 36533723 tensorflow get all variables in scope 然而 该行tf get
python
tensorflow
导入错误:无法导入名称“transpose_shape”
我正在学习 Coursera Andrew Ng 的深度学习课程 使用 YOLO 算法进行对象检测 我尝试使用 Windows 和 Anaconda Navigator 在我的 PC 上运行该算法 我安装了 Keras 以在 TensorF
python
tensorflow
Keras
Anaconda
如何在 Mac 上安装支持 GPU 的 TensorFlow?
我的 MacBook Pro 没有 NVIDIA GPU 所以不可能运行CUDA 我想知道哪些早期版本的 TensorFlow 支持 Mac OS 的 GPU 我如何在 Anaconda 上安装 如上所述official https www
tensorflow
BERT - 池化输出与序列输出的第一个向量不同
我在 Tensorflow 中使用 BERT 有一个细节我不太明白 根据文档 https tfhub dev google bert uncased L 12 H 768 A 12 1 https tfhub dev google bert
tensorflow
Keras
deeplearning
NLP
如何将 .pb 文件转换为 .h5。 (张量流模型到keras)
我已经使用重新训练了我的模型tensorflow现在想使用keras以避免会话内容 我怎样才能转换 pb文件至 h5 import tensorflow as tf from tensorflow keras models import s
python
tensorflow
Keras
使用 load_model 加载经过训练的tensorflow.keras模型会返回JSON解码错误,而未经训练的模型加载正常
我有一个训练有素的 Keras 模型 使用 tensorflow keras API 构建和训练 并使用tf keras save model 没有可选参数的方法 Tensorflow 是最新的 我的 Python 版本是 3 8 根据我的
python
tensorflow
machinelearning
Keras
deeplearning
Odroid XU4 上的 Tensorflow 编译
我正在尝试在 Odroid XU4 16GB eMMc Ubuntu 16 上编译 Tensorflow 尝试了完整和精简版 但出现如图所示的错误 https www dropbox com sh j86ysncze1q0eka AAB8R
tensorflow
odroid
TensorFlow:张量不是该图的元素
file for inputing the data for testing from scipy import ndimage image file test png image data ndimage imread image fil
tensorflow
使用 train_test_split 分割数据时的精度与随后加载 csv 文件的精度不同
我建立了一个模型来预测客户是企业客户还是私人客户 训练模型后 我预测了 1000 个数据集的类别 但我没有将其用于训练 此预测将保存在 csv 文件中 现在我有两种不同的行为 在程序中分割样本数据 当我创建示例时train sample t
python
tensorflow
machinelearning
Keras
Classification
如何在张量流中将TextVectorization保存到磁盘?
我已经训练了一个 TextVectorization 层 见下文 我想将其保存到磁盘 以便下次可以重新加载它 我努力了pickle and joblib dump 这是行不通的 from tensorflow keras layers ex
tensorflow
Keras
tensorflow20
pickle
AttributeError:“模块”对象没有 tf.app.run() 的属性“main”
我正在尝试测试一个简短的程序 该程序非常简单 如下所示 import numpy as np import tensorflow as tf flags tf app flags FLAGS flags FLAGS import tenso
python
tensorflow
如何用tensorflow计算AUC?
我已经使用 Tensorflow 构建了一个二元分类器 现在我想使用 AUC 和准确性来评估分类器 就准确性而言 我可以轻松地这样做 X tf placeholder float None n input y tf placeholder
tensorflow
python35
ROC
AUC
1
2
3
4
5
6
...100
»