Home

Detectron2学习笔记一

Trainer Trainer类的定义 class Trainer(DefaultTrainer): """ 继承自DefaultTrainer """ @classmethod def build_evaluator(cls, cfg, dataset_name, output_folder=None): pass @classmethod def build_train_loader(cls, cfg): pass @classmethod def build_test_loader(cls, cfg): pass ...

Read more

python 导入包出现的bug

记录一下又一次在python项目中导入包时出现的bug, 原因是在激活环境(比如pytorch38)后,sys.path会多一个..lib/model路径, 而这个路径正好和我要运行的项目中的model文件夹重名,导致无法正确导入,那么就需要删除掉这个路径, 根据激活的环境路径找到/data/env/envs/pytorch38/lib/python3.8在这里有一个easy-install.pth文件(不知道其他情况是不是也是这个名字), 可以看到里面存储了几个路径列表,其中就包括了上面说的那个..lib/model路径,于是把它删除掉,再退出重新激活环境就可以了。哎心累

Read more

深度学习损失优化器

Sharpness-Aware Minimization for Efficiently Improving Generalization 一篇比较有意思的文章,作者提升一种可以提升魔心泛化能力的优化器,(Adaptive) SAM Optimizer。

Read more

论文实验记录

1. C2F_ZSL_CVPR 思路整理: 1.1 验证GMIX的 Motivation 实验 验证方案一 Woodpecker超类 seen : ‘189.Red_bellied_Woodpecker’、’192.Downy_Woodpecker’、’187.American_Three_toed_Woodpecker’ unseen : ‘188.Pileated_Woodpecker’、’190.Red_cockaded_Woodpecker’、’191.Red_headed_Woodpecker’ Warbler超类 seen 17个子类: ‘158.Bay_breasted_War...

Read more

可视化方法

1. TSNE 可视化 # 3D / 2D可视化 def TSNE_API(data, label): """ :param data: numpy array N x dim :param label: N :return: """ print('data shape: {}, label shape: {}'.format(data.shape, label.shape)) tsne = TSNE(n_components=2, init='random', random_state=100, perplexity=40, n_iter=1000) # data # normalize data ...

Read more