lightly-ai / lightly

A python library for self-supervised learning on images.
https://docs.lightly.ai/self-supervised-learning/
MIT License
2.89k stars 249 forks source link

Add support for pydantic v2 #1577

Closed guarin closed 1 month ago

guarin commented 1 month ago

Changes

Closes #1526

This allows installing lightly in an environment with Pydantic v2. Internally we still use Pydantic v1 for the API client (using from pydantic.v1 import).

How was it tested?

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.81%. Comparing base (454ad06) to head (ccc1fff).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1577 +/- ## ======================================= Coverage 81.81% 81.81% ======================================= Files 144 144 Lines 6120 6120 ======================================= Hits 5007 5007 Misses 1113 1113 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.