Resnet18_test and training loss vibrate greatly

Hello, everyone!
I am training a 2-class resnet18 network using images(about 4000 pieces) from cocodataset.
I find all test and training loss vibrate greatly.
It looks like something wrong in training parameters.
I have changed batch size 64 and 128, also pretrained True and false.
But nothing changed.
Please help me.