Giter Site home page Giter Site logo

FileNotFoundError: [Errno 2] No such file or directory: 'data\\Clean\\Image\\LIDC-IDRI-0100\\LIDC-IDRI-0100\\0100_CN001_slice000.npy' about lidc-idri-preprocessing HOT 4 CLOSED

jaeho3690 avatar jaeho3690 commented on May 27, 2024
FileNotFoundError: [Errno 2] No such file or directory: 'data\\Clean\\Image\\LIDC-IDRI-0100\\LIDC-IDRI-0100\\0100_CN001_slice000.npy'

from lidc-idri-preprocessing.

Comments (4)

Narratorx avatar Narratorx commented on May 27, 2024 1

This worked for me:

else:
print("Clean Dataset",pid)
patient_clean_dir_image = CLEAN_DIR_IMAGE
patient_clean_dir_mask = CLEAN_DIR_MASK
# Path(patient_clean_dir_image).mkdir(parents=True, exist_ok=True)
# Path(patient_clean_dir_mask).mkdir(parents=True, exist_ok=True)

#There are patients that don't have nodule at all. Meaning, its a clean dataset. We need to use this for validation
 for slice in range(vol.shape[2]):
     if slice >50:
         break
     lung_segmented_np_array = segment_lung(vol[:,:,slice])
     lung_segmented_np_array[lung_segmented_np_array==-0] =0
     lung_mask = np.zeros_like(lung_segmented_np_array)
     # CN= CleanNodule, CM = CleanMask
     # nodule_name = "{}/{}_CN001_slice{}".format(pid,pid[-4:],prefix[slice])
     # mask_name = "{}/{}_CM001_slice{}".format(pid,pid[-4:],prefix[slice])
     nodule_name = pid[-4:] + '_CN001_slice' + prefix[slice]
     mask_name = pid[-4:] + '_CM001_slice' + prefix[slice]
      meta_list = [pid[-4:],slice,prefix[slice],nodule_name,mask_name,0,False,True]

      self.save_meta(meta_list)
       np.save(str(patient_clean_dir_image) + '/' + nodule_name, lung_segmented_np_array)
       np.save(str(patient_clean_dir_mask) + '/' + mask_name, lung_mask)

from lidc-idri-preprocessing.

oqlaalrefai avatar oqlaalrefai commented on May 27, 2024

Can you help me?

from lidc-idri-preprocessing.

Dhruv-Singhh avatar Dhruv-Singhh commented on May 27, 2024

did you find any solution for this?

from lidc-idri-preprocessing.

Pollob001 avatar Pollob001 commented on May 27, 2024

very good suggestion..its also worked for me...Thanks

from lidc-idri-preprocessing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.