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

Open
opened 2026-10-31 21:14:43 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @a-persimmons on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/openai/CLIP/issues/474

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

Originally created by @a-persimmons on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/openai/CLIP/issues/474 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: ```python 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
Author
Owner

@biolbe1230 commented on GitHub (Mar 1, 2025):

thanks,it works for me

<!-- gh-comment-id:2691903841 --> @biolbe1230 commented on GitHub (Mar 1, 2025): thanks,it works for me
Author
Owner

@CloudStrifer commented on GitHub (Apr 20, 2025):

Thanks , the same as.

<!-- gh-comment-id:2816983930 --> @CloudStrifer commented on GitHub (Apr 20, 2025): Thanks , the same as.
Author
Owner

@yingjun-mou commented on GitHub (Jun 4, 2025):

Thank you, that helps.

<!-- gh-comment-id:2938452411 --> @yingjun-mou commented on GitHub (Jun 4, 2025): Thank you, that helps.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#405
No description provided.