Skip to content

Commit

Permalink
[Fix] fix dreambooth (open-mmlab#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Fran authored Apr 28, 2023
1 parent f252d41 commit 9018722
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions configs/dreambooth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ The file structure will be like this:
```text
data
└── dreambooth
├── alvan-nee-Id1DBHv4fbg-unsplash.jpeg
├── alvan-nee-bQaAJCbNq3g-unsplash.jpeg
├── alvan-nee-brFsZ7qszSY-unsplash.jpeg
└── alvan-nee-eoqnr8ikwFE-unsplash.jpeg
└──imgs
├── alvan-nee-Id1DBHv4fbg-unsplash.jpeg
├── alvan-nee-bQaAJCbNq3g-unsplash.jpeg
├── alvan-nee-brFsZ7qszSY-unsplash.jpeg
└── alvan-nee-eoqnr8ikwFE-unsplash.jpeg
```

2. Start training with the following command:
Expand Down
2 changes: 1 addition & 1 deletion mmagic/models/utils/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def set_xformers(module: nn.Module, prefix: str = '') -> nn.Module:
nn.Module: The module with xformers' efficient Attention.
"""

if not xformers_is_enable:
if not xformers_is_enable():
print_log('Do not support Xformers. Please install Xformers first. '
'The program will run without Xformers.')
return
Expand Down

0 comments on commit 9018722

Please sign in to comment.