Spaces:
Sleeping
Sleeping
update app.py
Browse files
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 =
|
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 |
-
).
|
|
|
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()
|