irfanICMLL / structure_knowledge_distillation

The official code for the paper 'Structured Knowledge Distillation for Semantic Segmentation'. (CVPR 2019 ORAL) and extension to other tasks.
BSD 2-Clause "Simplified" License
694 stars 104 forks source link

Puzzled about this loop #52

Closed NickChang97 closed 3 years ago

NickChang97 commented 3 years ago

https://github.com/irfanICMLL/structure_knowledge_distillation/blob/f6e6565ddfb910d1aec477b34e58d79e097b339e/eval_esp.py#L188 Thanks for your code. I have something puzzling about this. Is your code indent below this loop right. If it is. Why just use "flag = c_keys[-1].split('.')[0]" instead

irfanICMLL commented 3 years ago

You are correct. You can use it instead.