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

增加图像增强方式(HShift、VShift、Pad 等) #2

Merged
merged 18 commits into from
Nov 7, 2021
Merged

Conversation

Ainavo
Copy link
Member

@Ainavo Ainavo commented Nov 7, 2021

No description provided.

@SigureMo SigureMo changed the title hg 增加图像增强方式(HShift、VShift、Pad 等) Nov 7, 2021
patta/functional.py Outdated Show resolved Hide resolved
patta/functional.py Outdated Show resolved Hide resolved
patta/functional.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
if pad != self.original_pad:
H = mask.shape[2]
W = mask.shape[3]
mask = mask[:,:,H-pad[0],W-pad[0]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里切片不对,应当是个范围,你这里只剩一个数了,而且为什么都是 pad[0] 呢?你先试着改一下,等会我再来看

def apply_deaug_label(self, label, **kwargs):
return label

def apply_deaug_keypoints(self, keypoints, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/functional.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/functional.py Outdated Show resolved Hide resolved
patta/functional.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
patta/transforms.py Outdated Show resolved Hide resolved
@SigureMo SigureMo merged commit beb0ba8 into image-aug Nov 7, 2021
@SigureMo SigureMo deleted the edgnb branch November 7, 2021 16:55
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 this pull request may close these issues.

2 participants