Skip to content

feat: port image segmentation native code to C++#313

Merged
JakubGonera merged 9 commits into@jakubgonera/cppfrom
@jakubgonera/segmentation_cherry_pick
May 27, 2025
Merged

feat: port image segmentation native code to C++#313
JakubGonera merged 9 commits into@jakubgonera/cppfrom
@jakubgonera/segmentation_cherry_pick

Conversation

@JakubGonera
Copy link
Copy Markdown
Contributor

Description

Port image segmentation native code to C++.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improves or adds clarity to existing documentation)

Tested on

  • iOS
  • Android

Related issues

#256 #255

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

@JakubGonera JakubGonera changed the base branch from main to @jakubgonera/cpp May 21, 2025 11:17
@JakubGonera JakubGonera force-pushed the @jakubgonera/segmentation_cherry_pick branch 2 times, most recently from 353d8e6 to c2064bb Compare May 21, 2025 14:08
@JakubGonera JakubGonera linked an issue May 22, 2025 that may be closed by this pull request
@JakubGonera JakubGonera marked this pull request as ready for review May 22, 2025 15:10
@JakubGonera JakubGonera requested a review from chmjkb May 22, 2025 15:10
@JakubGonera JakubGonera self-assigned this May 23, 2025
@JakubGonera JakubGonera force-pushed the @jakubgonera/segmentation_cherry_pick branch from d4477bd to 5363df4 Compare May 23, 2025 08:56
@JakubGonera JakubGonera requested a review from mkopcins May 26, 2025 08:43
Comment thread common/rnexecutorch/data_processing/Numerical.cpp Outdated
Comment thread common/rnexecutorch/data_processing/Numerical.h Outdated
Comment thread common/rnexecutorch/jsi/OwningArrayBuffer.h
std::shared_ptr<react::CallInvoker> callInvoker)
: BaseModel(modelSource, callInvoker) {

std::vector<int32_t> modelInputShape = getInputShape()[0];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert on at least two elements in modelInputShape

: BaseModel(modelSource, runtime) {
std::shared_ptr<react::CallInvoker> callInvoker)
: BaseModel(modelSource, callInvoker) {
std::vector<int32_t> modelInputShape = getInputShape()[0];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert on modelInputShape at least 2

JakubGonera and others added 2 commits May 26, 2025 15:48
Co-authored-by: Mateusz Sluszniak <56299341+msluszniak@users.noreply.github.com>
Co-authored-by: Mateusz Sluszniak <56299341+msluszniak@users.noreply.github.com>
@JakubGonera JakubGonera merged commit 24f4d2a into @jakubgonera/cpp May 27, 2025
1 check passed
@JakubGonera JakubGonera deleted the @jakubgonera/segmentation_cherry_pick branch May 27, 2025 07:58
JakubGonera added a commit that referenced this pull request May 28, 2025
Port image segmentation native code to C++.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

- [x] iOS
- [x] Android

- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [x] My changes generate no new warnings

---------

Co-authored-by: Mateusz Sluszniak <56299341+msluszniak@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port image segmentation to C++

3 participants