Skip to content

Bug: Transformer generates an extra B3 note at the end of measure 3 #110

Description

@JoeZhang42

Bug: Transformer generates an extra B3 note at the end of the 3rd measure of this page that doesn't exist in the source image

Environment

  • homr version: 0.7.0
  • Command: homr --coreml-encoder test_score02.jpg
  • Hardware: Apple M3, 16GB
  • Output format: MusicXML

Description

When processing a standard B♭ major piano score (digital score screenshot), the MusicXML output contains an extra B3 eighth note in the right hand (staff 1, voice 1) at the end of the 3rd measure of this page. This note does not exist in the original image.

Location

  • Score: test_score02 (B♭ major piano score)
  • Measure: 3
  • Part: Right hand (staff 1, voice 1)
  • Position: End of measure
  • Wrong note: B3 (step=B, octave=3), eighth note, duration=2

Context (correct musical passage)

The correct right hand sequence in measure 3 should be:

C5 (16th) → G4 (16th) → F4 (16th) → B♭4 (quarter) → (no note here) → measure 4 begins

But homr outputs an extra B3 eighth note after the B♭4 quarter, then proceeds to measure 4.

Reproducibility

100% reproducible. Running homr twice on the same image produces the exact same wrong note at the exact same position. This indicates it is a systematic misrecognition, not a random hallucination.

Root Cause Hypothesis

There are no musical notes at that position in the original image. However, other printed elements (fingering markers, pedal markings, dynamic signs, or layout artifacts) may have been misrecognized by the Transformer as a B3 eighth note.

Expected Behavior

The model should not generate notes at positions where no notes exist in the source image.

Attachment

Source image file: test_score02.jpg

(The image is a screenshot of an digital piano score in B♭ major, containing melody, chord accompaniment, pedal markings, etc.)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions