https://github.com/cyberagentailab/cr-renderer

Renderer for the Crello dataset

https://github.com/cyberagentailab/cr-renderer

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Renderer for the Crello dataset

Basic Info
  • Host: GitHub
  • Owner: CyberAgentAILab
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Size: 102 KB
Statistics
  • Stars: 6
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created almost 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

CR Renderer

This Python package renders document data in the crello dataset. This is a standalone renderer package from the OpenCOLE project.

Install

bash pip install git+https://github.com/CyberAgentAILab/cr-renderer

See pyproject.toml for the detail of dependency requirements.

Usage

For Crello dataset 5.0.0:

```python import datasets import huggingfacehub from crrenderer import CrelloV5Renderer

dataset = datasets.loaddataset( "cyberagent/crello", revision="5.0.0", split="train") fontspath = huggingfacehub.hfhubdownload( repoid="cyberagent/crello", filename="resources/fonts.pickle", repotype="dataset", revision="5.0.0", ) renderer = CrelloV5Renderer(dataset.features, fontspath) for example in dataset: image_bytes = renderer.render(example) ```

For Crello dataset 4.0.0:

```python import datasets from cr_renderer import CrelloV4Renderer

dataset = datasets.loaddataset( "cyberagent/crello", revision="4.0.0", split="train") renderer = CrelloV4Renderer(dataset.features) for example in dataset: imagebytes = renderer.render(example) ```

Development

The package is managed by uv. To start development:

bash git clone https://github.com/CyberAgentAILab/cr-renderer.git cd cr-renderer uv sync

Owner

  • Name: CyberAgent AI Lab
  • Login: CyberAgentAILab
  • Kind: organization
  • Location: Japan

GitHub Events

Total
  • Watch event: 7
  • Issue comment event: 1
  • Push event: 2
  • Pull request review event: 1
  • Pull request event: 4
  • Fork event: 3
Last Year
  • Watch event: 7
  • Issue comment event: 1
  • Push event: 2
  • Pull request review event: 1
  • Pull request event: 4
  • Fork event: 3

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 9 minutes
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 9 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • naoto0804 (1)
  • ktrk115 (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

pyproject.toml pypi
  • datasets [vision]>=2.14.0,<3.0
  • pydantic >=2.5.2,<3.0.0
  • skia-python >=120.0b5