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

add ArcFace verifier #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add ArcFace verifier #8

wants to merge 1 commit into from

Conversation

donghoon11
Copy link
Collaborator

No description provided.

print('cpu 사용, 시간이 오래걸리기 때문에 gpu를 이용하는 것을 권장합니다.')
df_detection = detect_images_by_cpu(yolo_detector, video_name)
else:
print('아직 미구현')
Copy link
Contributor

Choose a reason for hiding this comment

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

raise NotImplementedError(f"구현되지 않은 detector {detector}")

같은 형태로 수정하는 것이 좋겠습니다.

# filter 된 dataframe
df_filtered = filter_df(df_detection)
# 데이터프레임 저장
df_filtered.to_parquet(f'./dataset/{video_name}/detection_data/yoloface_data.parquet',engine='pyarrow')
Copy link
Contributor

Choose a reason for hiding this comment

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

./dataset/{video_name}/detection_data/yoloface_data.parquet 위치는 위에도 쓰이는 걸로 보아 특별한 파일 위치로 보이는데요, 별도의 상수로 빼는 게 좋을 것 같습니다.

Comment on lines +79 to +80
imgs_path = [f'./dataset/{self.video_name}/frame/{frame}/{videonum1}.jpg',
f'./dataset/{self.video_name}/frame/{frame}/{videonum2}.jpg']
Copy link
Contributor

Choose a reason for hiding this comment

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

self.root = f"./dataset/{self.video_name}" 같은 걸로 캐싱해두고, os.path.join으로 다른데선 root directory 신경 안쓰도록 하는 게 좋을 것 같네요. (위에 comment도 비슷하게 처리해주세요)

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