KMnP / vpt

❄️🔥 Visual Prompt Tuning [ECCV 2022] https://arxiv.org/abs/2203.12119
Other
1k stars 91 forks source link

The coding style of "cfg" is bad. #71

Open 2catycm opened 2 months ago

2catycm commented 2 months ago

cfg is like *args, **kwargs When I read the code, I never know what keys are going to be used in the underlying function. I need to read the whole project to understand how to write a cfg to pass into a single function.