Giter Site home page Giter Site logo

poetic's People

Contributors

dependabot[bot] avatar kevin931 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

poetic's Issues

InputLengthError message incorrect with custom model

Describe the bug
The error message of poetic.exceptions.InputLengthError as raised from the poetic.Predictor class is incorrect when the custom model used to initialized the class is of a different input length. The incorrect message reads: poetic.exceptions.InputLengthError: Input length out of bound: must be between 1 and 465.

To Reproduce

    import poetic

    model = poetic.util.Initializer.load_model(model_path=<PATH>, weights_path=<PATH>)
    pred = poetic.Predictor(model=model)
    pred.predict("")

Expected behavior
The error message should reflect the actual maximum input length of the model such as between 1 and 100 instead of 1 and 465.

Desktop (please complete the following information):

  • OS: Windows 10
  • Architecture: x86-64
  • Version: 20H2

poetic information

  • Version: 1.1.0
  • Build: Dev
  • Installation source: GitHub

Environment and dependencies

  • Python: 3.7.7
  • Environment: conda

Notes
This issue is a note to myself as well as a PA for everyone. I will get to this in a while, but if anyone would like to fix this in the mean time, it will be totally appreciated! PR should be made to the maintenance/v1.1.x branch which will then be merged into dev since v1.1.0 is the earliest version affected by this bug.

Development Status Update

This is just a quick update: the project is not abandoned!! I will get to it at some point! If you're reading this, I said hi!!

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.