scale = 1 / (self.dim_head ** 0.5) does the same as scale = 1 / math.sqrt(math.sqrt(self.dim_head)) therefore we do not need to import math here and safe some. Recommended: Import libraries only when you need them: This will reduce the number of times that the interpreter needs to load the library's code. |
||
|---|---|---|
| .. | ||
| BLIP | ||
| facexlib | ||
| expansion.py | ||
| face_crop.py | ||
| interrogate.py | ||
| ip_adapter.py | ||
| preprocessors.py | ||
| resampler.py | ||
| vae_interpose.py | ||
| wd14tagger.py | ||