SoftTeacher
SoftTeacher copied to clipboard
注释了base.py的WandbLoggerHook,训练soft_teacher_faster_rcnn_r101_caffe_fpn_coco_full_1080k,报wandb错
AssertionError: wandb has not been initialized, call wandb.init
first`
如何彻底不使用wandb,因为我这边是推到jarvis上训练的,没有办法输入wandb的3
Hello, you can comment line 273-284 in configs/soft_teacher/base.py.
AssertionError: wandb has not been initialized, call
wandb.init
first` 如何彻底不使用wandb,因为我这边是推到jarvis上训练的,没有办法输入wandb的3
The bug is in the method log_image_with_boxes
. For a quick fix, you can comment line 169
, 248
, 284
in ssod/models/soft_teacher.py
.
@MendelXu @DaniloAlves1995 按照您这么注释是没问题的,很感谢,但是没法查看log了。有其他更合适的解决方案吗?
注释掉之后应该只会去掉保存的图片? Text log应该还在吧.
@lihuikenny 我改了下code,不需要注释掉 log_image_with_boxes
,然后没有wandb的时候它会把图片保存在${WORK_DIR}/rpn/vis
或者${WORK_DIR}/rcnn/vis
,你可以试试。
好的,非常感谢,我晚些时候会试一下。不过目前关键的还是在于这个问题, TypeError: _bbox_forward() missing 1 required positional argument: 'rois'
我现在尝试了一下这个方案,但是也存在一些BUG,需要进一步修改, [cid:ef5e6c3d-7990-4fb7-a49c-332b688c561d]
如果后续您有更好的解决方式,还请释放一下代码。
此外还有个其他问题,需要请教您一下,就是我copy 了你之前修复sampler的一段代码【DistributedGroupFixRatioSampler】 但是还是下面的问题。
2021-11-27 01:57:39,996 - mmdet.ssod - INFO - Sampling 2 datasets by ratio [1, 1]... 2021-11-27 01:57:39,996 - mmdet.ssod - INFO - Size for each dataset: 7688 : 11996 2021-11-27 01:57:39,996 - mmdet.ssod - INFO - Split dataset 0 by flag. Group Sizes: [941, 6747] 2021-11-27 01:57:39,996 - mmdet.ssod - INFO - Split dataset 1 by flag. Group Sizes: [11996] 2021-11-27 01:57:39,996 - mmdet.ssod - INFO - Iterations in one epoch : 5998 2021-11-27 01:57:39,996 - mmdet.ssod - INFO - Iterations in one epoch for each group: [5998]
oftTeacher-main/ssod/datasets/samplers/semi_fix_sampler.py", line 92, in for indice in indices IndexError: list index out of range
请您指点,谢谢
发件人: MendelXu @.> 发送时间: 2021年11月29日 14:40 收件人: microsoft/SoftTeacher @.> 抄送: lihuikenny @.>; Mention @.> 主题: Re: [microsoft/SoftTeacher] 注释了base.py的WandbLoggerHook,训练soft_teacher_faster_rcnn_r101_caffe_fpn_coco_full_1080k,报wandb错 (Issue #94)
@lihuikennyhttps://github.com/lihuikenny 我改了下code,不需要注释掉 log_image_with_boxes,然后没有wandb的时候它会把图片保存在${WORK_DIR}/rpn/vis 或者${WORK_DIR}/rcnn/vis,你可以试试。
― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/SoftTeacher/issues/94#issuecomment-981332515, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALD4VKM3FBFF4FW4L5CTS7DUOMN43ANCNFSM5HLL35RQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.