Install Ubuntu16.04 and install basic software updates.
$ sudo apt update
$ sudo apt upgrade
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; | |
} |
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
data_dir
for CityscapesDataset has changed from None
to 'auto'
. #448New Features
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
API Change
prob_map
option to CUBDataset and delete return_mask
option #443return_bb
option to CUBDatasets and add a test and delete crop_bbox
option #399VOCDetectionDataset
-> VOCBboxDataset
. The examples for SSD and Faster R-CNN no longer work with previous vergions) #419n00002452 -1 | |
n00020827 -1 | |
n00002684 -1 | |
n11425580 -1 | |
n05220461 0 | |
n09225146 0 | |
n05538625 4 | |
n01900150 4 | |
n05225602 4 | |
n05418717 8 |