raise ValueError(‘Expected input batch_ size ({}) to match target batch_ size ({}).’
Remember to print the size of the picture before forward propagation. I didn’t notice that all the pictures come in RGB three channel data this time. When using the . View
function, I remember to look at it first. When I used it, I calculated the size of the picture directly according to a single channel. Generally, this is the phenomenon that the size of the picture does not match
The phenomenon of mating
Read More:
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,
- Copying a param with shape torch. Size ([262, 2048]), parameter size does not match
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- Python learning notes (5) — cross entropy error runtimeerror: 1D target tensor expected, multi target not supported
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Ida batch processes virus share samples to obtain ASM files and bytes files
- PHP in Windows combined with bat batch processing to achieve multi process verification proxy server function
- How to batch comment and cancel Python code
- Batch delete process
- Dirsearch URL batch scan error
- Windows batch: File running in the background
- Batch modification of file names on MAC Linux rename command line
- Running bat batch file in background
- Adding prefixes to file names in batch by shell under mac
- Batch error reporting in Java spring
- Mybatis batch insert data
- How to batch create folders in Excel form and copy the specified files to a new folder