mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 14:20:27 +08:00
Fix pylint error
This commit is contained in:
parent
005459ee77
commit
a9347c6713
@ -57,9 +57,9 @@ if hasattr(torch.serialization, "add_safe_globals"): # TODO: this was added in
|
|||||||
|
|
||||||
ModelCheckpoint.__module__ = "pytorch_lightning.callbacks.model_checkpoint"
|
ModelCheckpoint.__module__ = "pytorch_lightning.callbacks.model_checkpoint"
|
||||||
|
|
||||||
from numpy.core.multiarray import scalar
|
from numpy.core.multiarray import scalar # pylint: disable=no-name-in-module
|
||||||
from numpy import dtype
|
from numpy import dtype
|
||||||
from numpy.dtypes import Float64DType
|
from numpy.dtypes import Float64DType # pylint: disable=no-name-in-module
|
||||||
from _codecs import encode
|
from _codecs import encode
|
||||||
|
|
||||||
torch.serialization.add_safe_globals([ModelCheckpoint, scalar, dtype, Float64DType, encode])
|
torch.serialization.add_safe_globals([ModelCheckpoint, scalar, dtype, Float64DType, encode])
|
||||||
|
|||||||
@ -69,4 +69,5 @@ skia-python
|
|||||||
pebble>=5.0.7
|
pebble>=5.0.7
|
||||||
openai
|
openai
|
||||||
anthropic
|
anthropic
|
||||||
humanize
|
humanize
|
||||||
|
lightning
|
||||||
Loading…
Reference in New Issue
Block a user