File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
from time import time
3
3
import tensorflow as tf
4
- from keras import backend as K
5
- from keras .callbacks import TensorBoard
6
- from keras .datasets import mnist
7
- from keras .layers import *
8
- from keras .layers .merge import concatenate as concat
9
- from keras .models import Model
10
- from keras .optimizers import Adam
4
+ from tensorflow . python . keras import backend as K
5
+ from tensorflow . python . keras .callbacks import TensorBoard
6
+ from tensorflow . python . keras .datasets import mnist
7
+ from tensorflow . python . keras .layers import *
8
+ from tensorflow . python . keras .layers .merge import concatenate as concat
9
+ from tensorflow . python . keras .models import Model
10
+ from tensorflow . python . keras .optimizers import Adam
11
11
12
12
13
13
# class for CVAE
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
from scipy .misc import imsave
3
3
import matplotlib .pyplot as plt
4
- from keras .models import load_model
4
+ from tensorflow . python . keras .models import load_model
5
5
6
6
decoder = load_model ('decoder.h5' )
7
7
Original file line number Diff line number Diff line change 1
1
import argparse
2
2
import numpy as np
3
- from keras .datasets import mnist
4
- from keras .utils import to_categorical
3
+ from tensorflow . python . keras .datasets import mnist
4
+ from tensorflow . python . keras .utils import to_categorical
5
5
from cvae import CVAE
6
6
from utils import *
7
7
import os
You can’t perform that action at this time.
0 commit comments