Open cloudy-sfu opened 7 months ago
Hi @cloudy-sfu , this apparently is because of a breaking change in TensorFlow 2 API. Please try replacing the image_label_folder loader in the train.sh file with: https://www.tensorflow.org/datasets/api_docs/python/tfds/folder_dataset/ImageFolder
Thanks, now the scrip can run, I replace the variable CODE
with
CODE="import os;
import tensorflow_datasets as tfds;
dl_config = tfds.download.DownloadConfig(manual_dir=os.path.expanduser('$DATADIR'));
ds = tfds.load(name='image_label_folder',
data_dir=os.path.expanduser('$DATADIR'),
split='train',
as_supervised=True,
download_and_prepare_kwargs={'download_config': dl_config});"
But, the folder datadir/coco2014/train/none
is still empty. Taking coco2014
which is used in train.sh
as an example, which value should I change image_label_folder
to?
When run
bash train.sh
, the following error occurs. How to solve it?