Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traning on multi-objects images [ more than one object ] #26

Open
gaebw opened this issue Aug 11, 2022 · 1 comment
Open

traning on multi-objects images [ more than one object ] #26

gaebw opened this issue Aug 11, 2022 · 1 comment

Comments

@gaebw
Copy link

gaebw commented Aug 11, 2022

Hi Xuebin Qin,
Great work. Thanks.
Questions 1: Is it ok to build model/train on multi-object images? or it has to be images with one object each?

Question 2: Training on Windows 10 failed message:
DIS\IS-Net>python train_valid_inference_main.py

building model...
batch size: 8
--- create training dataloader ---
------------------------------ train --------------------------------
--->>> train dataset 0 / 1 DIS5K-TR <<<---
-im- DIS5K-TR ../DIS5K/DIS-TR/im : 959
-gt- DIS5K-TR ../DIS5K/DIS-TR/gt : 959
Traceback (most recent call last):
File "train_valid_inference_main.py", line 722, in
main(train_datasets,
File "train_valid_inference_main.py", line 527, in main
train_dataloaders, train_datasets = create_dataloaders(train_nm_im_gt_list,
File DIS\IS-Net\data_loader_cache.py", line 95, in create_dataloaders
gos_dataloaders.append(DataLoader(gos_dataset, batch_size=batch_size, shuffle=shuffle, num_workers=num_workers_))
File "Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 268, in init
sampler = RandomSampler(dataset, generator=generator)
File "Anaconda3\lib\site-packages\torch\utils\data\sampler.py", line 102, 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

Thanks,
Gabew

@xuebinqin
Copy link
Owner

xuebinqin commented Aug 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants