ostris / ai-toolkit

Various AI scripts. Mostly Stable Diffusion stuff.
MIT License
3.5k stars 375 forks source link

ModuleNotFoundError: No Module named 'ipadapter.ip_adapter' #147

Open garyvoo opened 2 months ago

garyvoo commented 2 months ago

hi! im getting this when pressing the train button after selecting images to train on. any advice? i installed the requirements with pip with no problems before (only warnings of old pip version). thanks!

 File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 859, in run
    result = context.run(func, *args)
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\venv\lib\site-packages\gradio\utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\flux_train_ui.py", line 229, in start_training
    job = get_job(config_path)
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\toolkit\job.py", line 28, in get_job
    from jobs import ExtensionJob
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\jobs\__init__.py", line 1, in <module>
    from .BaseJob import BaseJob
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\jobs\BaseJob.py", line 5, in <module>
    from jobs.process import BaseProcess
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\jobs\process\__init__.py", line 8, in <module>
    from .TrainSliderProcess import TrainSliderProcess
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\jobs\process\TrainSliderProcess.py", line 26, in <module>
    from .BaseSDTrainProcess import BaseSDTrainProcess
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\jobs\process\BaseSDTrainProcess.py", line 26, in <module>
    from toolkit.custom_adapter import CustomAdapter
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\toolkit\custom_adapter.py", line 11, in <module>
    from toolkit.models.ilora import InstantLoRAModule
  File "H:\ImageModel_Training\FluxLocalTraining\ai-toolkit\toolkit\models\ilora.py", line 12, in <module>
    from ipadapter.ip_adapter.resampler import  Resampler
ModuleNotFoundError: No module named 'ipadapter.ip_adapter'
konductor000 commented 2 months ago

You need to clone all other repositories, that are stored inside repositories dir, inside this one. This helped me to solve it

# inside ai-toolkit dir
git submodule update --init --recursive