Skip to content

Instantly share code, notes, and snippets.

@yuyu2172
yuyu2172 / T480s_setup.md
Last active June 4, 2019 07:25
T480s with Ubuntu16.04 (Nvidia GPU, display)

Lenovo ThinkPad T480s

Install Ubuntu

Install Ubuntu16.04 and install basic software updates.

$ sudo apt update
$ sudo apt upgrade

Setup Nvidia GPU driver

Installation with GUI worked (CLI ended up in infinite login loop...).

# -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
from glumpy import app, gloo, gl
import numpy as np
vertex = """
uniform float scale;
in vec2 position;
from glumpy import app, gloo, gl
vertex = """
uniform float scale;
in vec2 position;
in vec4 color;
out vec4 v_color;
void main()
{
void set_integer_arr_ptr(int* a)
{
a[0] = 1;
a[1] = 3;
a[2] = 5;
a[3] = 7;
}
void set_integer_arr_ref_ptr(int*& a, int& size)
{
cpdef pass_by_ref():
cdef int x
set_integer_ref(x)
return x
cpdef pass_by_ptr_0():
cdef int[1] x
set_integer_ptr(x)
return x[0]
void set_integer_ref(int& x)
{
x = 100;
}
void set_integer_ptr(int* x)
{
*x = 200;
}
@yuyu2172
yuyu2172 / v0.8.md
Last active December 20, 2017 01:34

v0.8.0

This release no longer supports Chainer v2, and it only supports Chainer v3. For those users using Chainer v2, please update the version of Chainer or use ChainerCV v0.7.

API Changes

  • The default value of option data_dir for CityscapesDataset has changed from None to 'auto'. #448

New Features

  • Add ProgressHook #473
import os
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import chainer
from chainercv.datasets import cityscapes_semantic_segmentation_label_colors
from chainercv.datasets import cityscapes_semantic_segmentation_label_names
from chainercv.datasets import voc_bbox_label_names

This release is targeted at Chainer v2.

Major Improvements

  • We added an evaluation script for ImageNet trained models (link).

API Change

  • Add prob_map option to CUBDataset and delete return_mask option #443
  • Add return_bb option to CUBDatasets and add a test and delete crop_bbox option #399
  • Use bbox* instead of detection* for datasets and label_names (e.g. VOCDetectionDataset -> VOCBboxDataset. The examples for SSD and Faster R-CNN no longer work with previous vergions) #419
  • Change function name: vis_label -> vis_semantic_segmentation #420
n00002452 -1
n00020827 -1
n00002684 -1
n11425580 -1
n05220461 0
n09225146 0
n05538625 4
n01900150 4
n05225602 4
n05418717 8