1. Problem
The following code:
self.cams = sorted(list(cam_set))
Even if the int or str type conversion has been performed, the following error still occurs:
TypeError: '<' not supported between instances of 'str' and 'int'
2. Modify
self.cams = sorted(list(cam_set), key=lambda x: str(x))