This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vapoursynth import core, RGBS, YUV444PS | |
__version__ = '1.1.1' | |
def hdr2sdr(clip, source_peak=1000, ldr_nits=100, output_foramt=YUV420P8, input_range='limited', output_range='limited', dither='error_diffusion'): | |
"""Converts HDR footage to SDR. | |
https://forum.doom9.org/showthread.php?p=1800667#post1800667 | |
Args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from theano import function | |
from theano import tensor as T | |
# (theano Tutorial)[http://deeplearning.net/software/theano/tutorial/examples.html] | |
# create a symbolic matrix | |
x, y = T.dmatrices('x', 'y') | |
diff_output = x - y | |
abs_diff_output = abs(diff_output) | |
diff_squared_output = diff_output**2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from theano import function | |
from theano import tensor as T | |
# (theano Tutorial)[http://deeplearning.net/software/theano/tutorial/examples.html] | |
# create a symbolic matrix | |
x = T.dmatrix('x') | |
# Method 1 | |
# symbolic function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Store function on node | |
Usage example: | |
.. code-block:: | |
# Control node | |
ctrl_node_name = 'MY_SCRIPT_NODE' # if None, store on nuke.root() | |
# Define your functions and add them to the dictionary |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Store function on node | |
Usage example: | |
.. code-block:: | |
# Control node | |
ctrl_node_name = 'MY_SCRIPT_NODE' # if None, store on nuke.root() | |
# Define your functions and add them to the dictionary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ast | |
import sys | |
import os | |
with open(os.path.abspath(sys.argv[-1])) as f: | |
fc = f.read() | |
for i in filter(lambda x: isinstance(x, ast.FunctionDef), ast.parse(fc).body): | |
print(i.name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logger = logging.getLogger(__file__) | |
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(message)s', | |
level=logging.DEBUG) | |
class Bank(object): | |
"""docstring for Bank""" | |
def __init__(self, inital_deposit): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version 1 | |
From 0.000000 1.000000 | |
Length 4096 | |
Components 1 | |
{ | |
1.3793103448276E-1 | |
1.3983263082880E-1 | |
1.4173422717484E-1 | |
1.4363582352088E-1 | |
1.4553741986692E-1 |