Giter Site home page Giter Site logo

Comments (5)

lstein avatar lstein commented on May 25, 2024

What is the full path to your models directory? I need to know whether the path is wrong or the file is missing…

from invokeai.

wolfkingal2000 avatar wolfkingal2000 commented on May 25, 2024

What is the full path to your models directory? I need to know whether the path is wrong or the file is missing…

%cd /content/InvokeAI/
!python /content/InvokeAI/scripts/invokeai-model-install.py --root_dir /content/db --yes --add this use full

from invokeai.

wolfkingal2000 avatar wolfkingal2000 commented on May 25, 2024

and

What is the full path to your models directory? I need to know whether the path is wrong or the file is missing…

and vr 3.7.0

give this error

ypeError: expected string or bytes-like object
[2024-03-12 14:30:54,749]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=controlnet HTTP/1.1" 200
[2024-03-12 14:30:54,754]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=lora HTTP/1.1" 200
[2024-03-12 14:30:54,770]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=ip_adapter HTTP/1.1" 200
[2024-03-12 14:30:54,772]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=t2i_adapter HTTP/1.1" 200
[2024-03-12 14:31:30,229]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "POST /api/v1/models/import HTTP/1.1" 500
[2024-03-12 14:31:30,229]::[uvicorn.error]::ERROR --> Exception in ASGI application

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/gzip.py", line 24, in call
await responder(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 91, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi_events/middleware.py", line 43, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 758, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 74, in app
response = await func(request)
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 299, in app
raise e
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 294, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/content/InvokeAI/invokeai/app/api/routers/models.py", line 174, in import_model
installed_models = ApiDependencies.invoker.services.model_manager.heuristic_import(
File "/content/InvokeAI/invokeai/app/services/model_manager/model_manager_default.py", line 325, in heuristic_import
return self.mgr.heuristic_import(items_to_import, prediction_type_helper)
File "/content/InvokeAI/invokeai/backend/model_management/model_manager.py", line 1118, in heuristic_import
installed = installer.heuristic_import(thing)
File "/content/InvokeAI/invokeai/backend/install/model_install_backend.py", line 279, in heuristic_import
models_installed.update({str(model_path_id_or_url): self._install_url(model_path_id_or_url)})
File "/content/InvokeAI/invokeai/backend/install/model_install_backend.py", line 333, in _install_url
location = download_with_resume(
File "/content/InvokeAI/invokeai/backend/util/util.py", line 294, in download_with_resume
file_name = re.search('filename="(.+)"', resp.headers.get("Content-Disposition")).group(1)
File "/usr/lib/python3.10/re.py", line 200, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
[2024-03-12 14:31:31,037]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=ip_adapter HTTP/1.1" 200
/usr/local/lib/python3.10/dist-packages/pydantic/type_adapter.py:256: ResourceWarning: unclosed <ssl.SSLSocket fd=47, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('172.28.0.12', 50326), raddr=('104.18.23.206', 443)>
return self.validator.validate_python(__object, strict=strict, from_attributes=from_attributes, context=context)
[2024-03-12 14:31:31,065]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=lora HTTP/1.1" 200
[2024-03-12 14:31:31,067]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=controlnet HTTP/1.1" 200
[2024-03-12 14:31:31,068]::[uvicorn.access]::INFO --> 23.150.248.153:0 - "GET /api/v1/models/?model_type=t2i_adapter HTTP/1.1" 200

from invokeai.

lstein avatar lstein commented on May 25, 2024

Are you using Google Collab? Can you tell me what the root directory is? Is it /content/db, or /root/invokeai/ ? This is the directory that contains invokeai.yaml.

Not sure what you are trying to do here:

python /content/InvokeAI/scripts/invokeai-model-install.py --root_dir /content/db --yes --add this use full

What you put after --add is the URL, path or repo_id of a model you want to install. "this use full" isn't either of these.

from invokeai.

wolfkingal2000 avatar wolfkingal2000 commented on May 25, 2024

Are you using Google Collab? Can you tell me what the root directory is? Is it /content/db, or /root/invokeai/ ? This is the directory that contains invokeai.yaml.

Not sure what you are trying to do here:

python /content/InvokeAI/scripts/invokeai-model-install.py --root_dir /content/db --yes --add this use full

What you put after --add is the URL, path or repo_id of a model you want to install. "this use full" isn't either of these.

Yes i use colab and invokeai.yaml in /content/db directory

from invokeai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.