Hi @MJK,
Try with --weights, --custom_yaml with the correct path to the weights and custom_yaml.
Two dashes with no space.
Also, you may refer to these posts, these users have managed to convert successfully before. (Converting .pt to .nb - #3 by Steph_B) (AMB82-mini YOLOv7 Pothole Detection).
Thank you.