Skip to content

Commit

Permalink
fix: allow tile_mode to be set to True or False for backward compatib…
Browse files Browse the repository at this point in the history
…ility
  • Loading branch information
brycedrennan committed Sep 10, 2023
1 parent 3b17d8b commit f243006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ A: The AI models are cached in `~/.cache/` (or `HUGGINGFACE_HUB_CACHE`). To dele

## ChangeLog

- fix: allow tile_mode to be set to True or False for backward compatibility

**13.1.0**
- feature: *api server now has feature parity with the python API*. View the docs at http://127.0.0.1:8000/docs after running `aimg server`
- `ImaginePrompt` is now a pydantic model and can thus be sent over the rest API
Expand Down
2 changes: 1 addition & 1 deletion imaginairy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def validate_negative_prompt(cls, v, values):
def validate_prompt_strength(cls, v):
return 7.5 if v is None else v

@validator("tile_mode", always=True)
@validator("tile_mode", always=True, pre=True)
def validate_tile_mode(cls, v):
if v is True:
return "xy"
Expand Down

0 comments on commit f243006

Please sign in to comment.