Giter Club home page Giter Club logo

Comments (5)

ddkang avatar ddkang commented on July 23, 2024

This might be a bug

from aidb.

continue-revolution avatar continue-revolution commented on July 23, 2024

Example:

self.blob_table_setup = BaseTablesSetup(f"{self.db['url']}/{self.db['name']}")
self.blob_table_name = "video"
self.blob_table_columns = [ # blob table: video
    {"name": "video_path", "dtype": str, "is_primary_key": True}
]
self.tables = {
    "frame": [ # extractor: video -> frame
        {"name": "frame_path", "dtype": str, "is_primary_key": True},
        {"name": "video_path", "refers_to": ("video", "video_path"), "dtype": str},
    ]
}
self.engines = [
    {
        "service": self.extractor,
        "input_col": ("video.video_path",),
        "output_col": ("frame.frame_path", "frame.video_path")
    }
]

This cannot pass https://github.com/ddkang/aidb/blob/main/aidb/config/config.py#L241
We should allow output table's foreign keys NOT to be output table's primary keys

from aidb.

continue-revolution avatar continue-revolution commented on July 23, 2024

Example: one table "dataset" has columns like this

{
    "dataset": [
        {"name": "masked_image_path", "dtype": str, "is_primary_key": True},
        {"name": "original_image_path", "refers_to": ("character", "path"), "dtype": str},
        {"name": "tag_path", "dtype": str},
        {"name": "tag", "dtype": str}
    ]
}

Inference service like this

self.engines = [
    {
        "service": self.segmentor,
        "input_col": ("character.character_path",),
        "output_col": ("dataset.masked_image_path", "dataset.original_image_path")
    },
    {
        "service": self.tagger,
        "input_col": ("dataset.masked_image_path",),
        "output_col": ("dataset.tag_path", "dataset.tag")
    }
]

This cannot pass https://github.com/ddkang/aidb/blob/main/aidb/config/config.py#L152
We should allow output columns that are copied from input columns to be binded to 2 inference services

from aidb.

ddkang avatar ddkang commented on July 23, 2024

Thanks. Can you take on resolving this @continue-revolution ?

from aidb.

continue-revolution avatar continue-revolution commented on July 23, 2024

Yes. I will graduately resolve all of them,

from aidb.

Related Issues (20)

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.