salesforce / salesforce/LayoutDETR
Using different string-labels will casue "Key Error"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 107
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
When I try Layout generation in the wild and use string-labels except "header", "body", "button", "disclaimer / footnote", it will cause "Key Error" in Line 346. It seems other string-labels in label_list are not define in json_temp and element_specs. So how can we try string-labels like "Logo" and "pre-header"? Thanks a lot!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at line 346 and trace how string labels from label_list are looked up in json_temp and element_specs. Reproduce the failure with labels such as "Logo" and "pre-header"; done means those labels no longer cause a Key Error during layout generation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100