Skip to content

Instantly share code, notes, and snippets.

@peijason
peijason / configure_cuda_p70.md
Created August 19, 2020 21:56 — forked from alexlee-gk/configure_cuda_p70.md
Use integrated graphics for display and NVIDIA GPU for CUDA on Ubuntu 14.04

This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)

A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly. In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers. This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.

@peijason
peijason / LabelmeYoloConverter.py
Created July 20, 2020 21:38 — forked from ivder/LabelmeYoloConverter.py
Convert LabelMe Annotation Tool JSON format to YOLO text file format
# -*- coding: utf-8 -*-
'''
LabelMe JSON format -> YOLO txt format
save dataset (학습 자료) in dataset/
output will be saved in result/
JSON format will be moved to json_backup/
Finally, please manually copy text file together with image into 1 folder. (Easier to maintain)
마지막으로 txt파일이랑 이미지파일이랑 같은 폴더에 복사하세요 (관리하기 위한 쉬)움