Browse Source

Modernize pre-commit (#34)

feature/cache_image_prompts
Aaron Gokaslan 4 years ago
committed by GitHub
parent
commit
aa46001015
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 22 deletions
  1. +1
    -1
      .gitignore
  2. +8
    -17
      .pre-commit-config.yaml
  3. +3
    -3
      README.md
  4. +1
    -1
      requirements.txt

+ 1
- 1
.gitignore View File

@ -166,4 +166,4 @@ runs/
jupyters/custom_*
*logs/
.DS_store
.DS_store

+ 8
- 17
.pre-commit-config.yaml View File

@ -1,31 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
rev: v4.0.1
hooks:
- id: check-docstring-first
stages:
- commit
- push
- id: check-merge-conflict
stages:
- push
- id: double-quote-string-fixer
stages:
- commit
- push
- id: end-of-file-fixer
- id: fix-encoding-pragma
stages:
- commit
- push
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: "4.0.1"
hooks:
- id: flake8
args: ['--config=setup.cfg']
stages:
- commit
- push
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
rev: v1.5.7
hooks:
- id: autopep8
stages:
- commit
- push

+ 3
- 3
README.md View File

@ -56,7 +56,7 @@ for top_k, top_p, images_num in [
(512, 0.97, 3),
(384, 0.96, 3),
(256, 0.95, 3),
(128, 0.95, 3),
(128, 0.95, 3),
]:
_pil_images, _scores = generate_images(text, tokenizer, dalle, vae, top_k=top_k, images_num=images_num, top_p=top_p)
pil_images += _pil_images
@ -97,6 +97,6 @@ skyes = [red_sky, sunny_sky, cloudy_sky, night_sky]
- [@neverix](https://www.kaggle.com/neverix) thanks a lot for contributing for speed up of inference
- [@Igor Pavlov](https://github.com/boomb0om) trained model and prepared code with [super-resolution](https://github.com/boomb0om/Real-ESRGAN-colab)
- [@oriBetelgeuse](https://github.com/oriBetelgeuse) thanks a lot for easy API of generation using image prompt
- [@Alex Wortega](https://github.com/AlexWortega) created first FREE version colab notebook with fine-tuning [ruDALL-E Malevich (XL)](https://huggingface.co/sberbank-ai/rudalle-Malevich) on sneakers domain 💪
- [@oriBetelgeuse](https://github.com/oriBetelgeuse) thanks a lot for easy API of generation using image prompt
- [@Alex Wortega](https://github.com/AlexWortega) created first FREE version colab notebook with fine-tuning [ruDALL-E Malevich (XL)](https://huggingface.co/sberbank-ai/rudalle-Malevich) on sneakers domain 💪
- [@Anton Lozhkov](https://github.com/anton-l) Integrated to [Huggingface Spaces](https://huggingface.co/spaces) with [Gradio](https://github.com/gradio-app/gradio), see [here](https://huggingface.co/spaces/anton-l/rudall-e)

+ 1
- 1
requirements.txt View File

@ -6,4 +6,4 @@ omegaconf>=2.0.0
einops~=0.3.2
torch
torchvision
matplotlib
matplotlib

Loading…
Cancel
Save