-
Notifications
You must be signed in to change notification settings - Fork 267
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
finding 3000 training units but still saying num_samples =0 #29
Comments
I had to delete the cache folder from an earlier typpo |
I had the same problem. Whether you solve this problem? |
Yeah, delete the cache folder and try again. |
Are you referring to removing the "cache_dir=../" in the file path? |
Sorry about the lack of specifics... Going from memory here but no, that
might be where to look, but it will create these image cache folders, and
you have to delete those folders.
…On Thu, Sep 15, 2022, 7:02 PM chase_cheng ***@***.***> wrote:
Are you referring to removing the "cache_dir=../" in the file path?
—
Reply to this email directly, view it on GitHub
<#29 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4UIGUQ7HG4NGODPX6H65DV6PIJ7ANCNFSM57F3FKQA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks very much. I'm sucess. |
Are you referring to removing the "cache_dir=../" in the file path? I delete it ,but it's also error.
松风水月
***@***.***
…------------------ 原始邮件 ------------------
发件人: "xuebinqin/DIS" ***@***.***>;
发送时间: 2022年9月16日(星期五) 上午9:55
***@***.***>;
***@***.******@***.***>;
主题: Re: [xuebinqin/DIS] finding 3000 training units but still saying num_samples =0 (Issue #29)
Yeah, delete the cache folder and try again.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is amazing, but I'm having some trouble with DIS.
Sorry, i'm new at this. It's finding 3000 training units but still saying num_samples =0
Error:
d_inference_main.py
/home/jakko/.conda/envs/pytorch18/lib/python3.7/site-packages/torch/nn/reduction.py:42: UserWarning: size_average and reduce args will be deprecated, please use reduction='mean' instead.
warnings.warn(warning.format(ret))
building model...
batch size: 8
--- create training dataloader ---
------------------------------ train --------------------------------
--->>> train dataset 0 / 1 DIS5K-TR <<<---
-im- DIS5K-TR /home/jakko/Pictures/DIS5K/DIS5K/DIS-TR/im : 3000
-gt- DIS5K-TR /home/jakko/Pictures/DIS5K/DIS5K/DIS-TR/gt : 3000
Traceback (most recent call last):
File "train_valid_inference_main.py", line 727, in
hypar=hypar)
File "train_valid_inference_main.py", line 541, in main
shuffle = True)
File "/home/jakko/Github/DIS/IS-Net/data_loader_cache.py", line 97, in create_dataloaders
gos_dataloaders.append(DataLoader(gos_dataset, batch_size=batch_size, shuffle=shuffle, num_workers=num_workers))
File "/home/jakko/.conda/envs/pytorch18/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 266, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore
File "/home/jakko/.conda/envs/pytorch18/lib/python3.7/site-packages/torch/utils/data/sampler.py", line 104, 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
--------------- STEP 1: Configuring the Train, Valid and Test datasets ---------------
The text was updated successfully, but these errors were encountered: