1 2 3 4 5 ··· 72 下一页
摘要: 下面的代码有问题,i+1时的result会改变i时result中的所有元素的内容: result = [] list1=[a, b, c] for i in range(6): for j in range(len(list1)) list1[j] = f(...) result.append(li 阅读全文
posted @ 2025-10-31 11:59 Picassooo 阅读(1) 评论(0) 推荐(0)
摘要: 强化学习入门这一篇就够了!!!万字长文 阅读全文
posted @ 2025-10-31 08:54 Picassooo 阅读(1) 评论(0) 推荐(0)
摘要: 在程序的入口添加 如下代码即可: import torch def patch_tensor_repr(): original_repr = torch.Tensor.__repr__ def new_repr(self): shape_str = f"Shape: {tuple(self.shap 阅读全文
posted @ 2025-10-29 11:32 Picassooo 阅读(4) 评论(0) 推荐(0)
摘要: 在运行程序的bash命令中添加 export TORCH_DISTRIBUTED_DEBUG=DETAIL ,这样就可以在log或终端打印没有参与loss计算的权重参数了。 阅读全文
posted @ 2025-10-23 19:43 Picassooo 阅读(3) 评论(0) 推荐(0)
摘要: 当父类需要从子类传递很多参数时,直接在子类中逐个传递参数会导致代码冗长、易出错且难以维护。此时可以通过 *args 和 **kwargs 简化参数传递,或结合 “参数分组”“显式声明必要参数” 等技巧,平衡灵活性和可读性。 核心解决方案:用 *args 和 **kwargs 批量传递参数 *args 阅读全文
posted @ 2025-10-11 16:33 Picassooo 阅读(24) 评论(0) 推荐(0)
摘要: https://www.cvmart.net/community/detail/14539 - 一文彻底搞懂车道线检测任务的前世今生 https://zhuanlan.zhihu.com/p/11935868162 - 希望这篇万字长文能帮助入门的朋友彻底搞懂车道线检测 https://zhuanl 阅读全文
posted @ 2025-09-09 16:58 Picassooo 阅读(23) 评论(0) 推荐(0)
摘要: 说说笔者对霍夫变换的理解:将一条直线转换到表征直线的参数空间(可以用斜率m和截距b表征一条直线,那么霍夫空间就是m和b的函数,极坐标表示也类似)。所以经过笛卡尔坐标系下的一个点,可以有无数条直线,即可以有无数种m和b的对应关系,在霍夫空间中,则对应着一条直线。图片上通过边缘检测可以离散得到N个点,而 阅读全文
posted @ 2025-09-09 16:51 Picassooo 阅读(12) 评论(0) 推荐(0)
摘要: a = dict() print(type(a)) # 输出<class 'dict'> a = dict(), print(type(a)) # 输出<class 'tuple'> 阅读全文
posted @ 2025-09-06 17:00 Picassooo 阅读(8) 评论(0) 推荐(0)
摘要: 在dataset中: def __getitem__(self, idx): if self.is_train: try: result = self.prepare_sample(idx) data = self.pipeline(result) return data except Except 阅读全文
posted @ 2025-08-30 12:00 Picassooo 阅读(8) 评论(0) 推荐(0)
摘要: [Algorithm] BEVformer 源码细节学习&&ubuntu20.04下的环境配置&&目标跑起开源代码&&论文学习笔记_bevformer源码解读-CSDN博客 万字长文理解纯视觉感知算法 —— BEVFormer - 知乎 阅读全文
posted @ 2025-05-24 14:31 Picassooo 阅读(30) 评论(0) 推荐(0)
1 2 3 4 5 ··· 72 下一页