Skip to content

Instantly share code, notes, and snippets.

"""
Import this first, before *anything* else, if you are using `multiprocessing`
directly or indirectly and you encounter "freezing" when any threaded code uses
things like NumPy, OpenCV, etc.
This should only be be necessary when using the "fork" start method; other methods
should (hopefully) work fine without it:
https://docs.python.org/3.6/library/multiprocessing.html#contexts-and-start-methods
For more information, see:
https://stackoverflow.com/questions/17053671/python-how-do-you-stop-numpy-from-multithreading # noqa
@andyweizhao
andyweizhao / cuda_installation_on_ubuntu_18.04
Last active October 11, 2021 17:56 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
cuda 9.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.3 in ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@shoyer
shoyer / resize-non-integer-local-mean.ipynb
Created July 19, 2018 18:41
resize non-integer local mean.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.