This code already works in the past with another dataset on GPU (I already have this error message but was my fault with error in number of classes)
This time I can’t identify the problem.
When i run the same command on CPU (just change the batch_size, and number of epochs), I have the following error:
Using CPU

Traceback (most recent call last):
  File "train.py", line 367, in <module>
    backup_every=args.backup_every)
  File "train.py", line 198, in train
    load_darknet_weights(model, f'weights/{cutoff_name}')
  File "/home/florian/dev/utils/models.py", line 278, in load_darknet_weights
    conv_w = torch.from_numpy(weights[ptr:ptr + num_w]).view_as(conv_layer.weight)
RuntimeError: shape '[512, 256, 3, 3]' is invalid for input of size 776331