Pierre Chapuis
10dfa73a09
Add Multi-View Aggregation Network (MVANet)
...
Co-authored-by: Pierre Colle <piercus@gmail.com>
2024-08-26 13:59:02 +02:00
Pierre Chapuis
299217f45a
bump pillow and pyright
2024-07-17 19:22:16 +02:00
Pierre Chapuis
2ba83f575e
switch pytest import mode to importlib
...
see:
https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html#choosing-an-import-mode
https://docs.pytest.org/en/7.1.x/explanation/pythonpath.html#import-modes
This change fixes the SAM tests.
2024-06-24 17:19:05 +02:00
Pierre Chapuis
567cc9c6d9
update pyright
2024-06-24 11:12:29 +02:00
Laurent
3ad7f592db
(training_utils) add NeptuneCallback
2024-05-28 16:35:11 +02:00
Laurent
eb4bb34f8b
(training_utils) add new ForceCommit callback
2024-04-16 14:43:10 +02:00
Cédric Deltheil
c529006d13
get rid of invisible-watermark test dependency
...
Was needed originally for diffusers' StableDiffusionXLPipeline. It has
been relaxed in the meanwhile (see `add_watermarker` for details).
2024-04-03 14:48:56 +02:00
Laurent
ef427538a6
revert "arange" typo ignore
2024-04-02 18:18:22 +02:00
Pierre Chapuis
6c40f56c3f
make numpy dependency explicit
2024-04-02 18:15:52 +02:00
Pierre Chapuis
fd5a15c7e0
update pyright and fix Pillow 10.3 typing issues
2024-04-02 18:15:52 +02:00
Laurent
328fcb8ed1
update typos config, ignore torch.arange
2024-04-02 15:37:28 +02:00
Laurent
4f94dfb494
implement dinov2 positional embedding interpolation
2024-04-02 10:02:43 +02:00
Pierre Colle
5c937b184a
HQ-SAM logit equal test, following #331
2024-03-23 21:58:32 +01:00
hugojarkoff
a93ceff752
Add HQ-SAM Adapter
2024-03-21 15:36:55 +01:00
Pierre Chapuis
defbb9eb3a
update deps and use ruff in Rye to format
2024-03-05 19:40:52 +01:00
Cédric Deltheil
7792cffea5
bump library version to v0.4.0
2024-02-26 14:54:53 +01:00
Laurent
d590c0e2fa
add typos
to dev-dependencies, also remove ruff
from non dev-dependencies
2024-02-09 12:12:51 +01:00
Cédric Deltheil
d7aadf99de
add spelling.yml to spot spelling mistakes
...
See https://github.com/crate-ci/typos/blob/master/docs/github-action.md
for details
2024-02-07 17:51:25 +01:00
Cédric Deltheil
907a6becbc
bump library version to v0.3.1
2024-02-06 15:22:15 +01:00
Cédric Deltheil
f9305aa416
pyproject.toml: add some PyPI classifiers
...
In particuler, the Python versions (3.10, etc) used to be included with
builds created with Poetry (they got removed after the switch to Rye:
see #141 ). This commit should fix the broken pypi badge.
2024-02-06 11:40:01 +01:00
Cédric Deltheil
ec401133f1
bump library version to v0.3.0
2024-02-05 10:27:22 +01:00
Pierre Chapuis
83b478c0ff
fix test failure caused by Diffusers 0.26.0
2024-02-04 08:58:22 +01:00
Pierre Chapuis
4e80d295bd
ruff 0.2.0
2024-02-02 14:46:37 +01:00
Laurent
7307a3686e
(docstrings) apply @deltheil suggestions
2024-02-02 11:08:21 +01:00
Laurent
84d5796f08
(pyproject.toml) move doc deps inside their own project.optional-dependencies
...
+ add `black` formatter, required by mkdocstrings to format signatures
2024-02-02 11:08:21 +01:00
Pierre Chapuis
3f3d192375
foundational -> foundation
2024-02-01 18:57:16 +01:00
Laurent
099510d6c0
configure and initialize mkdocstrings
2024-02-01 11:48:32 +01:00
Pierre Chapuis
b2c26ab51c
drop scipy dependency (now in bitsandbytes)
2024-01-31 15:03:06 +01:00
Pierre Chapuis
7eb8eb4c68
add support for pytorch 2.2 (2.1 is still supported)
...
also bump all dev dependencies to their latest version
2024-01-31 15:03:06 +01:00
Cédric Deltheil
146a1fae2a
add mkdocstrings as dev dependency
...
Via:
rye add --dev "mkdocstrings[python]"
Also added to requirements.docs.txt for GH Pages.
2024-01-31 14:27:47 +01:00
Pierre Chapuis
1eb5c779de
better coverage config
...
- exclude e.g. tests
- include files not imported at all
- exclude some common patterns (see https://coverage.readthedocs.io/en/7.4.1/excluding.html#excluding-source-files )
2024-01-29 22:32:16 +01:00
Cédric Deltheil
5a8389ee0d
pyproject.toml: formatting
2024-01-29 15:10:06 +01:00
Cédric Deltheil
cd64bb29e6
add rye scripts for code coverage
2024-01-29 15:10:06 +01:00
Cédric Deltheil
1efb7a0e10
rye add --dev coverage
2024-01-29 15:10:06 +01:00
Bryce
12a5439fc4
refactor: rename noise => predicted_noise
...
and in euler, `alt_noise` can now be simply `noise`
2024-01-24 18:15:10 +01:00
Cédric Deltheil
9b9578cb7e
add new rye script for mkdocs serving
...
i.e. useful for preview:
rye run serve-docs
2024-01-08 17:54:54 +01:00
Cédric Deltheil
f3f9ab8c3c
add mkdocs-material as dev dependency
...
Via:
rye add --dev mkdocs-material
2024-01-08 17:54:54 +01:00
limiteinductive
20c229903f
upgrade pyright to 1.1.342 ; improve no_grad typing
2023-12-29 15:09:02 +01:00
limiteinductive
0f560437bc
add tomli to training dependancy
2023-12-20 11:11:44 +01:00
Bryce
5ca1549c96
refactor: convert bash script to python
...
Ran successfully to completion. But on a repeat run `convert_unclip` didn't pass the hash check for some reason.
- fix inpainting model download urls
- shows a progress bar for downloads
- skips downloading existing files
- uses a temporary file to prevent partial downloads
- can do a dry run to check if url is valid `DRY_RUN=1 python scripts/prepare_test_weights.py`
- displays the downloaded file hash
2023-12-15 09:55:59 +01:00
Cédric Deltheil
c8d5faff9b
pyproject.toml: add example for combine-as-imports
...
b44d612
was misleading (s/avoid/allow/)
2023-12-11 13:57:57 +01:00
Cédric Deltheil
b44d6122c4
pyproject.toml: enable isort rule in Ruff
...
Use `combine-as-imports = true` [1] to avoid such kinds or imports on a
single line:
from torch import Tensor, device as Device, dtype as DType
[1]: https://docs.astral.sh/ruff/settings/#isort-combine-as-imports
2023-12-11 11:58:43 +01:00
Cédric Deltheil
4c07225d68
pyproject.toml: remove tool.isort section
...
Ruff is going to be used instead.
Follow up of #141
2023-12-11 11:58:43 +01:00
Cédric Deltheil
4fc5e427b8
training_utils: fix extra detection
...
Requirements could be, e.g.:
wandb (>=0.15.7,<0.16.0) ; extra == "training"
Or:
wandb>=0.16.0; extra == 'training'
Follow up of 86c5497
2023-12-08 19:09:16 +01:00
limiteinductive
86c54977b9
replace poetry by rye for python dependency management
...
Co-authored-by: Cédric Deltheil <cedric@deltheil.me>
Co-authored-by: Pierre Chapuis <git@catwell.info>
2023-12-08 17:40:10 +01:00
Pierre Chapuis
f22f969d65
remove Black preview mode
...
also fix multiline logs in training
2023-12-04 14:15:56 +01:00
Cédric Deltheil
e70dee987e
use segment-anything unofficial Python package
...
Via:
poetry remove segment-anything
poetry add --optional segment-anything-py==1.0
Needed to publish on PyPI otherwise it fails (error: Can't have direct
dependency)
2023-10-21 13:51:06 +02:00
Cédric Deltheil
e74454473d
bump library version to v0.2.0
2023-10-20 18:28:31 +02:00
Cédric Deltheil
e35dce825f
pyproject.toml: add a note about scipy + bitsandbytes
2023-10-11 15:43:04 +02:00
Cédric Deltheil
5158187e96
poetry add torch@^2.1.0
2023-10-10 14:19:47 +02:00