os.path.dirname(os.path.realpath(__file__))
tqdm._instances.clear()
ExperimentProps = namedtuple( 'ExperimentProps', config.keys() )
class Experiment(ExperimentProps):
import zmq | |
import sys,os,time | |
#%% | |
port = '5563' | |
def server(): | |
context = zmq.Context() | |
socket = context.socket(zmq.PUB) | |
socket.bind('tcp://*:%s' % port) |
CMake is a haneous piece of software, but somehow it has more popularity than others. These are my notes on inane BS I have to deal with time to time in CMake.
Postfix like _Debug and _Release added to library names in windows.
-DCMAKE_VERBOSE_MAKEFILE=true
or
make VERBOSE=1
From: http://iwonderwhatjoeisworkingon.blogspot.com/2017/04/debugging-maya-using-visual-studio-code.html
pip install --user ptvsd
import ptvsd
ptvsd.enable_attach(address=('0.0.0.0', 3000), redirect_output=True)
From: https://stackoverflow.com/questions/50443411/how-to-load-a-tflite-model-in-script
Handles the case of multiple inputs and outputs.
interpreter = tf.lite.Interpreter(model_path=mfile)
interpreter.allocate_tensors()
# get input and output layer handles
input_details = sorted(interpreter.get_input_details(), key=lambda x:x['name'])