Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not start #609

Open
yanghouqing opened this issue Dec 13, 2024 · 0 comments
Open

can not start #609

yanghouqing opened this issue Dec 13, 2024 · 0 comments

Comments

@yanghouqing
Copy link

yanghouqing commented Dec 13, 2024

pip -v 3.10.16 yanghouqing@yanghouqingdeMacBook-Pro ~ % iopaint start --model=lama --device=cpu --port=8080
2024-12-13 16:52:48.719 | INFO | iopaint.runtime:setup_model_dir:80 - Model directory: /Users/yanghouqing/.cache

  • Platform: macOS-15.0.1-arm64-arm-64bit
  • Python version: 3.10.16
  • torch: 2.5.1
  • torchvision: 0.20.1
  • Pillow: 9.5.0
  • diffusers: 0.27.2
  • transformers: 4.47.0
  • opencv-python: 4.10.0.84
  • accelerate: 1.2.0
  • iopaint: 1.5.4
  • rembg: N/A

╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /Users/yanghouqing/.pyenv/versions/3.10.16/lib/python3.10/site-packages/transformers/utils/import_utils.py:1793 in │
│ _get_module │
│ │
│ 1790 │ │
│ 1791 │ def _get_module(self, module_name: str): │
│ 1792 │ │ try: │
│ ❱ 1793 │ │ │ return importlib.import_module("." + module_name, self.name) │
│ 1794 │ │ except Exception as e: │
│ 1795 │ │ │ raise RuntimeError( │
│ 1796 │ │ │ │ f"Failed to import {self.name}.{module_name} because of the followin │
│ │
│ /Users/yanghouqing/.pyenv/versions/3.10.16/lib/python3.10/importlib/init.py:126 in import_module │
│ │
│ 123 │ │ │ if character != '.': │
│ 124 │ │ │ │ break │
│ 125 │ │ │ level += 1 │
│ ❱ 126 │ return _bootstrap._gcd_import(name[level:], package, level) │
│ 127 │
│ 128 │
│ 129 _RELOADING = {} │
│ in _gcd_import:1050 │
│ in _find_and_load:1027 │
│ in _find_and_load_unlocked:1006 │
│ in _load_unlocked:688 │
│ in exec_module:883 │
│ in _call_with_frames_removed:241 │
│ │
│ /Users/yanghouqing/.pyenv/versions/3.10.16/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py:28 │
│ in │
│ │
│ 25 from ...activations import ACT2FN │
│ 26 from ...modeling_attn_mask_utils import _create_4d_causal_attention_mask, _prepare_4d_at │
│ 27 from ...modeling_outputs import BaseModelOutput, BaseModelOutputWithPooling, ImageClassi │
│ ❱ 28 from ...modeling_utils import PreTrainedModel │
│ 29 from ...pytorch_utils import is_torch_greater_or_equal_than_2_2 │
│ 30 from ...utils import ( │
│ 31 │ ModelOutput, │
│ │
│ /Users/yanghouqing/.pyenv/versions/3.10.16/lib/python3.10/site-packages/transformers/modeling_utils.py:48 in │
│ │
│ │
│ 45 from .dynamic_module_utils import custom_object_save │
│ 46 from .generation import CompileConfig, GenerationConfig, GenerationMixin │
│ 47 from .integrations import PeftAdapterMixin, deepspeed_config, is_deepspeed_zero3_enabled │
│ ❱ 48 from .loss.loss_utils import LOSS_MAPPING │
│ 49 from .pytorch_utils import ( # noqa: F401 │
│ 50 │ Conv1D, │
│ 51 │ apply_chunking_to_forward, │
│ │
│ /Users/yanghouqing/.pyenv/versions/3.10.16/lib/python3.10/site-packages/transformers/loss/loss_utils.py:19 in │

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant