I tried training the Ark model on the Chest-X-ray-14 dataset and got the following error:
raise ValueError("Target size ({}) must be the same as input size ({})".format(target.size(), input.size()))
ValueError: Target size (torch.Size([200, 14])) must be the same as input size (torch.Size([200, 7, 7, 14]))
Based on the output, the model's prediction shape does not match the target shape.
the command I used for training is provided below:
Fixed the issue! The problem was I ran the code in the base environment without setting up a new environment for ark. Now the script runs after I ran it in a newly setup environment.
I tried training the Ark model on the Chest-X-ray-14 dataset and got the following error:
Based on the output, the model's prediction shape does not match the target shape.
the command I used for training is provided below:
Please let me know how to resolve this issue.