Fooocus/extras
Dr. Christoph Mittendorf 72a07190bf
Excluding the math library INSTEAD using the pow() function
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.
2024-01-05 21:37:33 +01:00
..
BLIP Avoid tokenizer download from torch hub 2023-12-13 08:25:44 -08:00
facexlib 2.1.826 2023-12-12 11:38:05 -08:00
expansion.py 2.1.839 2023-12-13 21:14:50 -08:00
face_crop.py 2.1.826 2023-12-12 11:38:05 -08:00
interrogate.py use our blip 2023-12-12 21:07:39 -08:00
ip_adapter.py try fix #1671 (#1678) 2023-12-31 03:38:16 -08:00
preprocessors.py 2.1.826 2023-12-12 11:38:05 -08:00
resampler.py Excluding the math library INSTEAD using the pow() function 2024-01-05 21:37:33 +01:00
vae_interpose.py 2.1.826 2023-12-12 11:38:05 -08:00
wd14tagger.py safer link 2023-12-12 21:53:13 -08:00