Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about RandomChoiceResize #2449

Closed
xiexinch opened this issue Nov 23, 2022 · 1 comment · Fixed by #2450
Closed

Questions about RandomChoiceResize #2449

xiexinch opened this issue Nov 23, 2022 · 1 comment · Fixed by #2450
Assignees

Comments

@xiexinch
Copy link
Contributor

The argument scales of RandomChoiceResize accepts Sequence[Union[int, Tuple]] as input. But at the init function, it's forced to be a list of tuples.

scales: Sequence[Union[int, Tuple]],

assert mmengine.is_list_of(self.scales, tuple)

Then the argument scale of Resize accepts int or tuple as input.
scale: Optional[Union[int, Tuple[int, int]]] = None,

So can you remove the two assertions at
assert mmengine.is_list_of(self.scales, tuple)
and
assert mmengine.is_list_of(self.scales, tuple)

@zhouzaida
Copy link
Collaborator

closed by #2450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants