Open law4percent opened 2 months ago
Ok I have solved the problem... thanks self 👌
def smooth(y, box_pts):
box = np.ones(box_pts) / box_pts
y_smooth = np.convolve(y, box, mode='valid')
pad = (len(y) - len(y_smooth)) // 2
y_smooth = np.pad(y_smooth, (pad, len(y) - len(y_smooth) - pad), mode='constant', constant_values=np.nan)
return y_smooth
Sample result
After training a YOLOv9 instance segmentation model, I noticed that only a 'result.csv' file was generated, but no 'result.png' graph was created. How can I generate a 'result.png' graph using the information from the 'result.csv' file?
By the way, I have already made a code but I think the smooth() function was the problem.
Result sample_1
Result sample_2