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
# ------------------------------------------------------------------------------ | |
# Adapted from https://github.com/activitynet/ActivityNet/ | |
# Original licence: Copyright (c) Microsoft, under the MIT License. | |
# ------------------------------------------------------------------------------ | |
import argparse | |
import glob | |
import json | |
import os | |
import shutil | |
import ssl |
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 tensorflow as tf | |
from tensorflow.python.ops import clip_ops | |
from tensorflow.python.ops import logging_ops | |
#I modifid the tensorflow lstm implementation that returns the internal values also. | |
import model_runner.common.rnn_cellv3 as rnncell | |
class Model(): | |
def __init__(self,params, is_training=True): |