From e7b6a1eb3dbbf142bdd77e34a6abb7a9907ea1a9 Mon Sep 17 00:00:00 2001 From: shan1919 <186241534+sangshanrupesh@users.noreply.github.com> Date: Thu, 27 Mar 2025 11:04:52 -0400 Subject: [PATCH 1/2] Add build instructions to README --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bytedance/infiniteyou?shareId=XXXX-XXXX-XXXX-XXXX). --- README.md | 19 +++++++++++++++++++ requirements.txt | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 422538a..900df4e 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/requirements.txt b/requirements.txt index 1635675..9036ddc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,4 +16,4 @@ sentencepiece==0.2.0 torch==2.2.1 torchvision==0.17.1 transformers==4.48.0 -peft==0.14.0 \ No newline at end of file +peft==0.14.0 From 8f7580ffaf641aa838172d9fcb53d731e687db19 Mon Sep 17 00:00:00 2001 From: shan1919 <186241534+sangshanrupesh@users.noreply.github.com> Date: Thu, 27 Mar 2025 11:05:22 -0400 Subject: [PATCH 2/2]