Giter VIP home page Giter VIP logo

accid_baseline's Introduction

ACCID_baseline

ACCID baseline is a zero-shot framework for character recognition. It extracts radical information (including radical categories and relative structural relations between radicals) via neural networks, then performs character recognition by exploiting this information for reasoning in a character knowledge graph.

Files:

  1. train.py: Model training pipeline
  2. ger_RPs_SP.py: predict radical predictions (RPs) and structural relation predictions (SP).
  3. CR.py: reasoning in the character dictionary via RPs and SP, now the dictionary are shown as a knowledge dictionary graph.
  4. oracle_779_KG.owl: an example of an oracle character knowledge graph.
  5. radical_train.txt: a txt file with images path and their radical annotation information, generated by the voc_annotation.py.
  6. radical_annotation.py: generating radical_train.txt, which is used for training models.

Folders:

  1. GenerateXMLforSingleRadical: automatically generate the XML files for characters with a single radical, which helps to alleviate the annotation cost.
  2. nets: models and layers.
    • RSE.py: main network used to extract radical categories and relative structural relations between radicals in parallel.
    • DAL.py: building an attention layer.
    • radical_loss.py: the loss function of RSE.
  3. utils: Helpers and tools.
    • config.py: offer some parameters used in RSE.
    • dataloader.py: loading images from the target path.
    • utils.py: some function used in RSE.
  4. Datasets\ACCID2023: a subset of the proposed dataset, including character-level and radical-level annotations. Here we show an subset of the proposed dataset because of the space limitations.

Requirements:

  • CUDA==10.2
  • cudnn==8.0
  • python==3.6
  • torch==1.8.0
  • torchvision==0.9.0
  • DNN-printer==0.0.2
  • numpy
  • rdflib
  • collections
  • PIL
  • tqdm
  • wmi (optional)

accid_baseline's People

Contributors

xiaoleidiao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.