limoran commited on
Commit
67bbb32
1 Parent(s): 5cc4a9f

renew files

Browse files
Files changed (3) hide show
  1. .gitattributes +16 -0
  2. test_sp2pII.py +4 -4
  3. train.py +3 -3
.gitattributes CHANGED
@@ -54,3 +54,19 @@ pretrained_models/phase3_pretrain_10000.pth filter=lfs diff=lfs merge=lfs -text
54
  checkpoints/01/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
55
  example/source/01.png filter=lfs diff=lfs merge=lfs -text
56
  example/source/03.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  checkpoints/01/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
55
  example/source/01.png filter=lfs diff=lfs merge=lfs -text
56
  example/source/03.png filter=lfs diff=lfs merge=lfs -text
57
+ checkpoints/ filter=lfs diff=lfs merge=lfs -text
58
+ example/ filter=lfs diff=lfs merge=lfs -text
59
+ checkpoints/01 filter=lfs diff=lfs merge=lfs -text
60
+ checkpoints/02 filter=lfs diff=lfs merge=lfs -text
61
+ checkpoints/04 filter=lfs diff=lfs merge=lfs -text
62
+ checkpoints/pop_art filter=lfs diff=lfs merge=lfs -text
63
+ example/outputs filter=lfs diff=lfs merge=lfs -text
64
+ example/reference filter=lfs diff=lfs merge=lfs -text
65
+ checkpoints/03 filter=lfs diff=lfs merge=lfs -text
66
+ checkpoints/watercolor_painting filter=lfs diff=lfs merge=lfs -text
67
+ example/source filter=lfs diff=lfs merge=lfs -text
68
+ checkpoints/04/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
69
+ checkpoints/pop_art/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
70
+ checkpoints/watercolor_painting/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
71
+ checkpoints/02/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
72
+ checkpoints/03/epoch_latest.pth filter=lfs diff=lfs merge=lfs -text
test_sp2pII.py CHANGED
@@ -12,12 +12,12 @@ from models.style_based_pix2pixII_model import Stylizer, TrainingPhase
12
  if __name__ == '__main__':
13
  # define & parse args
14
  parser = argparse.ArgumentParser(description='sp2pII test')
15
- parser.add_argument('--ckpt', type=str, default='./checkpoints/01/epoch_latest.pth')
16
  parser.add_argument('--in_folder', type=str, default='./example/source')
17
- parser.add_argument('--out_folder', type=str, default='./example/outputs/one-shot')
18
  parser.add_argument('--phase', type=int, default=3)
19
- parser.add_argument('--txt_prompt', type=str, default='sketch with black pencil')
20
- parser.add_argument('--img_prompt', type=str, default='./example/reference/01.png')
21
  parser.add_argument('--device', type=str, default='cuda:0')
22
  args = parser.parse_args()
23
  args.phase = TrainingPhase(args.phase)
 
12
  if __name__ == '__main__':
13
  # define & parse args
14
  parser = argparse.ArgumentParser(description='sp2pII test')
15
+ parser.add_argument('--ckpt', type=str, default='./checkpoints/watercolor_painting/epoch_latest.pth')
16
  parser.add_argument('--in_folder', type=str, default='./example/source')
17
+ parser.add_argument('--out_folder', type=str, default='./example/outputs/zero-shot/watercolor_painting')
18
  parser.add_argument('--phase', type=int, default=3)
19
+ parser.add_argument('--txt_prompt', type=str, default='watercolor painting')
20
+ parser.add_argument('--img_prompt', type=str, default='') # ./example/reference/04.png
21
  parser.add_argument('--device', type=str, default='cuda:0')
22
  args = parser.parse_args()
23
  args.phase = TrainingPhase(args.phase)
train.py CHANGED
@@ -21,9 +21,9 @@ def main():
21
  # parse arguments
22
  parser = argparse.ArgumentParser(description='Style Master')
23
  parser.add_argument('--cfg_file', type=str, default='./exp/sp2pII-phase4.yaml')
24
- parser.add_argument('--image_prompt', type=str, default='./example/reference/01.png')
25
- parser.add_argument('--text_prompt', type=str, default='sketch with black pencil')
26
- parser.add_argument('--name', type=str, default='01')
27
 
28
  args = parser.parse_args()
29
 
 
21
  # parse arguments
22
  parser = argparse.ArgumentParser(description='Style Master')
23
  parser.add_argument('--cfg_file', type=str, default='./exp/sp2pII-phase4.yaml')
24
+ parser.add_argument('--image_prompt', type=str, default='') #./example/reference/04.png
25
+ parser.add_argument('--text_prompt', type=str, default='watercolor painting')
26
+ parser.add_argument('--name', type=str, default='watercolor_painting')
27
 
28
  args = parser.parse_args()
29