Suraj Patil
d07f73003d
Fix num images per prompt unclip ( #1787 )
...
* use repeat_interleave
* fix repeat
* Trigger Build
* don't install accelerate from main
* install released accelrate for mps test
* Remove additional accelerate installation from main.
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
2022-12-20 16:03:38 +01:00
Anton Lozhkov
086c7f9ea8
Nightly integration tests ( #1664 )
...
* [WIP] Nightly integration tests
* initial SD tests
* update SD slow tests
* style
* repaint
* ImageVariations
* style
* finish imgvar
* img2img tests
* debug
* inpaint 1.5
* inpaint legacy
* torch isn't happy about deterministic ops
* allclose -> max diff for shorter logs
* add SD2
* debug
* Update tests/pipelines/stable_diffusion_2/test_stable_diffusion.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update tests/pipelines/stable_diffusion/test_stable_diffusion.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* fix refs
* Update src/diffusers/utils/testing_utils.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
* fix refs
* remove debug
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
2022-12-16 18:51:11 +01:00
Anton Lozhkov
cc22bda5f6
[CI] Add slow MPS tests ( #1104 )
...
* [CI] Add slow MPS tests
* fix yml
* temporarily resolve caching
* Tests: fix mps crashes.
* Skip test_load_pipeline_from_git on mps.
Not compatible with float16.
* Increase tolerance, use CPU generator, alt. slices.
* Move to nightly
* style
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
2022-12-05 11:50:24 +01:00
Suraj Patil
0eb507f2af
StableDiffusionImageVariationPipeline ( #1365 )
...
* add StableDiffusionImageVariationPipeline
* add ini init
* use CLIPVisionModelWithProjection
* fix _encode_image
* add copied from
* fix copies
* add doc
* handle tensor in _encode_image
* add tests
* correct model_id
* remove copied from in enable_sequential_cpu_offload
* fix tests
* make slow tests pass
* update slow tests
* use temp model for now
* fix test_stable_diffusion_img_variation_intermediate_state
* fix test_stable_diffusion_img_variation_intermediate_state
* check for torch.Tensor
* quality
* fix name
* fix slow tests
* install transformers from source
* fix install
* fix install
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
* input_image -> image
* remove deprication warnings
* fix test_stable_diffusion_img_variation_multiple_images
* make flake happy
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
2022-11-23 14:36:39 +01:00
Anton Lozhkov
4e59bcc680
[CI] Framework and hardware-specific CI tests ( #997 )
...
* [WIP][CI] Framework and hardware-specific docker images for CI tests
* username
* fix cpu
* try out the image
* push latest
* update workspace
* no root isolation for actions
* add a flax image
* flax and onnx matrix
* fix runners
* add reports
* onnxruntime image
* retry tpu
* fix
* fix
* build onnxruntime
* naming
* onnxruntime-gpu image
* onnxruntime-gpu image, slow tests
* latest jax version
* trigger flax
* run flax tests in one thread
* fast flax tests on cpu
* fast flax tests on cpu
* trigger slow tests
* rebuild torch cuda
* force cuda provider
* fix onnxruntime tests
* trigger slow
* don't specify gpu for tpu
* optimize
* memory limit
* fix flax tests
* disable docker cache
2022-11-02 14:07:07 +01:00
Anton Lozhkov
1606eb994a
Fix pipelines user_agent, ignore CI requests ( #1058 )
...
* Fix pipelines user_agent, ignore CI requests
* fix circular import
* N/A versions
* N/A versions
2022-10-31 13:38:43 +01:00
Pedro Cuenca
a59f9990fc
Tests: upgrade PyTorch cuda to 11.7 to fix examples tests. ( #1048 )
...
Tests: upgrade PyTorch cuda to 11.7.
Otherwise the cuda versions of torch and torchvision mismatch, and
examples tests fail. We were requesting cuda 11.6 for PyTorch, and the
default torchvision (via setup.py).
Another option would be to include torchvision in the same pip install
line as torch.
2022-10-29 20:27:00 +02:00
Pi Esposito
b2e2d1411c
minimal stable diffusion GPU memory usage with accelerate hooks ( #850 )
...
* add method to enable cuda with minimal gpu usage to stable diffusion
* add test to minimal cuda memory usage
* ensure all models but unet are onn torch.float32
* move to cpu_offload along with minor internal changes to make it work
* make it test against accelerate master branch
* coming back, its official: I don't know how to make it test againt the master branch from accelerate
* make it install accelerate from master on tests
* go back to accelerate>=0.11
* undo prettier formatting on yml files
* undo prettier formatting on yml files againn
2022-10-26 15:52:57 +02:00
Anton Lozhkov
1070e1a38a
[CI] Speed up slow tests ( #708 )
...
* [CI] Localize the HF cache
* pip cache
* de-env
* refactor matrix
* fix fast cache
* less onnx steps
* revert
* revert pip cache
* revert pip cache
* remove debugging trigger
2022-10-03 22:16:23 +02:00
Anton Lozhkov
4f1c989ffb
Add smoke tests for the training examples ( #585 )
...
* Add smoke tests for the training examples
* upd
* use a dummy dataset
* mark as slow
* cleanup
* Update test cases
* naming
2022-09-21 13:36:59 +02:00
Anton Lozhkov
0a2c42f3e2
[Tests] Upload custom test artifacts ( #572 )
...
* make_reports
* add test utils
* style
* style
2022-09-19 17:08:29 +02:00
Anton Lozhkov
ab7857019a
Add missing auth tokens for two SD tests ( #296 )
2022-08-31 17:57:46 +02:00
Anton Lozhkov
c7a3b2ed31
Fix GPU tests (token + single-process) ( #294 )
2022-08-31 17:26:20 +02:00
Anton Lozhkov
7e1b202d5e
Add datasets + transformers + scipy to test deps ( #279 )
...
Add datasets + transformers to test deps
2022-08-30 20:19:21 +02:00
Anton Lozhkov
11133dcca1
Initialize CI for code quality and testing ( #256 )
...
* Init CI
* clarify cpu
* style
* Check scripts quality too
* Drop smi for cpu tests
* Run PR tests on cpu docker envs
* Update .github/workflows/push_tests.yml
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Try minimal python container
* Print env, install stable GPU torch
* Manual torch install
* remove deprecated platform.dist()
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2022-08-26 17:34:58 +02:00