Skip to content

Commit

Permalink
Remove self reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-thevenin committed Mar 17, 2020
1 parent 6ad5095 commit 7ffd9c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions init_Wi.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@

#init W_i
print('Initializing Discriminator weights')
if not os.path.isdir(self.path_to_Wi):
os.mkdir(self.path_to_Wi)
for i in tqdm(range(num_videos)):
if not os.path.isfile(self.path_to_Wi+'/W_'+str(i)+'/W_'+str(i)+'.tar'):
if not os.path.isdir(path_to_Wi):
os.mkdir(path_to_Wi)
for i in tqdm(range(num_vid)):
if not os.path.isfile(path_to_Wi+'/W_'+str(i)+'/W_'+str(i)+'.tar'):
w_i = torch.rand(512, 1)
os.mkdir(self.path_to_Wi+'/W_'+str(i))
torch.save({'W_i': w_i}, self.path_to_Wi+'/W_'+str(i)+'/W_'+str(i)+'.tar')
os.mkdir(path_to_Wi+'/W_'+str(i))
torch.save({'W_i': w_i}, path_to_Wi+'/W_'+str(i)+'/W_'+str(i)+'.tar')

"""Training"""
batch_start = datetime.now()
Expand Down

0 comments on commit 7ffd9c0

Please sign in to comment.