n0obcoder / nih-chest-x-rays-multi-label-image-classification-in-pytorch Goto Github PK
View Code? Open in Web Editor NEWMulti-Label Image Classification of Chest X-Rays In Pytorch
Multi-Label Image Classification of Chest X-Rays In Pytorch
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
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
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'
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')
During phases 1, 2, and 3, layer 1 was never tuned. Why that would be a choice? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.