It’s hard to tell as I don’t know your complete use case.
From the output and target you’ve posted, the loss is already 0 in the 3rd iteration.
The targets look strange, as you have all ones in each iteration.
Your model might just learn to output class1, if it’s the majority class.
Could you validate your Dataset to see, how many instances there are of class0 and class1?
Currently you are also using the same directory for train, val and test, which should be unrelated to the current problem.