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

Assertion Error in : images.ndim==4 is not true for the given dataset in github. #293

Open
priyamp2309 opened this issue Sep 19, 2023 · 1 comment

Comments

@priyamp2309
Copy link

Created a dataset of size = 1 with image resolution (192, 320)
Using the training regime with segmentation masks
Created Generator with 5887448 parameters
Created Discriminator (3+4 blocks) with 2443581 parameters
Traceback (most recent call last):
File "train.py", line 33, in
out_G = diff_augment(out_G)
File "/home/usd.local/priyam.pandey/priyam/code/one-shot-synthesis-master/one-shot-synthesis-master/core/differentiable_augmentation/diff_augm.py", line 12, in call
return self.augment_func(batch)
File "/home/usd.local/priyam.pandey/anaconda3/envs/osmis/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/usd.local/priyam.pandey/priyam/code/one-shot-synthesis-master/one-shot-synthesis-master/core/differentiable_augmentation/augment.py", line 182, in forward
assert isinstance(images, torch.Tensor) and images.ndim == 4
AssertionError

@priyamp2309 priyamp2309 changed the title Assertion images.ndim==4 is not true for the given dataset in github. Assertion Error in : images.ndim==4 is not true for the given dataset in github. Sep 19, 2023
@pietrobert3
Copy link

I have the same problem

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