In order to monitor the growth and development of tomatoes, and improve the efficiency of flower and fruit thinning and tomato picking, this paper constructs a tomato flower and fruit dataset and proposes a TF-YOLOv5s model for the detection of tomato flowers and fruits in natural environments. Based on the YOLOv5s model, a C3Faster module is introduced to reduce the number of parameters and calculations while maintaining detection accuracy. The regular convolution is replaced by depth-wise separable convolution (DWConv) to avoid parameter redu...