CLIP icon indicating copy to clipboard operation
CLIP copied to clipboard

colab [8] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data'

Open a-persimmons opened this issue 1 year ago • 3 comments

Question: After executing step 8 in the Colab Demo of Readme, it prompts No such file or directory: '/root/.cache/scikit-image/0.24.0/data'

>Step 8 Source Code:

original_images = []
images = []
texts = []
plt.figure(figsize=(16, 5))

# The outlier has occurred: No such file or directory [skimage.data_dir]    
for filename in [filename for filename in os.listdir(skimage.data_dir) if filename.endswith(".png") or filename.endswith(".jpg")]:
    name = os.path.splitext(filename)[0]
    if name not in descriptions:
        continue

    ...

plt.tight_layout()

Solution: Execute skimage.data.download_all(directory=None) before step 8.

Suggestion: As per the solution

a-persimmons avatar Dec 18 '24 09:12 a-persimmons

thanks,it works for me

biolbe1230 avatar Mar 01 '25 03:03 biolbe1230

Thanks , the same as.

CloudStrifer avatar Apr 20 '25 04:04 CloudStrifer

Thank you, that helps.

yingjun-mou avatar Jun 04 '25 04:06 yingjun-mou