Skip to content

Instantly share code, notes, and snippets.

Avatar

Hyeonsu Lyu hslyu

  • 77, Cheongam-ro, Nam-gu, Pohang-si, Gyeongsangbuk-do
View GitHub Profile
View argparse_example.py
import argparse
def get_parser():
parser = argparse.ArgumentParser(description="Extract bounding boxes using Detectron2",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(
"--config-file",
default="/home/appuser/detectron2_repo/configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml",
metavar="FILE",
help="path to config file",
)
@hslyu
hslyu / cartpole.py
Created May 14, 2020
DQN cartpole study
View cartpole.py
#!/usr/local/bin/python
# Import packages
import gym
import math
import random
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from collections import namedtuple
@hslyu
hslyu / tmux.md
Last active May 11, 2020 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
@hslyu
hslyu / git usage.md
Last active May 11, 2020
Doodles for practicing git
View git usage.md

To be updated

View Drone Simulation Environment Configuration.md

This document covers building a drone simulation envrionment which utilizes PX4. The simulation testbed consists of gazebo, PX4 firmware, and ROS melodic. It reffered to this installation guide and includes includes and integration of each software, and troubleshooting of errors in the building process. This document is tested on nvidia/cuda:10.0-devel-ubuntu18.04 docker image. You can download my image.

Prerequisite

  1. Your host OS should be Ubuntu 18.04. Otherwise, this intruction will malfunction.
  2. You should run your container with the environment variable LC_ALL. This locale setting is for the px4 firmware compiling.
docker run [your option] -e LC_ALL=en_US.UTF-8 hslyu/drone:cuda10.0-devel-ubuntu18.04