분류 전체보기
-
pytorch 사용 예제AI 2021. 6. 17. 17:51
#라이브러리 불러오기 (torch.nn : 딥러닝 네트워크 구현 및 학습을 간단하게 수행할 수 있도록 다양한 함수 제공) import torch import torch.nn as nn import torch.nn.functional as F #gpu가 있는 경우 pytorch 연산을 gpu로, 그렇지 않은 경우 pytorch 연산을 cpu로 수행 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") #딥러닝 모델 class Model(nn.Module) : def __init__(self) :# 네트워크의 변수 정의 super(Model, self).__init__() self.fc1 = nn.Linear(3, 4)#nn.Line..
-
key를 이용한 리스트 정렬[1주차]어서와! 자료구조와 알고리즘은 처음이지?/[Day1] 3강: 정렬(Sort), 탐색(Search) 2021. 4. 19. 23:21
1. 정렬의 경우 (1). 숫자로 이루어진 리스트라면 오름차순으로 정렬 (2). 알파벳으로 이루어진 리스트라면 알파벳 순서로 정렬 2. 요소의 길이를 키로 지정하여 정렬하는 경우 L = ['abcd', 'xyz', 'spam'] sorted(L, key=lambda x: len(x)) 정렬 결과는 ['xyz', 'abcd', 'spam'] 만약 길이가 같은 abcd와 spam의 위치를 바꿔서 정렬한다면 L = ['spam', 'xyz', 'abcd'] sorted(L, key=lambda x: len(x)) 정렬 결과는 ['xyz', 'spam', 'abcd'] 로 정렬 전의 상대적인 위치는 변하지 않음을 알 수 있다 3. 사전에서 키를 지정하여 정렬하는 예 다음의 사전이 있다고 할 때 L = [{'na..
-
slam 종류 및 특징, 참고사이트학습 참고/Slam 2021. 4. 10. 22:17
[조이현강사님의 피드백] -MATLAB을 이용하여 SLAM을 개념 맛보기 가능 https://kr.mathworks.com/discovery/slam.html 면접에서 SLAM에 대해 물어본다면 종류는 많지만 ( 종류 및 특징 소개 사이트 : https://saint-swithins-day.tistory.com/85) 2가지 정도만 추려서 얘기할 것. 1. 헥터 슬램 (http://wiki.ros.org/hector_slam) 2. 카토그래퍼 (http://wiki.ros.org/cartographer) 만약 둘중에 무엇을 쓸거냐 묻는다면, 오픈소스 프로젝트라면 카토그래퍼를 사용한다고 하기. (헥토슬램은 라이센스가 생각보다 복잡하지 않아서) 대신 헥토슬램은 단점이 하나 있는데, 라이다 인식 거리 이상으로..
-
CV를 이용한 차선 검출 종합 설명 참고 사이트[7주차] OpenCV/[Day1]OpenCV기초 2021. 3. 22. 21:59
https://towardsdatascience.com/teaching-cars-to-see-advanced-lane-detection-using-computer-vision-87a01de0424f Teaching Cars To See — Advanced Lane Detection Using Computer Vision This is project 4 of Term 1 of the Udacity Self-Driving Car Engineer Nanodegree. You can find all code related to this project on github… towardsdatascience.com 위의 게시물에서 설명하는 차선 검출의 과정은 1. Camera Calibration (카메라 왜곡 보정..
-
리눅스에 visual studio code 설치 방법[4주차] ROS기초/[Day1] ROS 기초와 설치방법 2021. 3. 16. 17:36
출처 :https://webnautes.tistory.com/1197 Visual Studio Code 설치하는 방법( Windows / Ubuntu ) Visual Studio Code를 Windows와 Ubuntu에 각각 설치하는 방법을 설명합니다. 설치를 진행해본 운영체제 버전은 Windows 10과 Ubuntu 20.04 /Ubuntu 18.04 입니다. 1. 윈도우에 설치하는 방법.. webnautes.tistory.com 1. curl을 설치해줍니다. 이미 설치되어 있다고 메시지가 보일 수도 있습니다. $ sudo apt install curl 2. 마이크로소프트 GPG 키를 다운로드하여 /etc/apt/trusted.gpg.d/ 경로에 복사해줍니다. $ sudo sh -c 'curl http..
-
PC에 Ubuntu 설치[4주차] ROS기초/[Day1] ROS 기초와 설치방법 2021. 3. 12. 22:45
https://recipes4dev.tistory.com/112 PC에 우분투 리눅스(Ubuntu Linux) 설치하기. (Install Ubuntu Linux on PC) 1. 리눅스(Linux) 리눅스(Linux)는 컴퓨터의 동작 방식과 그 내부 처리 흐름을 제어하는 핵심인 커널의 한 종류이자, 그 커널을 사용하는 운영체제를 일컫는 말입니다. 특히 윈도우즈(Windows) 또는 맥 recipes4dev.tistory.com https://jimnong.tistory.com/676 우분투 리눅스 듀얼부팅 설치방법 정리(윈도우10 기준) 우분투 리눅스 다운로드 방법(Desktop 버전) 우분투 리눅스 설치용 USB 만드는 법(윈도우에서) 우분투 리눅스 설치용 USB 만드는 법(Ubuntu 16.04 에서..
-
VMware에 ubuntu 설치[4주차] ROS기초/[Day1] ROS 기초와 설치방법 2021. 3. 10. 16:49
1. 우선 ubuntu 공식 홈페이지에서 원하는 버전의 desktop image를 다운받는다. 2. Create a New Viertual Machine을 선택하고 다음과 같은 창이 뜨면 나중에 os설치를 선택하고 진행한다 3. 계속 진행해주다가 원하느만큼 disk 크기를 할당해주고 완료하면 끝 4. Edit virtual machine settings를 클릭 5. 원하는 만큼 메모리와 코어를 할당해주고 6. 다음과 같이 CD/DVD에서 Use ISO image file을 선택해주고 처음에 다운받은 우분투 desktop image를 선택해주면 된다 7. play virtual machine으로 실행하여 ubuntu 설치를 진행 8. 한국어를 선택하고 설치 선택 9. 그다음은 default로 선택된것들로 ..