전체 글 275

20221027 TIL

오늘의 배운 것 장고 심화 - 4주차 프로젝트 마무리 | 5주차 테스트 코드 장고 심화 profile, feed 페이지 생성 profile users - urls.py urlpatterns = [ .. path('/', views.ProfileView.as_view(), name='profile_view'), .. ] users - models.py class User(AbstractBaseUser): email = models.EmailField( verbose_name='email address', max_length=255, unique=True, ) followings = models.ManyToManyField('self', symmetrical=False, related_name='follow..

20221026 TIL

오늘의 배운 것 장고 심화 - 4주차 장고 심화 강의 프로젝트 https://github.com/didjsrne/drf_project GitHub - didjsrne/drf_project Contribute to didjsrne/drf_project development by creating an account on GitHub. github.com ** 이미지 파일 넣기 - ImageField https://docs.djangoproject.com/en/4.1/ref/models/fields/#django.db.models.ImageField Model field reference | Django documentation | Django Django The web framework for perfect..

20221025 TIL

오늘의 배운 것 장고 심화 - 1, 2주차 복습 장고 심화 - 3주차 장고 심화 2주차 - DRF 튜토리얼 https://github.com/didjsrne/drf_week2 GitHub - didjsrne/drf_week2 Contribute to didjsrne/drf_week2 development by creating an account on GitHub. github.com 장고 심화 3~4주차 - 프로젝트 https://github.com/didjsrne/drf_project GitHub - didjsrne/drf_project Contribute to didjsrne/drf_project development by creating an account on GitHub. github.com 장..

20221024 TIL

오늘의 배운 것 장고 심화 - 1, 2주차 장고 심화 HTTP와 웹의 동작 방식 웹브라우저의 흐름 프로토콜 계층 URI HTTP - 클라이언트 서버 구조 / 무상태 프로토콜(stateless) 데이터 전송 - HTML Form / HTML API HTTP 상태 코드 HTTP 헤더 쿠키, 캐시 Postman https://www.postman.com/ Postman API Platform | Sign Up for Free Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better ..

20221023 WIL

이번주 한 일 YOLOv5 강의 사물인식 프로젝트 - 완성 사물인식 프로젝트 https://github.com/Taeeun99/sparta_PetDictionary_2L3J_project2 이번주 트러블 슈팅 잦은 크롤링 너무 잦은 크롤링으로 서버에 요청을 과도하게 보내면 아이피 차단 등의 문제 발생 가능 해결방안 - 크롤링을 통해 검색한 자료 데이터베이스에 저장 (유효기간을 두고 일정 기간이 지나면 새로 받아오기) 사물인식 모델 적용중 오류 종종 함수를 돌릴때 사진과 같은 에러가 종종 발생해 데이터에 NULL 데이터가 저장되며 최종 그래프 결과에 영향을 줍니다. 해결(임시) class Image(models.Model): # 이미지 파일 업로드 imgfile = models.ImageField(null..

20221021 TIL

오늘의 한 일 사물인식 프로젝트 - 마무리 및 발표 사물인식 프로젝트 https://github.com/Taeeun99/sparta_PetDictionary_2L3J_project2 시연 영상 촬영 https://youtu.be/VwNDAqxsitc 시연 영상으로 프로젝트를 처음부터 훑어보면서 내가 맡지 않았던 부분들도 한번씩 다시 자세히 들여다 보게 되어서 개인적으로 공부에 많은 도움이 되었다. KPT 회고 K 깃허브를 통한 작업방식. 두번째 프로젝트다 보니 훨씬 익숙해져서 더 잘 활용했던것 같다. 기한에 맞는 목표 설정, 역할 분담이 좋았다. P 사물인식 모델을 불러올 때 에러가 나는데 원인을 찾아내지 못해서 아쉽다 잦은 크롤링 T 깃허브 pull request시 commit 메세지 컨벤션화 크롤링을..

20221020 TIL

오늘의 한일 사물인식 프로젝트 - 마무리 사물인식 프로젝트 https://github.com/Taeeun99/sparta_PetDictionary_2L3J_project2 GitHub - Taeeun99/sparta_PetDictionary_2L3J_project2: 사물인식 팀 프로젝트 사물인식 팀 프로젝트 . Contribute to Taeeun99/sparta_PetDictionary_2L3J_project2 development by creating an account on GitHub. github.com 트러블슈팅 output 페이지를 임시로 조정해서 예 아니오 버튼을 누를 시 하나의 이미지에 다수의 ResearchModel이 생성되는 문제가 있었다. one to one 모델로 엮어도 되겠지만..

20221018 TIL

오늘의 한일 사물인식 프로젝트 사물 인식 프로젝트 yolov5 모델 분석 #-*- coding:utf-8 -*- import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8') import torch import cv2 from PIL import Image model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', force_reload=True) img = Image.open('test.jpg') # img =..