๋ํจ์ ์ ํ์ฉํ ๊ฐ์ธํ๋ ํ ์คํธ ๊ธฐ๋ฐ ๋ฒกํฐ ๊ทธ๋ํฝ ์์ฑ ๋ชจ๋ธ
Clone the repository:
git clone https://github.com/soyeong-kwon/MyDreamer.git
sh script/install.sh
Download the personalized model weights from DreamMatcher. These weights are pretrained DreamBooth weights on the ViCo dataset.
You can find the pre-trained weights Link.
After downloading, store the weights in the following directory:
dreambooth/concept_models/
To run the model, execute:
sh script/run.sh
You can modify the following parameters to customize your settings:
- num_batch: Batch size for generating graphics.
- prompt_index_from / prompt_index_to: Specify the range of prompt indices you want to generate.
- mode: Set to normal or challenging.
- concept_id: Define which object you want to generate.
- total_step: Total number of steps for optimization.
- flag_prev: Set to true to enable DVSD.
- flag_igs: Set to true to enable DGS.
- gs_type: Define the DGS scheduling scheme.
- bg_lambda: Lambda value for background optimization.
- mprec: Use
no
for float32 precision orfp16
for float16 precision.
To evaluate the results, run:
sh script/eval.sh
Please update the following paths in the script:
real_folder
: Path to the folder containing real pixel images. (for FID)sample_folder
: Path to the folder containing sampled images.sample_dm_folder
: Path to the folder containing sampled images.
Note: The sample_folder
and sample_dm_folder
contain the same sampled images but differ in folder structure. You can use utils/move_samples.py
to create the sample_folder.