Skip to content

Add build instructions to README #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,22 @@ If you find InfiniteYou useful for your research or applications, please cite ou
```

We also appreciate it if you could give a star :star: to this repository. Thanks a lot!

## Build

To build and run the project, follow these steps:

* Ensure you have the necessary dependencies installed. You can install them by running:
```bash
pip install -r requirements.txt
```
* Download the required models. This can be done by running the `download_models()` function in `app.py`.
* To run the local inference script, use the following command:
```bash
python test.py --id_image ./assets/examples/yann-lecun_resize.jpg --prompt "A man, portrait, cinematic" --out_results_dir ./results
```
* To launch the local Gradio demo, run:
```bash
python app.py
```
* For more details on the arguments and options, refer to the comments and documentation in `test.py` and `app.py`.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ sentencepiece==0.2.0
torch==2.2.1
torchvision==0.17.1
transformers==4.48.0
peft==0.14.0
peft==0.14.0