Skip to content

Conversation

@jonaeunnn
Copy link
Collaborator

@jonaeunnn jonaeunnn commented Jan 27, 2025

Sweepic Server PR List

close #105

⚒️develop의 최신 커밋을 pull 받았나요?

  • 최신 커밋 업데이트

🔍️ 이 PR을 통해 해결하려는 문제가 무엇인가요?

어떤 기능을 구현한건지, 이슈 대응이라면 어떤 이슈인지 PR이 열리게 된 계기와 목적을 Reviewer 들이 쉽게 이해할 수 있도록 적어 주세요
일감 백로그 링크나 다이어그램, 피그마를 첨부해도 좋아요

  • AI를 활용한 이미지 자동 라벨링 API구현

✨ 이 PR에서 핵심적으로 변경된 사항은 무엇일까요? (핵심 작업 내용)

문제를 해결하면서 주요하게 변경된 사항들을 적어 주세요

  • tags-ai controllers 작성
  • tags-ai service 작성
  • app.ts에 app.post('/image/ai', labelDetectionController); 작성

🤚 동작 확인

기능을 실행했을 때 정상 동작하는지 여부를 확인하고 스크린 샷을 올려주세요

스크린샷 2025-01-27 220305

  • 위 이미지에 대한 detect 결과
    스크린샷 2025-01-27 220118

스크린샷 2025-01-27 221055

  • 위 이미지에 대한 detect 결과
    스크린샷 2025-01-27 221039

🔖 핵심 변경 사항 외에 추가적으로 변경된 부분이 있나요?

없으면 "없음" 이라고 기재해 주세요

🙏 Reviewer 분들이 이런 부분을 신경써서 봐 주시면 좋겠어요

개발 과정에서 다른 분들의 의견은 어떠한지 궁금했거나 크로스 체크가 필요하다고 느껴진 코드가 있다면 남겨주세요

🩺 이 PR에서 테스트 혹은 검증이 필요한 부분이 있을까요?

테스트가 필요한 항목이나 테스트 코드가 추가되었다면 함께 적어주세요

📌 PR 진행 시 이러한 점들을 참고해 주세요

  • Reviewer 분들은 코드 리뷰 시 좋은 코드의 방향을 제시하되, 코드 수정을 강제하지 말아 주세요.
  • Reviewer 분들은 좋은 코드를 발견한 경우, 칭찬과 격려를 아끼지 말아 주세요.
  • Review는 특수한 케이스가 아니면 Reviewer로 지정된 시점 기준으로 2일 이내에 진행해 주세요.
  • Comment 작성 시 Prefix로 P1, P2, P3 를 적어 주시면 Assignee가 보다 명확하게 Comment에 대해 대응할 수 있어요
    • P1 : 꼭 반영해 주세요 (Request Changes) - 이슈가 발생하거나 취약점이 발견되는 케이스 등
    • P2 : 반영을 적극적으로 고려해 주시면 좋을 것 같아요 (Comment)
    • P3 : 이런 방법도 있을 것 같아요~ 등의 사소한 의견입니다 (Chore)


📝 Assignee를 위한 CheckList

  • To-Do Item

@jonaeunnn jonaeunnn added the ✨ FEAT 기능 구현 label Jan 27, 2025
@jonaeunnn jonaeunnn self-assigned this Jan 27, 2025
@jonaeunnn jonaeunnn linked an issue Jan 27, 2025 that may be closed by this pull request
Copy link
Contributor

@jjiinaaa jjiinaaa left a comment

Choose a reason for hiding this comment

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

여기도 해결방법 찾으면 변경해야할 듯 합니다.

import {fileURLToPath} from 'url';
import {LabelDetectionError, LabelNotFoundError} from '../errors.js';
// ES Module 환경에서 __dirname 대체
const __filename = fileURLToPath(import.meta.url);
Copy link
Contributor

Choose a reason for hiding this comment

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

해당 부분도 지금 빌드 과정에서 에러날겁니다. @jonaeunnn @GodUser1005

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정했습니다~!

@jjiinaaa
Copy link
Contributor

빌드나, 바로 서버 실행 둘 다 되는건가요?

console.error('Error in labelDetectionController:', error);

// 커스텀 에러 처리
if (
Copy link
Collaborator

Choose a reason for hiding this comment

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

이부분에서 에러들이 baseError의 인스턴스니까 err innstanxeof BaseError 로 그냥 통합 하시고 아래 else if 문을 없애시면 좀더 깔끔해 보일거같습니다

@jonaeunnn jonaeunnn closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ FEAT 기능 구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SWEP-56] 이미지 자동 라벨링 기능 구현 (AI)

4 participants