huixiancheng / CENet

[ICME 2022] CENet: Toward Concise and Efficient LiDAR Semantic Segmentation for Autonomous Driving
MIT License
99 stars 13 forks source link

AttributeError: type object 'Trainer' has no attribute 'save_to_log' #11

Closed liaozhihao2757 closed 2 years ago

liaozhihao2757 commented 2 years ago

Traceback (most recent call last): File "train.py", line 133, in trainer.train() File "/home/buaa/project_liaozhihao/CENet-main/modules/trainer.py", line 336, in train Trainer.save_to_log(logdir=self AttributeError: type object 'Trainer' has no attribute 'save_to_log'

I found this issue when the code is training and this “Trainer.save_to_log” is not found in the Class Trainer.

huixiancheng commented 2 years ago

Sorry for missing this part. Maybe fixed by upload this part. Welcome try again.

liaozhihao2757 commented 2 years ago

Is this related to the pytorch version, I am using the pytorch 1.9 and cuda 11.3

huixiancheng commented 2 years ago

No. It just caused by code missing.

huixiancheng commented 2 years ago

However, if y don't use tensorboard or save scan in valid, this part is useless.

liaozhihao2757 commented 2 years ago

okk, thank you very much.