Skip to content

Instantly share code, notes, and snippets.

View esc's full-sized avatar
:octocat:
doing open source

Emergency Self-Construct esc

:octocat:
doing open source
View GitHub Profile
@esc
esc / gulpio_ingestor_example.py
Last active September 8, 2017 11:59
GulpIO Blogpost Ingestor Example
adapter = Custom20BNCsvJpegAdapter(input_csv, jpeg_path, output_folder,
shuffle=shuffle,
frame_size=img_size,
shm_dir_path=shm_dir
)
ingestor = GulpIngestor(adapter, output_folder, videos_per_chunk,
num_workers=num_workers)
ingestor()
@esc
esc / jpeg_results.txt
Created September 8, 2017 12:11
GulpIO Blogpost JPEG Loader results
(torch) root@7396071ace7e:/home/rgoyal/GulpIO-benchmarks# CUDA_VISIBLE_DEVICES=0,1 python train_jpeg.py --config configs/config_jpeg.json -g 0,1
=> active GPUs: 0,1
=> Output folder for this run -- jester_conv_example
> Using 10 processes for data loader.
> Training is getting started...
> Training takes 999999 epochs.
> Current LR : 0.001
Epoch: [0][0/1852] Time 77.101 (77.101) Data 73.654 (73.654) Loss 3.3249 (3.3249) Prec@1 0.000 (0.000) Prec@5 21.875 (21.875)
Epoch: [0][100/1852] Time 36.009 (7.519) Data 35.798 (7.183) Loss 2.6882 (3.0521) Prec@1 21.875 (13.784) Prec@5 54.688 (40.161)
Epoch: [0][200/1852] Time 13.762 (6.756) Data 13.562 (6.433) Loss 2.5396 (2.8169) Prec@1 20.312 (19.652) Prec@5 62.500 (50.451)
@esc
esc / gulpio_results.txt
Created September 8, 2017 12:13
GulpIO Blogpost GulpIO Loader results
(torch) root@7396071ace7e:/home/rgoyal/GulpIO-benchmarks# CUDA_VISIBLE_DEVICES=0,1 python train_gulp.py --config configs/config_gulpio.json
=> active GPUs: 0,1
=> Output folder for this run -- jester_conv_example
> Using 10 processes for data loader.
> Training is getting started...
> Training takes 999999 epochs.
> Current LR : 0.001
Epoch: [0][0/1852] Time 12.410 (12.410) Data 9.079 (9.079) Loss 3.2856 (3.2856) Prec@1 9.375 (9.375) Prec@5 17.188 (17.188)
Epoch: [0][100/1852] Time 0.457 (0.854) Data 0.000 (0.429) Loss 2.5770 (3.0944) Prec@1 26.562 (12.655) Prec@5 68.750 (37.036)
Epoch: [0][200/1852] Time 0.456 (0.818) Data 0.000 (0.432) Loss 2.6250 (2.8789) Prec@1 25.000 (18.043) Prec@5 56.250 (47.528)
@esc
esc / np vs. loop.ipynb
Created May 17, 2019 08:43
np vs. loop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
c['change_source'].append(changes.GitPoller(
'git://github.com/esc/numba.git',
workdir='gitpoller-workdir-esc',
branches=True,
pollInterval=300,
pollAtLaunch=True,
))
c['schedulers'] = []
c['schedulers'].append(schedulers.SingleBranchScheduler(
name="all",
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba/bin/git-hub", line 8, in <module>
sys.exit(hub())
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/gitspindle/__init__.py", line 661, in hub
GitHub().main()
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/gitspindle/__init__.py", line 119, in __init__
self.git_dir = self.git('rev-parse', '--git-dir')
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/whelk/__init__.py", line 181, in __call__
(out, err) = sp.communicate(self.input)
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/whelk/subprocess_34.py", line 31, in communicate
@esc
esc / myasm.asm
Last active January 17, 2020 16:04
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 14
.globl __ZN8__main__15mutate_list$245E21ListType$5bfloat64$5d
.p2align 4, 0x90
__ZN8__main__15mutate_list$245E21ListType$5bfloat64$5d:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
AttributeError: 'PointerType' object has no attribute 'elements'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/vhaenel/git/numba/numba/core/errors.py", line 720, in new_error_context
@esc
esc / main.yml
Created September 3, 2020 10:07
---
- name: Install python/pip related packages
apt: name={{ item }} state=present
with_items:
- python3-pip
- python3-venv
- libffi-dev
- libssl-dev
- pip:
@esc
esc / tpdisko.sh
Created November 9, 2020 20:43
Think Pad Disko
#!/bin/sh
val=1
while true
do
[ $val -eq 0 ] && val=1 || val=0
sudo sh -c "echo $val > \
/sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness"
sleep 0.1
done