Skip to content

Question about why repeat(2) is needed? #6

@chenyuqi990215

Description

@chenyuqi990215

I'm reading the code in https://github.com/tmbdev-archive/webdataset-examples/blob/master/main-wds.py, I'm confused about in Line 332, you write train_loader.repeat(2).slice(number_of_batches). However, it seems that the data will be reversed twice if a repeat operation is used. I'm wondering why we need the repeat(2) here?

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