get_ipython().run_line_magic('matplotlib', 'inline') from tqdm import tqdm_notebook PARENT_DIR = os.path.realpath('..') import importlib if PARENT_DIR not in sys.path: sys.path.append(PARENT_DIR) try: importlib.reload(sl) except: import synt_lib as sl # In[2]: DIRS = sl.get_dirs(parent_dir=PARENT_DIR) M_PARAMS = sl.get_model_params() # In[3]: quant = M_PARAMS['QUANTIZATION_CHANNELS'] nbits = int(np.log2(quant)) # # Build model # In[41]:
sys.path.append('/opt/notebooks/') try: importlib.reload(sl) except: import synt_lib as sl # In[2]: sess = tf.Session() # In[3]: DIRS = sl.get_dirs() M_PARAMS = sl.get_model_params() # In[4]: quant = 256*256#16#M_PARAMS['QUANTIZATION_CHANNELS'] # # Get Data # In[5]: n_files = 3