Skip to content

Instantly share code, notes, and snippets.

View rodsnjr's full-sized avatar

Rodney rodsnjr

  • Porto Alegre RS
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from shutil import copyfile
import pandas as pd
import os
images_dir = '/media/rodsnjr/Files/Datasets/indoor_datasets/Images/'
train_set = pd.read_csv('/media/rodsnjr/Files/Datasets/indoor_datasets/train_annotations.csv')
test_set = pd.read_csv('/media/rodsnjr/Files/Datasets/indoor_datasets/test_annotation.csv')
valid_set = pd.read_csv('/media/rodsnjr/Files/Datasets/indoor_datasets/validation_annotations.csv')

Start Kafka service

The following commands will start a container with Kafka and Zookeeper running on mapped ports 2181 (Zookeeper) and 9092 (Kafka).

docker pull spotify/kafka
docker run -d -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=kafka --env ADVERTISED_PORT=9092 --name kafka spotify/kafka

Why Spotify?

ADVERTISTED_HOST was set to kafka, which will allow other containers to be able to run Producers and Consumers.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rodsnjr
rodsnjr / mct_indoor_annotations.csv
Created April 14, 2018 15:23
CSV with the object positions
class_id frame xmax xmin ymax ymin
2 DOR_S1_18.jpg 3370 2324 2594 214
2 DOR_S1_18.jpg 1247 252 2394 259
0 STR_S4_141.jpg 4086 1111 3070 1187
1 STR_S3_20.jpg 4310 1474 3261 689
1 STR_S4_129.jpg 2992 1 3627 615
1 STR_S4_169.jpg 2594 190 2876 1186
2 DOR_S4_25.jpg 2535 276 4608 478
2 DOR_S2_113.jpg 1701 476 3948 107
2 DOR_S4_138.jpg 3169 371 4608 482
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am rodsnjr on github.
  • I am rodsnjr (https://keybase.io/rodsnjr) on keybase.
  • I have a public key ASBN8KjYUDmOAXZQ5aXiGvZBzW4Z3ShnxPKwnBPNPLjHKwo

To claim this, I am signing this object: