Skip to content

Instantly share code, notes, and snippets.

View willsilvano's full-sized avatar

WillianSM willsilvano

  • Tubarão/SC/Brazil
View GitHub Profile
@enric1994
enric1994 / Dockerfile.webcam
Last active February 18, 2022 11:36
Using the webcam in a GPU enabled Docker Compose
FROM tensorflow/tensorflow:latest-gpu-py3
RUN apt update -y && apt install -y \
libsm6 \
libxext6 \
libxrender-dev
RUN pip install \
opencv-python

Convert PascalVOC Annotations to YOLO

This script reads PascalVOC xml files, and converts them to YOLO txt files.

Note: This script was written and tested on Ubuntu. YMMV on other OS's.

Disclaimer: This code is a modified version of Joseph Redmon's voc_label.py

Instructions:

  1. Place the convert_voc_to_yolo.py file into your data folder.
@troyharvey
troyharvey / deployment.yml
Last active February 27, 2024 04:47
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@brunoleles
brunoleles / readme.md
Last active January 22, 2021 15:10
Gulp Watch Fails with "Error: watch ... ENOSPC"

gulp watch fails with error: Error: watch ... ENOSPC

Stacktrace:

[13:58:28] Starting 'watch'...
[13:58:28] 'watch' errored after 22 ms
[13:58:28] Error: watch /.../resources/assets/images/ ENOSPC
    at exports._errnoException (util.js:1023:11)
    at FSWatcher.start (fs.js:1306:19)
 at Object.fs.watch (fs.js:1331:11)
@LogansUA
LogansUA / robomongo_desktop_entry.md
Last active February 16, 2022 05:41
Example of desktop entry on Ubuntu system for Robomongo

Creating desktop entry

$ touch /usr/share/applications/robomongo.desktop

Edit

$ vim /usr/share/applications/robomongo.desktop
@alopes
alopes / stopwords.txt
Created April 10, 2013 20:32
Portuguese stop words
de
a
o
que
e
do
da
em
um
para