This commit is contained in:
Nick
2019-11-02 14:31:19 -06:00
parent efb511ee97
commit 9caee104fd
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ def play_unconstrained():
if __name__ == '__main__':
play_unconstrained()
import cProfile
cProfile.run('play_unconstrained()')
+1 -1
View File
@@ -23,7 +23,7 @@ def loss(labels, logits):
class CTRLGenerator():
def __init__(self, control_code="Apocalypse ", generate_num=28, temperature=0.5, topk=40, nucleus_prob=0, lower_memory=True):
def __init__(self, control_code="Apocalypse ", generate_num=28, temperature=0.5, topk=40, nucleus_prob=0, lower_memory=False):
self.generate_num=generate_num
model_dir = "generator/ctrl/model/aidungeon2model/"