Git Product home page Git Product logo

nih-chest-x-rays-multi-label-image-classification-in-pytorch's People

Contributors

n0obcoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nih-chest-x-rays-multi-label-image-classification-in-pytorch's Issues

num of smaples coming 0 after pickling

Traceback (most recent call last):
File "E:\btp final\NIH-Chest-X-Rays-Multi-Label-Image-Classification-In-Pytorch\main.py", line 89, in
train_loader = torch.utils.data.DataLoader(train_dataset, batch_size = batch_size, shuffle = True)
File "C:\Python38\lib\site-packages\torch\utils\data\dataloader.py", line 262, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore
File "C:\Python38\lib\site-packages\torch\utils\data\sampler.py", line 103, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0

ValueError: a must be non-empty

When I run the code,why exits the error as below?How can I solve it?Thanks!
File "/home/a504/linjinke/NIH-Chest-X-Rays-Multi-Label-Image-Classification-In-Pytorch-master/datasets.py", line 111, in choose_the_indices
for i in tqdm(list(np.random.choice(range(length),length, replace = False))):
File "mtrand.pyx", line 1126, in mtrand.RandomState.choice
ValueError: a must be non-empty

some questions about config.py

Hello, what's the meaning of the frist five lines of the config.py and how should I modify them?pkl_dir_path = 'pickles'
train_val_df_pkl_path = 'train_val_df.pickle'
test_df_pkl_path = 'test_df.pickle'
disease_classes_pkl_path = 'disease_classes.pickle'
models_dir = 'models'

Some questions about main.py

How should I modify the line 30 in main.py?
parser.add_argument('--data_path', type = str, default = 'NIH Chest X-rays', help = 'This is the path of the training data')

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.