Skip to content

Hf remover#1

Open
lobsam wants to merge 14 commits into
mainfrom
hf-remover
Open

Hf remover#1
lobsam wants to merge 14 commits into
mainfrom
hf-remover

Conversation

@lobsam

@lobsam lobsam commented Apr 10, 2026

Copy link
Copy Markdown

@lobsam lobsam requested a review from eroux April 10, 2026 10:13
@lobsam lobsam self-assigned this Apr 10, 2026

@eroux eroux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please remove masking code and see the comments

Comment thread scripts/detect_hff_pipeline.md Outdated

| field | type | description |
|---|---|---|
| `w_id` | string | Work ID |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no need to have the w_id and i_id in the parquet files

Comment thread scripts/detect_hff_pipeline.md Outdated

Each bbox is four `[x, y]` corner points (top-left → top-right → bottom-right → bottom-left).

Files are written to `<output-dir>/<w_id>/<i_id>/detections.jsonl` and `detections.parquet`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no need for a jsonl, all the info is in the parquet

Comment thread bec_orch/jobs/hffv1/worker.py Outdated
].read()

# ── detect ─────────────────────────────────────────────────────
bgr = _bytes_to_bgr(body)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is quite fragile at the moment, there's a lot of images with very different characteristics on BDRC, please use better tested code like https://github.com/buda-base/bec-orchestration/blob/main/bec_orch/jobs/shared/decoder.py#L760 . Also please understand what frame size Surya operates on so the code can directly resize without having the Surya preprocessor do another resizing pass

Comment thread bec_orch/jobs/hffv1/worker.py Outdated

# ── mask (white-out HFF regions) ───────────────────────────────
if dets:
result_bgr = _mask_hff_regions(bgr, dets, margin=self.cfg.margin)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

as I tried to express many times, no masking please

Comment thread bec_orch/jobs/hffv1/worker.py Outdated
result_bgr = bgr

# ── upload ─────────────────────────────────────────────────────
out_bytes = _bgr_to_bytes(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nope

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.

2 participants