Skip to content

Instantly share code, notes, and snippets.

@st-le
st-le / tracelog.txt
Last active July 5, 2022 01:16
num_workers > 0 issue
[07/01 16:54:04 d2.data.detection_utils]: TransformGens used in training: [ResizeShortestEdge(short_edge_length=(800,), max_size=1333, sample_style='choice')]
>>> cfg stats: ('trainset',) False
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/queues.py", line 239, in _feed
File "/usr/lib/python3.8/multiprocessing/reduction.py", line 51, in dumps
File "/usr/local/lib/python3.8/dist-packages/torch/multiprocessing/reductions.py", line 329, in reduce_storage
File "/usr/lib/python3.8/multiprocessing/reduction.py", line 198, in DupFd
File "/usr/lib/python3.8/multiprocessing/resource_sharer.py", line 48, in __init__
new_fd = os.dup(fd)
OSError: [Errno 24] Too many open files
@st-le
st-le / Install.md
Last active July 1, 2020 09:15
install python-pcl strawlab

pcl-dev is required:

$ sudo apt-get update -y
$ sudo apt-get install libpcl-dev -y

non-exhaustive list of the required packages:

pip install --upgrade pip
pip install cython
@st-le
st-le / solvepnp_tester.py
Created June 2, 2020 00:45
solvepnp tester
asdf
@st-le
st-le / copy_rgb.py
Created September 25, 2019 14:54
list folders and copy files with python pathlib, os.path, shutil
import os.path as osp
from pathlib import Path
import shutil as st
print ('hello world')
dir = Path('../benchmark_frames/')
all_path = []
all_path.append(list(dir.glob('[0-9]')))