Git Product home page Git Product logo

Comments (11)

wentaozhu avatar wentaozhu commented on July 17, 2024

You can use pytorch 1.3.1 and it can run successfully.

from anatomynet-for-anatomical-segmentation.

qiuLimoges avatar qiuLimoges commented on July 17, 2024

Hi,
think you for your answers. I have tried your code but can not load correctly the dataset. I have downloaded the dataset PDDCA (version 1.4.1), tried to use preprocess_crop.ipynb to trait the data. It seems that nothing happened.
Could you tell me how to start is? thinks a lot

from anatomynet-for-anatomical-segmentation.

wentaozhu avatar wentaozhu commented on July 17, 2024

You don't need to run preprocessing. The data has been processed.

from anatomynet-for-anatomical-segmentation.

qiuLimoges avatar qiuLimoges commented on July 17, 2024

Hello,
the PDDCA data has the structure like '0522c0001/structures/Brainstem.nrrd, img.nrrd files.
but running AnatomyNet.py, the code search for folds like '/data/wtzhu/dataset/HNCetuximabclean/'
Also at the beginning of the code, you have defined the TRAIN TEST CET PET PATH like
TRAIN_PATH = './data/trainpddca15_crp_v2_pool1.pth'
TEST_PATH = './data/testpddca15_crp_v2_pool1.pth'
CET_PATH = './data/trainpddca15_cet_crp_v2_pool1.pth'
PET_PATH = './data/trainpddca15_pet_crp_v2_pool1.pth'
How can I find these?

Thank you for your patience.

from anatomynet-for-anatomical-segmentation.

wentaozhu avatar wentaozhu commented on July 17, 2024

These *_PATH is the generated result. You just need to create a data directory and it can run automatically.

from anatomynet-for-anatomical-segmentation.

qiuLimoges avatar qiuLimoges commented on July 17, 2024

so at which place? under the ./data subfolder? how to name it?
Need I give the data directory as parameter of AnatomyNet.py
Thinks

from anatomynet-for-anatomical-segmentation.

wentaozhu avatar wentaozhu commented on July 17, 2024

Yes.

from anatomynet-for-anatomical-segmentation.

qiuLimoges avatar qiuLimoges commented on July 17, 2024

sorry I can't run your code. have I any guide or manuel for the beginner?
Thanks

from anatomynet-for-anatomical-segmentation.

wentaozhu avatar wentaozhu commented on July 17, 2024

What is your error?

from anatomynet-for-anatomical-segmentation.

qiuLimoges avatar qiuLimoges commented on July 17, 2024

HI, this is part of the error msg:

missing annotation Submandibular_L 0522c0669
missing annotation Submandibular_R 0522c0669
0it [00:00, ?it/s]
Traceback (most recent call last):
File "AnatomyNet.py", line 160, in
train_data, test_data = process('./data/wtzhu/dataset/pddca18/')
File "AnatomyNet.py", line 146, in process
return getdatamask(train_data+train_dataopt+test_data, train_masks_data+train_masks_dataopt+test_masks_data,debug=debug), getdatamask(test_dataoff, test_masks_dataoff,debug=debug)
File "AnatomyNet.py", line 96, in getdatamask
img = np.load(fnm) # z y x
File "/home/hao/anaconda3/envs/tf/lib/python3.7/site-packages/numpy/lib/npyio.py", line 428, in load
fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: './data/wtzhu/dataset/pddca18/0522c0009/img_crp_v2.npy'

from anatomynet-for-anatomical-segmentation.

wentaozhu avatar wentaozhu commented on July 17, 2024

You need to change the data path to your own path for the dataset.

from anatomynet-for-anatomical-segmentation.

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.