-
Notifications
You must be signed in to change notification settings - Fork 162
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
error when i use the download lable magicpoint_synth20_homoAdapt100_coco_f1 #88
Comments
it seems like the data loader in torch is raising the exception when the Dataloader is trying to use RandomSampler without init the num_samples argument Relate to this issue on PyTorch repo: pytorch/pytorch#74804 |
Make sure that the Path you put in the field "labels" in the yaml config is correctly defined.
and now it works. |
think you very much |
Hello, could you please tell me where you downloaded the pseudo ground truth labels? I can't open the link provided on the README: https://drive.google.com/drive/folders/1nnn0UbNMFF45nov90PJNnubDyinm2f26?usp=sharing |
load labels from: output/magicpoint_synth20_homoAdapt100_coco_f1/predictions/val
Traceback (most recent call last):
File "train4.py", line 144, in
args.func(config, output_dir, args)
File "train4.py", line 71, in train_joint
data = dataLoader(config, dataset=task, warp_input=True)
File "E:\xiefei\pytorch-superpoint-master\utils\loader.py", line 86, in dataLoader
worker_init_fn=worker_init_fn
File "E:\tensorflow\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 268, in init
sampler = RandomSampler(dataset, generator=generator)
File "E:\tensorflow\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\sampler.py", line 103, in init
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
The text was updated successfully, but these errors were encountered: