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

[BUG]: Warnings about pydantic schemas when using library mode #326

Open
randerzander opened this issue Jan 14, 2025 · 0 comments
Open

[BUG]: Warnings about pydantic schemas when using library mode #326

randerzander opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@randerzander
Copy link
Collaborator

Version

main branch

Which installation method(s) does this occur on?

No response

Describe the bug.

On importing nv-ingest:

/raid/rgelhausen/miniforge3/envs/nvingest/lib/python3.10/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "model_name" in ImageCaptionExtractionSchema has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
/raid/rgelhausen/miniforge3/envs/nvingest/lib/python3.10/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "model_name" in IngestTaskCaptionSchema has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
/raid/rgelhausen/miniforge3/envs/nvingest/lib/python3.10/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "model_name" in CaptionTaskSchema has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(

Minimum reproducible example

Relevant log output

Other/Misc.

No response

@randerzander randerzander added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant