[Python] PermissionError: [Errno 13] Permission denied when retrieving tif images in local file

Discussão em 'Python' iniciado por Stack, Setembro 29, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to get a module to import tif documents form files on my computer with python

    and this is the error message I am getting:


    PermissionError: [Errno 13] Permission denied: 'C:\Users\abouf\OneDrive\Desktop\Deep_Learning\Training_Data\T\images'
    ​

    Hey all,

    This is the part if code I am running in python:

    import os
    import cv2
    from PIL import Image
    import numpy as np
    from matplotlib import pyplot as plt
    from patchify import patchify, unpatchify
    import tifffile as tif
    from sklearn.preprocessing import MinMaxScaler
    from keras.optimizers import Adam

    # import labels and images
    large_image_stack = tif.imread(r"C:\Users\abouf\OneDrive\Desktop\Deep_Learning\Training_Data\T\images")
    large_mask_stack = tif.imread(r"C:\Users\abouf\OneDrive\Desktop\Deep_Learning\Training_Data\T\labels")

    all_img_patches = []


    and this is the error message I am getting:


    PermissionError: [Errno 13] Permission denied: 'C:\Users\abouf\OneDrive\Desktop\Deep_Learning\Training_Data\T\images'
    ​

    Anyone can help with this? Thank you

    Continue reading...

Compartilhe esta Página