Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color detect #777

Merged
merged 27 commits into from
Dec 20, 2023
Merged

Color detect #777

merged 27 commits into from
Dec 20, 2023

Conversation

denolf
Copy link
Collaborator

@denolf denolf commented Nov 22, 2023

Adding the color detect vision pipeline. This is should only be merged after #757.

@denolf denolf requested a review from AndraBisca November 22, 2023 23:12
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/3)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (2/3)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (3/3)

Copy link
Contributor

github-actions bot commented Dec 11, 2023

Coverage Report

Created: 2023-12-20 12:30

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
home/runner/work/mlir-aie/mlir-aie/lib/Dialect/AIE/IR/AIEDialect.cpp 92.11% 83.31% 85.99% 76.03%
Totals 92.11% 83.31% 85.99% 76.03%
Generated by llvm-cov -- llvm version 14.0.0

@AndraBisca AndraBisca marked this pull request as ready for review December 11, 2023 21:31
@denolf denolf requested a review from jackl-xilinx December 12, 2023 20:31
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/3)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (2/3)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (3/3)

Copy link
Collaborator

@jackl-xilinx jackl-xilinx left a comment

Choose a reason for hiding this comment

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

Added missing lut_inv_8b.h

test/python/ipu.py Outdated Show resolved Hide resolved
@makslevental makslevental force-pushed the colorDetect branch 4 times, most recently from 6310d3c to 2c14a47 Compare December 20, 2023 10:39
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@makslevental makslevental force-pushed the colorDetect branch 3 times, most recently from a0406e8 to 97d9542 Compare December 20, 2023 11:02
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@makslevental
Copy link
Contributor

@AndraBisca I tried to bump this but I can't get it to work; something is going wrong in the objectfifo passes; I get

  File "/home/mlevental/dev_projects/mlir-aie/cmake-build-debug/python/aie/compiler/aiecc/main.py", line 848, in run_flow
    self.run_passes(
  File "/home/mlevental/dev_projects/mlir-aie/cmake-build-debug/python/aie/compiler/aiecc/main.py", line 102, in run_passes
    PassManager.parse(pass_pipeline).run(module.operation)
aie._mlir_libs._site_initialize.<locals>.MLIRError: Failure while executing pass pipeline:
error: "-":122:9: 'func.call' op operand type mismatch: expected operand type 'memref<256xui8>', but provided 'memref<64xui8>' for operand number 1
 note: "-":122:9: see current operation: "func.call"(%9, %6, %85) <{callee = @gray2rgbaLine}> : (memref<64xui8>, memref<64xui8>, i32) -> ()

even though the input ir to aiecc is legal/fine.

@makslevental
Copy link
Contributor

makslevental commented Dec 20, 2023

nm I got it - OF_5to5b was the wrong size (needs to be ofifo_line_bytes_ty). Probably AIE.objectfifo.acquire should verify that the fifo it acquires from is the right size...

@makslevental makslevental force-pushed the colorDetect branch 2 times, most recently from 5565229 to 7b661b6 Compare December 20, 2023 12:24
@makslevental makslevental merged commit 0fd15a2 into main Dec 20, 2023
32 checks passed
@makslevental makslevental deleted the colorDetect branch December 20, 2023 12:46
@AndraBisca
Copy link
Collaborator

Thank you @makslevental! That check makes sense to add, I actually thought I already did but it seems not.

@makslevental
Copy link
Contributor

Thank you @makslevental! That check makes sense to add, I actually thought I already did but it seems not.

FYI I added it here to double check my understanding.

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.

5 participants