C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\app>python app.py --lama_config ./lama/configs/prediction/default.yaml --lama_ckpt ./pretrained_models/big-lama --sam_ckpt ./pretrained_models/sam_vit_h_4b8939.pth
Traceback (most recent call last):
File "C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\app\app.py", line 13, in <module>
from lama_inpaint import inpaint_img_with_lama, build_lama_model, inpaint_img_with_builded_lama
File "C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\lama_inpaint.py", line 19, in <module>
from saicinpainting.evaluation.utils import move_to_device
File "C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\lama\saicinpainting\evaluation\__init__.py", line 6, in <module>
from saicinpainting.evaluation.losses.base_loss import SSIMScore, LPIPSScore, FIDScore
File "C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\lama\saicinpainting\evaluation\losses\base_loss.py", line 15, in <module>
from .lpips import PerceptualLoss
File "C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\lama\saicinpainting\evaluation\losses\lpips.py", line 15, in <module>
from saicinpainting.utils import get_shape
File "C:\Users\Jarvis\Desktop\Project\AI\Inpaint-Anything\lama\saicinpainting\utils.py", line 12, in <module>
from pytorch_lightning import seed_everything
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\__init__.py", line 28, in <module>
from pytorch_lightning import metrics # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\__init__.py", line 14, in <module>
from pytorch_lightning.metrics.classification import ( # noqa: F401
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\classification\__init__.py", line 14, in <module>
from pytorch_lightning.metrics.classification.accuracy import Accuracy # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\classification\accuracy.py", line 18, in <module>
from pytorch_lightning.metrics.functional.accuracy import _accuracy_compute, _accuracy_update
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\functional\__init__.py", line 14, in <module>
from pytorch_lightning.metrics.functional.accuracy import accuracy # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\functional\accuracy.py", line 18, in <module>
from pytorch_lightning.metrics.classification.helpers import _input_format_classification, DataType
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\classification\helpers.py", line 19, in <module>
from pytorch_lightning.metrics.utils import select_topk, to_onehot
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\metrics\utils.py", line 18, in <module>
from pytorch_lightning.utilities import rank_zero_warn
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\utilities\__init__.py", line 18, in <module>
from pytorch_lightning.utilities.apply_func import move_data_to_device # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\utilities\apply_func.py", line 25, in <module>
from pytorch_lightning.utilities.imports import _compare_version, _TORCHTEXT_AVAILABLE
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\utilities\imports.py", line 76, in <module>
_HYDRA_EXPERIMENTAL_AVAILABLE = _module_available("hydra.experimental")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\pytorch_lightning\utilities\imports.py", line 35, in _module_available
return find_spec(module_path) is not None
^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib.util>", line 94, in find_spec
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\__init__.py", line 5, in <module>
from hydra import utils
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\utils.py", line 8, in <module>
import hydra._internal.instantiate._instantiate2
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\_internal\instantiate\_instantiate2.py", line 11, in <module>
from hydra._internal.utils import _locate
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\_internal\utils.py", line 17, in <module>
from hydra.core.utils import get_valid_filename, validate_config_path
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\core\utils.py", line 19, in <module>
from hydra.core.hydra_config import HydraConfig
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\core\hydra_config.py", line 6, in <module>
from hydra.conf import HydraConf
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\conf\__init__.py", line 45, in <module>
class JobConf:
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\site-packages\hydra\conf\__init__.py", line 70, in JobConf
@dataclass
^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1223, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1213, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarvis\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'hydra.conf.JobConf.JobConfig.OverrideDirname'> for field override_dirname is not allowed: use default_factory
ENV: windows 11 python 3.11.3
log: