首页 > 解决方案 > 不知道使用 T2T 时要设置哪些目录

问题描述

我正在尝试从这里学习 T2T 教程:https ://colab.research.google.com/drive/1Vm-HPy_9HnTxn607x3oidSioX2hpqH_A?authuser=2#scrollTo=6vGb1s-WnaB2

我在 Windows 8.1(64 位)上,我认为我设置正确的目录路径不正确。

在教程中它说:

DATA_DIR=$HOME/t2t_data
TMP_DIR=/tmp/t2t_datagen
TRAIN_DIR=$HOME/t2t_train/$PROBLEM/$MODEL-$HPARAMS

t2t-datagen \
  --data_dir=$DATA_DIR \
  --tmp_dir=$TMP_DIR \
  --problem=$PROBLEM

但是,在成功下载数据集后[I0422 15:25:00.175716 5632 generator_utils.py:255] Successfully downloaded data-plaintext-format.tar, 1197486080 bytes. 100% completed],我收到了很多回溯调用,最终是这样的:

NotFoundError: FindFirstFile failed for: C:/Users/John/t2t/tmp/data.plaintext-format : The system cannot find the path specified.
; No such process

我猜我设置的目录错误,但我不知道怎么做?

标签: pythontensorflowdirectorygit-bashtensor2tensor

解决方案


推荐阅读