Skip to content

how to use train_caption.json and train.txt ? #35

Description

@Vincento-Wang

is there any step missed of data preprocessing ?

I see the code, but caption is in the json file and it is a dict type, how to do like lines[2] ?

        with open(f'{self.meta_path}/{self.metadata[index]}', 'r') as f:
            lines = f.readlines()
        caption = lines[2].strip()
        lines = lines[3:]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions