from logging import getLogger
logger = getLogger(__name__)
頑張ります・・・
# こういうとこだけマジクソ感あるけど、他は優秀?
for img, mask, original_img in _trainval_loader: | |
batch_size = img.shape[0] | |
images = to_var(img, volatile=True) | |
#outputs = model.inference(images) | |
outputs = model(images) | |
outputs = F.softmax(outputs, dim=1) | |
# CRF ############################################################################## | |
crf_output = np.zeros(outputs.shape) |
import os | |
### geopandas must be imported earlier than osgeo ### | |
import geopandas as gpd | |
from osgeo import gdal, ogr, osr | |
import numpy as np | |
import scipy | |
from scipy.misc import bytescale | |
import osmnx | |
import cv2 |
;;; Code: | |
(deftheme julietta | |
"julietta theme") | |
(let ((julietta-fg "#c6a57b") | |
(julietta-bg-1 "#101010") | |
(julietta-bg "#151515") | |
(julietta-bg+1 "#202020") | |
(julietta-bg+2 "#505050") |
from logging import getLogger
logger = getLogger(__name__)
頑張ります・・・
# こういうとこだけマジクソ感あるけど、他は優秀?
Ubuntuを起動すると稀にGUIが立ち上がらなかったりログインループにハマることあがある。
http://may46onez.hatenablog.com/entry/2016/02/26/020208
とかで解決できます。
# ssh経由でも可
# control+Alt+F1でCUIの画面に遷移できる
# Xwindow認証関係の死なら
rm .Xauthority .ICEauthority
#!/bin/bash | |
# for insurance to avoid catastrophe | |
set -Ceu | |
RC_FILE=0 | |
# find default shell rc file of major shells | |
if [[ $(echo $SHELL | grep bash) ]]; then | |
RC_FILE=$HOME/.bashrc |
or might be easy with gdisk/fdisk ? I'm not sure about this.
------------------------------------------------------------------------
see the reference for more detail, if you want.
https://richardstechnotes.wordpress.com/2015/12/18/setting-up-an-nvme-ssd-on-ubuntu-14-04-lts/
http://takatakamanbou.hatenablog.com/entry/2015/10/25/235600 : Japanese website
#!/bin/bash | |
# [ expr ], I'm really mad of "space"["space"expr"space"]"space" thing... | |
if [ $# -eq 1 ]; then | |
eval "watch -n ${1} nvidia-smi" | |
elif [ $# -eq 0 ]; then | |
eval "watch -n 0.5 nvidia-smi" | |
else | |
echo "1 argument please." |
""" | |
for Ubuntu 14.04, CUDA8.0 | |
I checked that this is woking on 10/31/2017 in JST | |
someday it will not... | |
""" | |
# Set repository, suck the official. | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt-get update | |
# Select latest nvidia driver [ex. nvidia-381], not nvidia-#-dev |