Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
a-persimmons opened this issue Dec 18, 2024 · 0 comments

Comments

@a-persimmons
Copy link

a-persimmons commented Dec 18, 2024

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 a-persimmons changed the title colab [14] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data' colab [15] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data' Dec 18, 2024
@a-persimmons a-persimmons changed the title colab [15] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data' colab [14] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data' Dec 18, 2024
@a-persimmons a-persimmons changed the title colab [14] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data' colab [8] error:No such file or directory: '/root/.cache/scikit-image/0.24.0/data' Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant