fb5a8a3e0a73eea528ac398c04ba20a96ef575e1,examples/experimental/next-frame.py,VideoFrameSampler,_sample,#VideoFrameSampler#,156
Before Change
self.seed()
self.i += 1
time.sleep(0.05)
return [("input", self.gan.inputs.next()), ("generator", self.g)]
class TrainingVideoFrameSampler(BaseSampler):
def __init__(self, gan, samples_per_row=8):
After Change
self.i = 0
def _sample(self):
self.inp = self.gan.inputs.next()
samples = [("input", self.inp)]
self.z = self.EZ(self.g, context={"z":self.z})
self.c = self.EC(self.z, context={"c":self.c})
self.g = self.G(self.c, context={"z":self.z})
if self.i % 100 == 0:
self.seed()
if self.gan.config.random:
samples += [("rand", self.rg)]
self.rz = self.EZ(self.rg, context={"z":self.rz})
self.rc = self.EC(self.rz, context={"c":self.rc})
self.rg = self.G(self.rc, context={"z":self.rz})
self.i += 1
time.sleep(0.033)
samples += [("generator", self.g)]
//time.sleep(0.1)
return samples
class TrainingVideoFrameSampler(BaseSampler):
def __init__(self, gan, samples_per_row=8):
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 5
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: fb5a8a3e0a73eea528ac398c04ba20a96ef575e1
Time: 2020-02-17
Author: martyn@255bits.com
File Name: examples/experimental/next-frame.py
Class Name: VideoFrameSampler
Method Name: _sample
Project Name: tensorflow/datasets
Commit Name: 02f8cca2fcdc5051490c7569f719cbfd9b25573a
Time: 2019-07-10
Author: epot@google.com
File Name: tensorflow_datasets/testing/test_utils.py
Class Name:
Method Name: features_encode_decode
Project Name: oddt/oddt
Commit Name: 601589d260aff28bd0d53d1522bcffd9bf88ffa0
Time: 2018-02-27
Author: maciek@wojcikowski.pl
File Name: oddt/datasets.py
Class Name: _pdbbind_id
Method Name: protein
Project Name: J535D165/recordlinkage
Commit Name: b9868f3464174f1f8dcd5b6cb8c7c560b34935f2
Time: 2016-08-20
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name: Pairs
Method Name: index
Project Name: flow-project/flow
Commit Name: aea6a1895a17e01ad425c29bd37f0c6382147b21
Time: 2019-06-03
Author: nathanlct@icloud.com
File Name: flow/utils/aimsun/scripting_api.py
Class Name: AimsunTemplate
Method Name: find_by_name
Project Name: deepmind/sonnet
Commit Name: d8e6e4c2c2a88cfef39eb80e9722daba8b88ef21
Time: 2017-06-21
Author: mareynolds@google.com
File Name: sonnet/python/modules/basic_rnn.py
Class Name: DeepRNN
Method Name: output_size
Project Name: oddt/oddt
Commit Name: 601589d260aff28bd0d53d1522bcffd9bf88ffa0
Time: 2018-02-27
Author: maciek@wojcikowski.pl
File Name: oddt/datasets.py
Class Name: _pdbbind_id
Method Name: pocket