justin-zk commited on
Commit
b811177
1 Parent(s): d1e13bc

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -350,7 +350,7 @@ def inference_finetune(ic_image, ic_mask, image1, image2):
350
  mask_weights = Mask_Weights().cuda()
351
  # mask_weights = Mask_Weights()
352
  mask_weights.train()
353
- train_epoch = 1000
354
  optimizer = torch.optim.AdamW(mask_weights.parameters(), lr=1e-3, eps=1e-4)
355
  scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, train_epoch)
356
 
@@ -549,4 +549,4 @@ gr.TabbedInterface(
549
  [main, main_finetune],
550
  ["Personalize-SAM", "Personalize-SAM-F"],
551
  # ["Personalize-SAM", "Personalize-SAM-Scribble", "Personalize-SAM-F"],
552
- ).queue.launch()
 
350
  mask_weights = Mask_Weights().cuda()
351
  # mask_weights = Mask_Weights()
352
  mask_weights.train()
353
+ train_epoch = 100
354
  optimizer = torch.optim.AdamW(mask_weights.parameters(), lr=1e-3, eps=1e-4)
355
  scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, train_epoch)
356
 
 
549
  [main, main_finetune],
550
  ["Personalize-SAM", "Personalize-SAM-F"],
551
  # ["Personalize-SAM", "Personalize-SAM-Scribble", "Personalize-SAM-F"],
552
+ ).launch()