Moore-AnimateAnyone icon indicating copy to clipboard operation
Moore-AnimateAnyone copied to clipboard

IndexError: The shape of the mask [0] at index 0 does not match the shape of the indexed tensor [1, 4096, 320] at index 0

Open Be-a-Warior opened this issue 2 years ago • 4 comments

Hello, during the stage_1 of training, there was a dimension mismatch issue during the first validation set validation after training 200 steps.

Be-a-Warior avatar Feb 02 '24 09:02 Be-a-Warior

I also met this problem.

charliezon avatar Feb 05 '24 05:02 charliezon

As a temporary solution, apply deepcopy to net in log_validation worked.

somaonishi avatar Feb 19 '24 03:02 somaonishi

I think this problem is probably caused by reference_control_reader and reference_control_writer.

After log_validation, I applied the following and it worked in some iter.

reference_control_reader.clear()
reference_control_writer.clear()

somaonishi avatar Feb 19 '24 13:02 somaonishi