Skip to content

Commit caeb26c

Browse files
committed
keeep adapting for macros
1 parent 7388a4a commit caeb26c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/ai/nets/samj/gui/MainGUI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ protected < T extends RealType< T > & NativeType< T > > void batchSAMize() {
540540
consumer.setFocusedImage(this.cmbImages.getSelectedObject());
541541
new Thread(() -> {
542542
try {
543+
consumer.notifyBatchSamize();
543544
cmbModels.getSelectedModel().processBatchOfPrompts(pointPrompts, rectPrompts, rai, batchDrawerCallback);
544545
} catch (IOException | RuntimeException | InterruptedException e) {
545546
e.printStackTrace();

src/main/java/ai/nets/samj/ui/ConsumerInterface.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ public interface ConsumerCallback {
101101
public abstract void deleteRectRoi(Rectangle rect);
102102

103103
public abstract boolean isValidPromptSelected();
104+
105+
/**
106+
* Notify when the user has clicked on the button batchSAMIZe
107+
*/
108+
public abstract void notifyBatchSamize();
104109

105110
public void setModel(SAMModel model) {
106111
this.selectedModel = model;

0 commit comments

Comments
 (0)