I am trying to laucnh training with my files, but i get num_samples error.
I created my_run folder and copied llvc/config.json
Changed data->dir in it to folder with my files
`2024-04-22 05:31:54 | INFO | root | Using GPUs: [0]
2024-04-22 05:31:58 | INFO | root | Loaded dataset at train containing 0 elements
2024-04-22 05:31:58 | INFO | root | Loaded dataset at val containing 0 elements
2024-04-22 05:31:58 | INFO | root | Loaded dataset at dev containing 0 elements
Traceback (most recent call last):
File "/root/LLVC/train.py", line 496, in
main()
File "/root/LLVC/train.py", line 492, in main
train_model(gpus, config, args.dir)
File "/root/LLVC/train.py", line 453, in train_model
mp.spawn(
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 241, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 197, in start_processes
while not context.join():
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 158, in join
raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:
-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 68, in _wrap
fn(i, *args)
File "/root/LLVC/train.py", line 78, in training_runner
train_loader = torch.utils.data.DataLoader(data_train,
File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 350, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/sampler.py", line 143, in init
raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}")
ValueError: num_samples should be a positive integer value, but got num_samples=0`
I am trying to laucnh training with my files, but i get num_samples error.
`2024-04-22 05:31:54 | INFO | root | Using GPUs: [0] 2024-04-22 05:31:58 | INFO | root | Loaded dataset at train containing 0 elements 2024-04-22 05:31:58 | INFO | root | Loaded dataset at val containing 0 elements 2024-04-22 05:31:58 | INFO | root | Loaded dataset at dev containing 0 elements Traceback (most recent call last): File "/root/LLVC/train.py", line 496, in
main()
File "/root/LLVC/train.py", line 492, in main
train_model(gpus, config, args.dir)
File "/root/LLVC/train.py", line 453, in train_model
mp.spawn(
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 241, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 197, in start_processes
while not context.join():
File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 158, in join
raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:
-- Process 0 terminated with the following error: Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 68, in _wrap fn(i, *args) File "/root/LLVC/train.py", line 78, in training_runner train_loader = torch.utils.data.DataLoader(data_train, File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 350, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/sampler.py", line 143, in init raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}") ValueError: num_samples should be a positive integer value, but got num_samples=0`