recoilme commited on
Commit
3de6c96
·
1 Parent(s): 2efafae
samples/2b_192x384_0.jpg ADDED

Git LFS Details

  • SHA256: 667256f005fa27d152f709dc3e748a8935a8cedaeca878eaa4a5dcbe28823da2
  • Pointer size: 130 Bytes
  • Size of remote file: 30.5 kB
samples/2b_256x384_0.jpg ADDED

Git LFS Details

  • SHA256: 00340f14ef1ea76f6012ca363f78ebc529b666ab393af458169ef68e8336d6fa
  • Pointer size: 130 Bytes
  • Size of remote file: 49.8 kB
samples/2b_320x384_0.jpg ADDED

Git LFS Details

  • SHA256: 5a9233d352fc2b2913d3bed8c1cc42a0b5b96cd9d7b1c74d5442183083be203e
  • Pointer size: 130 Bytes
  • Size of remote file: 60.1 kB
samples/2b_384x192_0.jpg ADDED

Git LFS Details

  • SHA256: 139f6c63b61192ac66a5e04b4a47d5a9f8dcb16ea9fb213b152439112a7b1597
  • Pointer size: 130 Bytes
  • Size of remote file: 35.9 kB
samples/2b_384x256_0.jpg ADDED

Git LFS Details

  • SHA256: 641338fa23533a1b20b6be5341b07925b5225e582ff244bc43a0d52d2e82cc15
  • Pointer size: 130 Bytes
  • Size of remote file: 31.3 kB
samples/2b_384x320_0.jpg ADDED

Git LFS Details

  • SHA256: 2cde6f030c977b0241fe68acfbf81f3ed74107b53a2a74ad8f471a0d649c8c45
  • Pointer size: 130 Bytes
  • Size of remote file: 67.7 kB
samples/2b_384x384_0.jpg ADDED

Git LFS Details

  • SHA256: 8d614644c5067db6a60833804ecc401933756146133d0218b81d4bd0ab66c10d
  • Pointer size: 130 Bytes
  • Size of remote file: 55.8 kB
train.py CHANGED
@@ -27,19 +27,19 @@ import torch.nn.functional as F
27
  # --------------------------- Параметры ---------------------------
28
  ds_path = "datasets/384"
29
  project = "2b"
30
- batch_size = 200 #50
31
  base_learning_rate = 8e-5
32
  min_learning_rate = 4e-5
33
- num_epochs = 40
34
  # samples/save per epoch
35
- sample_interval_share = 5
36
  use_wandb = True
37
  save_model = True
38
  use_decay = True
39
  fbp = False # fused backward pass
40
  optimizer_type = "adam8bit"
41
  torch_compile = False
42
- unet_gradient = True
43
  clip_sample = False #Scheduler
44
  fixed_seed = False
45
  shuffle = True
@@ -400,7 +400,7 @@ if os.path.isdir(latest_checkpoint):
400
  if torch_compile:
401
  print("compiling")
402
  torch.set_float32_matmul_precision('high')
403
- unet = torch.compile(unet)#, mode="reduce-overhead", fullgraph=True)
404
  print("compiling - ok")
405
 
406
  if lora_name:
 
27
  # --------------------------- Параметры ---------------------------
28
  ds_path = "datasets/384"
29
  project = "2b"
30
+ batch_size = 16 #50
31
  base_learning_rate = 8e-5
32
  min_learning_rate = 4e-5
33
+ num_epochs = 10
34
  # samples/save per epoch
35
+ sample_interval_share = 10
36
  use_wandb = True
37
  save_model = True
38
  use_decay = True
39
  fbp = False # fused backward pass
40
  optimizer_type = "adam8bit"
41
  torch_compile = False
42
+ unet_gradient = False
43
  clip_sample = False #Scheduler
44
  fixed_seed = False
45
  shuffle = True
 
400
  if torch_compile:
401
  print("compiling")
402
  torch.set_float32_matmul_precision('high')
403
+ unet = torch.compile(unet, mode="reduce-overhead", fullgraph=False)
404
  print("compiling - ok")
405
 
406
  if lora_name: