GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — “Multimodal deep learning with DocArray” There are many errors on the page · Issue #1889 · docarray/docarray

This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

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

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

Description

@Kodp
Kodp
opened on May 29, 2024
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

  • Vector Database / Index
  • Representing
  • Sending
  • storing
  • multi modal data type

Activity

  1. Kodp commented on May 29, 2024

    @Kodp
    Kodp
    on May 29, 2024
    Author
    More actions
    from docarray.data import MultiModalDataset
    
    dataset = MultiModalDataset[PairTextImage](da=da, preprocessing=preprocessing)
    loader = DataLoader(
        dataset,
        batch_size=128,
        collate_fn=dataset.collate_fn,
        shuffle=True,
        num_workers=4,
        multiprocessing_context="fork",
    )

    The parameter in this section is wrong, there is no da parameter. TypeError: MultiModalDataset.__init__() got an unexpected keyword argument 'da'

  2. JoanFM commented on May 29, 2024

    @JoanFM
    JoanFM
    on May 29, 2024
    Member
    More actions

    It seems is docs thr parameter and not da. Would u be able to do a PR correcting the documentation?

  3. hackermen0
    added 2 commits that reference this issue on Sep 21, 2024

    docs: updating docs with correct arguments

    63f42e9

    docs: updating docs with correct arguments

    0974591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.