Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problems with using my own data set #51

@1ysine

Description

@1ysine

Hi,I converted my data set to wireframe format and encountered the following error.I have converted the json format to hdf5 format with offset, line_level, df,but an error is reported. I don't know why.

Traceback (most recent call last):
File "/root/miniconda3/envs/deeplsd/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/root/miniconda3/envs/deeplsd/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/lys/DeepLSD/deeplsd/scripts/train.py", line 252, in
training(conf, output_dir, args)
File "/root/lys/DeepLSD/deeplsd/scripts/train.py", line 116, in training
train_loader = dataset.get_data_loader('train')
File "/root/lys/DeepLSD/deeplsd/datasets/wireframe_ha.py", line 99, in get_data_loader
return DataLoader(self.get_dataset(split), batch_size=batch_size,
File "/root/miniconda3/envs/deeplsd/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 376, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "/root/miniconda3/envs/deeplsd/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 164, in init
raise ValueError(
ValueError: num_samples should be a positive integer value, but got num_samples=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions