Skip to content

ConditionalDetrImageProcessor still accepts the deprecated parameter max_size #37939

@arjunaskykok

Description

@arjunaskykok

At the __init__ method of ConditionalDetrImageProcessor file, we still accept the deprecated parameter, max_size:

        if "max_size" in kwargs:
            logger.warning_once(
                "The `max_size` parameter is deprecated and will be removed in v4.26. "
                "Please specify in `size['longest_edge'] instead`.",
            )
            max_size = kwargs.pop("max_size")
        else:
            max_size = None if size is None else 1333

But the version of transformers is already 4.52.0.dev0 (from src/transformers/__init__.py).

ConditionalDetrImageProcessorFast also suffers the same issue.

We should remove the parameter, no?

cc: @amyeroberts, @qubvel

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions