[My IT : Codes] U-Net 활용 Sementic Segmentation : Football Dataset(2) (하이퍼파라미터 튜닝 ~ 결론)
·
My IT/Codes
이전 코드 : https://uj07096.tistory.com/65 [My IT : Codes] U-Net 활용 Sementic Segmentation : Football Dataset(1) (시작~ 모델링)목표: U-Net을 이용해 축구 경기 영상 내의 다양한 객체(예: 골대, 심판, 선수, 관중 등)를 픽셀 단위로 분할하는 Semantic Segmentation 작업을 수행 파이프라인1. 데이터 불러오기 2. 데이터 EDA 3. 데이터uj07096.tistory.com 5. 하이퍼파라미터 튜닝모든 모델에 대해 하이퍼파라미터 튜닝을 진행하면 좋겠지만, 시간 효율성상 가장 빠르게 구동이 가능한 Custom U-Net으로 하이퍼파라미터 튜닝을 진행 후, 같은 하이퍼 파라미터로 다른 모델들의 학습도 진행하..
[My IT : Codes] U-Net 활용 Sementic Segmentation : Football Dataset(1) (시작~ 모델링)
·
My IT/Codes
목표: U-Net을 이용해 축구 경기 영상 내의 다양한 객체(예: 골대, 심판, 선수, 관중 등)를 픽셀 단위로 분할하는 Semantic Segmentation 작업을 수행 활용 데이터셋 Kaggle의 FootBall(Sementic Segmentation) 데이터셋 Football (Semantic Segmentation)100 frames of pixel-perfect semantic segmentation with 11 classes.www.kaggle.com 파이프라인1. 데이터 불러오기 2. 데이터 EDA 3. 데이터셋 생성 4. 모델링 5. 모델 하이퍼파라미터 튜닝 6. 모델 학습 / 시각화 7. 성능지표 비교 / 결론1. 데이터 불러오기Imports!pip install optuna!pip..
[프로그래머스] 프렌즈4블록
·
Algorithm
문제쉽게 말하자면, 애니팡 블록을 재현하는 알고리즘을 구현하는 것이다. 풀이def solution(m, n, board): board = [list(row) for row in board] cnt = 0 while True: check_board = [[0] * n for _ in range(m)] #4개의 블록 겹치는지 검사 for i in range(m-1): for j in range(n-1): if board[i][j] is not None and board[i][j] == board[i + 1][j] == board[i][j+1] == board [i+1][j+1] : ..
[프로그래머스] 마법의 엘리베이터
·
Algorithm
문제 마법의 엘리베이터라는 설정이 붙어있긴 하지만, 각 자릿수를 0으로 만드는 최소 이동횟수를 구하는 문제이다. 풀이def solution(storey): num = storey cnt = 0 while num : #현재 1의 자리 digit = num % 10 #다음에 들어갈 num num = num // 10 #num % 10 : 다음 10의 자릿수 #자릿수가 5보다 크면 : 올라가기가 유리(상위 자릿수에 1 더함) if digit > 5 or (digit == 5 and (num % 10 + 1) > 5): cnt += (10 - digit) num += ..
[프로그래머스] 오픈채팅방
·
Algorithm
문제 풀이문제를 봤을 때 들었던 생각 : 닉네임을 변경해서 모든 메세지를 출력하려면, 메세지가 나올 record만 따로 저장을 하고, change나 enter가 들어왔을 때 닉네임을 업데이트 하면 되겠구나 ! 하고 생각했다.from collections import defaultdictdef solution(record): access_list = [] member_dict = defaultdict(str) res = [] #access_list 저장, 멤버 이름 업데이트 for rec in record : parts = rec.split() #change, enter 경우 if len(parts) == 3 : ..
[프로그래머스] 프로세스
·
Algorithm
문제 풀이from collections import deque#큐를 순회하여 최대 우선순위 찾는 함수def max_queue(queue) : max = float('-inf') #queue 순회 for i, (_, priority) in enumerate(queue) : if priority > max : max = priority return maxdef solution(priorities, location): # location(key) : priorities(value)값을 가지는 딕셔너리 생성 priorities_dict = {index : value for index, value in enumerate(priorities)..