Skip to content
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

where is lora_pti??? #235

Open
sipie800 opened this issue Apr 28, 2023 · 2 comments
Open

where is lora_pti??? #235

sipie800 opened this issue Apr 28, 2023 · 2 comments

Comments

@sipie800
Copy link

sipie800 commented Apr 28, 2023

As readme says,

export MODEL_NAME="runwayml/stable-diffusion-v1-5"
export INSTANCE_DIR="./data/data_disney"
export OUTPUT_DIR="./exps/output_dsn"

lora_pti
--pretrained_model_name_or_path=$MODEL_NAME
--instance_data_dir=$INSTANCE_DIR
--output_dir=$OUTPUT_DIR
--train_text_encoder
--resolution=512
--train_batch_size=1
--gradient_accumulation_steps=4
--scale_lr
--learning_rate_unet=1e-4
--learning_rate_text=1e-5
--learning_rate_ti=5e-4
--color_jitter
--lr_scheduler="linear"
--lr_warmup_steps=0
--placeholder_tokens="|"
--use_template="style"
--save_steps=100
--max_train_steps_ti=1000
--max_train_steps_tuning=1000
--perform_inversion=True
--clip_ti_decay
--weight_decay_ti=0.000
--weight_decay_lora=0.001
--continue_inversion
--continue_inversion_lr=1e-4
--device="cuda:0"
--lora_rank=1 \

but where is the lora_pti? I can't find it anywhere? please fix it.

@todoroki
Copy link

todoroki commented May 1, 2023

Depends on your envirnment. First, you should run

pip install git+https://github.com/cloneofsimo/lora.git

or maybe you can install it after git clone

git clone https://github.com/cloneofsimo/lora.git && cd lora
pip install -e .

and then use 'which' command to find the file.

which lora_pti

in my environment, the lora_pti can be found
$HOME/.pyenv/shims/lora_pti

My environment
Ubuntu 22.04
pyenv + virtualenv

@eshiofune
Copy link

So for me, what helped (thanks to the comment above) was to first create a virtual environment and then run the commands in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants