05 2023 档案

摘要:过滤器解决乱码问题,自我记录备份 文件结构 ![image](https://img2023.cnblogs.com/blog/2489219/202305/2489219-20230529173246579-732472098.png) 一般用 SpringMVC 提供的就可以解决 ```xml 阅读全文
posted @ 2023-05-29 17:36 ~逍遥子~ 阅读(15) 评论(0) 推荐(0) 编辑
摘要:1、IntelliJ IDEA 各版本 https://www.jetbrains.com/idea/download/other.html 阅读全文
posted @ 2023-05-19 10:58 ~逍遥子~ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:1、找到系统文件 plotting.py,加一个类 Color class Colors: # Ultralytics color palette https://ultralytics.com/ def __init__(self): # hex = matplotlib.colors.TABLE 阅读全文
posted @ 2023-05-11 08:29 ~逍遥子~ 阅读(2256) 评论(1) 推荐(0) 编辑
摘要:1、首先找到项目中 utils/plots.py 文件,打开该代码 将原来的 Colors类注释掉(或删掉),改成如下Colors类 class Colors: def __init__(self): self.red = (255, 0, 0) # 深红色 self.green = (0, 255 阅读全文
posted @ 2023-05-10 20:10 ~逍遥子~ 阅读(1508) 评论(0) 推荐(0) 编辑
摘要:import torch def get_gpu_info(): device = torch.device("cuda" if torch.cuda.is_available() else "cpu") if device.type == "cuda": # 获取当前GPU名字 gpu_name 阅读全文
posted @ 2023-05-04 21:18 ~逍遥子~ 阅读(897) 评论(0) 推荐(0) 编辑