AssertionError: '' acceptable suffix is ['.pt'] (Before running train.py)

Created by: XJTUXYC

Question

When I was editing configurations in configurations window, I wrote --weights '' in Parameters column to train a model without pre-training. Then, PyCharm returned me an AssertionError: '' acceptable suffix is ['.pt']. But, when I changed the default value of --weights from 'yolov5s.pt' to '', train.py worked successfully. What is the reason?

Additional context