Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

“Multimodal deep learning with DocArray” There are many errors on the page #1889

Copy link
Copy link

Description

@Kodp
Issue body actions

Initial Checks

  • I have read and followed the docs and still think this is a bug

Description

I couldn't find anywhere else to report document errors.
https://docs.docarray.org/how_to/multimodal_training_and_serving/
Defined

class PairTextImage(BaseDoc):
    text: TextDoc
    image: ImageDoc

and then use it

  da = DocList[PairTextImage](
        PairTextImage(text=Text(text=i.caption), image=Image(url=f"Images/{i.image}"))
        for i in df.itertuples()
    )

actually the Image class is not defined.

   def __call__(self, text: Text) -> None:
        assert isinstance(text, Text)
        text.tokens = Tokens(
            **self.tokenizer(
                text.text, padding="max_length", truncation=True, max_length=48
            )

and the Text class is not defined.

Example Code

No response

Python, DocArray & OS Version

I couldn't find anywhere else to report document errors

Affected Components

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.