Skip to content

add ArcFace verifier#8

Open
donghoon11 wants to merge 1 commit into
mainfrom
donghoon
Open

add ArcFace verifier#8
donghoon11 wants to merge 1 commit into
mainfrom
donghoon

Conversation

@donghoon11
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread face/main.py
print('cpu 사용, 시간이 오래걸리기 때문에 gpu를 이용하는 것을 권장합니다.')
df_detection = detect_images_by_cpu(yolo_detector, video_name)
else:
print('아직 미구현')
Copy link
Copy Markdown
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}")

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

Comment thread face/main.py
# 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
Copy Markdown
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 thread face/main.py
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
Copy Markdown
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