01 2024 档案

摘要:可以看到使用列表推导式可以得到2倍速的提高 ex0 ##self.CLASSES ('car', 'truck', 'trailer', 'bus', 'construction_vehicle', 'bicycle', 'motorcycle', 'pedestrian', 'traffic_co 阅读全文
posted @ 2024-01-17 17:51 无左无右 阅读(1) 评论(0) 推荐(0) 编辑
摘要:ps -ef 可以看到程序名字 ps -ef | grep main | awk '{print $2}' |xargs kill -9 阅读全文
posted @ 2024-01-11 16:36 无左无右 阅读(9) 评论(0) 推荐(0) 编辑
摘要:"Cannot re-initialize CUDA in forked subprocess. " + msg) RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessi 阅读全文
posted @ 2024-01-09 15:28 无左无右 阅读(381) 评论(0) 推荐(0) 编辑
摘要:import uuid import random a = str(uuid.uuid1()).replace("-","") b = ''.join(random.sample(a, 6)) print(uuid.uuid1()) 阅读全文
posted @ 2024-01-05 21:45 无左无右 阅读(7) 评论(0) 推荐(0) 编辑