From 8988c8d51a7cd02c026d4fb3e1ecf3afcc9b3b7f Mon Sep 17 00:00:00 2001 From: Michael <m.langguth@fz-juelich.de> Date: Fri, 25 Sep 2020 15:07:17 +0200 Subject: [PATCH] Reordered and corrected several import statements in 'moving_mnist.py' --- .../video_prediction/datasets/moving_mnist.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/video_prediction_tools/video_prediction/datasets/moving_mnist.py b/video_prediction_tools/video_prediction/datasets/moving_mnist.py index ba855685..8d1beddc 100644 --- a/video_prediction_tools/video_prediction/datasets/moving_mnist.py +++ b/video_prediction_tools/video_prediction/datasets/moving_mnist.py @@ -1,4 +1,5 @@ import argparse +import sys import glob import itertools import os @@ -8,22 +9,16 @@ import re import numpy as np import json import tensorflow as tf -from video_prediction.datasets.base_dataset import VarLenFeatureVideoDataset -# ML 2020/04/14: hack for getting functions of process_netCDF_v2: -from os import path -import sys -sys.path.append(path.abspath('../../workflow_parallel_frame_prediction/')) -import DataPreprocess.process_netCDF_v2 -from general_utils import get_unique_vars -from statistics import Calc_data_stat -from metadata import MetaData -#from base_dataset import VarLenFeatureVideoDataset -from collections import OrderedDict from tensorflow.contrib.training import HParams from mpi4py import MPI -import glob +from collections import OrderedDict import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec +from video_prediction.datasets.base_dataset import VarLenFeatureVideoDataset +import data_preprocess.process_netCDF_v2 +from general_utils import get_unique_vars +from statistics import Calc_data_stat +from metadata import MetaData class MovingMnist(VarLenFeatureVideoDataset): def __init__(self, *args, **kwargs): -- GitLab