| --- |
| license: agpl-3.0 |
| --- |
| |
| GPT2 Prompt Expansion model from [lllyasviel/Fooocus](https://github.com/lllyasviel/Fooocus) |
|
|
| Third-party [license terms](https://github.com/lllyasviel/Fooocus/blob/main/LICENSE) |
|
|
| ## Disclaimer |
| All trademarks, logos, and brand names are the property of their respective owners. |
| All company, product and service names used in this website and licensed applications are for identification purposes only. |
| Use of these names, trademarks, and brands does not imply endorsement. |
|
|
| ## 例子 |
| - 1.下载模型到你的目录 |
| - 2.修改expansion.py |
| - path_fooocus_expansion ="你的目录" |
| - 比如: path_fooocus_expansion ="extras/fooocus_expansion" |
| - 3.app.py |
| |
| - from extras.expansion import FooocusExpansion |
| - expansion = FooocusExpansion() |
| - prompt ="kpop 1girl" |
| - prompt = expansion(prompt, seed) |
| - print(prompt) |
| |
| - 4.运行 |
| - python app.py |