0

The link shows an example of data pipeline for images it works fine when I run directly on colab but when I use it on my laptop its gives this error. I've been using Keras for quite a while but this is the 1st time trying data pipelining and I couldn't find any answer for it.

This error occurs only when I run these 4 lines :-

image_batch, label_batch = next(iter(train_ds))
timeit(train_ds)
uncached_ds = prepare_for_training(labeled_ds, cache=False)
timeit(uncached_ds)
filecache_ds = prepare_for_training(labeled_ds, cache="./flowers.tfcache")
timeit(filecache_ds)

UnknownError: NewRandomAccessFile failed to Create/Open: D:\Deep Learning\Datasets\12 class dataset\motorbike : Access is denied. ; Input/output error [[{{node ReadFile}}]]

4

1 回答 1

0

抱歉,我的错误是我在笔记本电脑中执行代码时使用 os 和 glob 库来表示位置并访问目录,这会产生这个错误,但是在使用“pathlib”本身之后,它就像一个魅力......

于 2020-05-13T02:01:40.910 回答