Megvii-BaseDetection / DenseTeacher

DenseTeacher: Dense Pseudo-Label for Semi-supervised Object Detection
Apache License 2.0
119 stars 12 forks source link

install errors #37

Open XipengY opened 1 year ago

XipengY commented 1 year ago

Thanks for your interesting work! I have installed cvpods, and import cvpods success, but converted to coco-p10 directory and run "pods_train --dir ." and got error:

AttributeError: 'SemiRunner' object has no attribute 'angular_update'. image

what can i do for this error!

ZayneYe commented 1 year ago

一样的问题,解决了吗

PlutoQyl commented 1 year ago

You can add this in runner: def _write_metrics(self, loss_dict, data_time: float, prefix: str = ""): super(DefaultRunner, self)._write_metrics(loss_dict, data_time, prefix) if comm.is_main_process() and self.iter != 0: writer: TensorboardXWriter = self.get_writer(writer_type="tensorboard") writer.write_angular_update(self.optimizer)

XipengY commented 1 year ago

@PlutoQyl Thanks, It works for me!