Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Eun0 committed Nov 7, 2022
1 parent 25f86a4 commit c9b3e99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ The fine-tuned model can be found in `./checkpoint/cartoon/finetune-000600.pt`.
python destylize.py --model_name FINETUNED_MODEL_NAME --batch BATCH_SIZE --iter ITERATIONS DATASET_NAME
```
Take the cartoon dataset for example, run:
> python destylize.py --model_name fintune-000600.pt --batch 1 --iter 300 cartoon
> python destylize.py --model_name finetune-000600.pt --batch 1 --iter 300 cartoon
The intrinsic and extrinsic style codes are saved in `./checkpoint/cartoon/instyle_code.npy` and `./checkpoint/cartoon/exstyle_code.npy`, respectively. Intermediate results are saved in `./log/cartoon/destylization/`.
To speed up destylization, set `--batch` to large value like 16.
Expand Down
2 changes: 1 addition & 1 deletion destylize.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self):
self.parser.add_argument("style", type=str, help="target style type")
self.parser.add_argument("--truncation", type=float, default=0.7, help="truncation for intrinsic style code (content)")
self.parser.add_argument("--model_path", type=str, default='./checkpoint/', help="path of the saved models")
self.parser.add_argument("--model_name", type=str, default='fintune-000600.pt', help="name of the saved fine-tuned model")
self.parser.add_argument("--model_name", type=str, default='finetune-000600.pt', help="name of the saved fine-tuned model")
self.parser.add_argument("--data_path", type=str, default='./data/', help="path of dataset")
self.parser.add_argument("--iter", type=int, default=300, help="total training iterations")
self.parser.add_argument("--batch", type=int, default=1, help="batch size")
Expand Down
2 changes: 1 addition & 1 deletion finetune_stylegan.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def train(args, loader, generator, discriminator, g_optim, d_optim, g_ema, devic
#"args": args,
#"ada_aug_p": ada_aug_p,
},
f"%s/%s/fintune-%06d.pt"%(args.model_path, args.style, i+1),
f"%s/%s/finetune-%06d.pt"%(args.model_path, args.style, i+1),
)

if __name__ == "__main__":
Expand Down

0 comments on commit c9b3e99

Please sign in to comment.