Skip to content

Commit 27d40cd

Browse files
andriiryzhkovTurboGit
authored andcommitted
Move segmentation from src/ai to src/common/ai for consistency
1 parent 9efaefb commit 27d40cd

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ if(USE_AI)
461461

462462
FILE(GLOB SOURCE_FILES_AI
463463
"common/ai_models.c"
464+
"common/ai/segmentation.c"
464465
"develop/masks/object.c"
465466
"gui/preferences_ai.c"
466467
)

src/ai/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ add_library(darktable_ai STATIC
44
backend.h
55
backend_common.c
66
backend_onnx.c
7-
segmentation.h
8-
segmentation.c
97
)
108

119
# Find ONNX Runtime (auto-downloads if not present)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
along with darktable. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#include "segmentation.h"
20-
#include "backend.h"
19+
#include "common/ai/segmentation.h"
20+
#include "ai/backend.h"
2121
#include "common/darktable.h"
2222
#include <inttypes.h>
2323
#include <math.h>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#pragma once
2020

21-
#include "backend.h"
21+
#include "ai/backend.h"
2222
#include <glib.h>
2323

2424
/**

src/develop/masks/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
along with darktable. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#include "ai/segmentation.h"
19+
#include "common/ai/segmentation.h"
2020
#include "common/ai_models.h"
2121
#include "common/colorspaces.h"
2222
#include "common/debug.h"

0 commit comments

Comments
 (0)