05 2023 档案
摘要:过滤器解决乱码问题,自我记录备份 文件结构  一般用 SpringMVC 提供的就可以解决 ```xml
阅读全文
摘要:1、IntelliJ IDEA 各版本 https://www.jetbrains.com/idea/download/other.html
阅读全文
摘要:1、找到系统文件 plotting.py,加一个类 Color class Colors: # Ultralytics color palette https://ultralytics.com/ def __init__(self): # hex = matplotlib.colors.TABLE
阅读全文
摘要:1、首先找到项目中 utils/plots.py 文件,打开该代码 将原来的 Colors类注释掉(或删掉),改成如下Colors类 class Colors: def __init__(self): self.red = (255, 0, 0) # 深红色 self.green = (0, 255
阅读全文
摘要:import torch def get_gpu_info(): device = torch.device("cuda" if torch.cuda.is_available() else "cpu") if device.type == "cuda": # 获取当前GPU名字 gpu_name
阅读全文