Skip to content

FastAPI 実行時に Field "model_type" has confict with protected namespace "model_" と表示される #19

@unkosan

Description

@unkosan

以下全文

(raptgen) root@c445955600c4:/app# uvicorn --reload --host 0.0.0.0 dev:app
INFO:     Will watch for changes in these directories: ['/app']
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [238] using StatReload
/opt/conda/envs/raptgen/lib/python3.9/site-packages/pydantic/_internal/_fields.py:127: UserWarning: Field "model_name" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
/opt/conda/envs/raptgen/lib/python3.9/site-packages/pydantic/_internal/_fields.py:127: UserWarning: Field "model_type" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
INFO:     Started server process [240]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

model_type の名前を VAE_model_type 等に変えた方が良いかもしれない。

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions