-
Notifications
You must be signed in to change notification settings - Fork 17
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
ValueError: Expected input batch_size (98304) to match target batch_size (24576). #2
Comments
@ssbilakeri |
@ssbilakeri |
@nickhuang1996 |
@qianqiansbaby |
Resolved error.
Thank you.
…On Thu, 15 Oct 2020, 7:10 pm nickhuang1996, ***@***.***> wrote:
Assigned #2 <#2> to
@ssbilakeri <https://github.com/ssbilakeri>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOOYJBPKUTEKKX57QZ3MAX3SK33UXANCNFSM4SQ5XRQQ>
.
|
@ssbilakeri |
@nickhuang1996 |
when I use MDRS2_config file as overwrite_file getting bellow error. please suggest me where Im wrong
Traceback (most recent call last):
File "demo.py", line 11, in
trainer.train()
File "..\MDRSREID\Trainer\MDRSReIDTrainer.py", line 111, in train
source_loss += self.loss_functions[loss_type.name](item, pred, step=self.current_step)['loss']
File "..\MDRSREID\Loss_Meter\Multi_Seg_loss.py", line 24, in call
loss_list = [self.criterion(multi_seg_pred_list[i].permute(0, 2, 3, 1).contiguous().view(-1, C), ps_label) for i in range(len(multi_seg_pred_list))]
File "..\MDRSREID\Loss_Meter\Multi_Seg_loss.py", line 24, in
loss_list = [self.criterion(multi_seg_pred_list[i].permute(0, 2, 3, 1).contiguous().view(-1, C), ps_label) for i in range(len(multi_seg_pred_list))]
File "C:\Users\ssbilakeri\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "C:\Users\ssbilakeri\Anaconda3\lib\site-packages\torch\nn\modules\loss.py", line 904, in forward
ignore_index=self.ignore_index, reduction=self.reduction)
File "C:\Users\ssbilakeri\Anaconda3\lib\site-packages\torch\nn\functional.py", line 1970, in cross_entropy
return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
File "C:\Users\ssbilakeri\Anaconda3\lib\site-packages\torch\nn\functional.py", line 1788, in nll_loss
.format(input.size(0), target.size(0)))
ValueError: Expected input batch_size (98304) to match target batch_size (24576).
The text was updated successfully, but these errors were encountered: