Skip to content

Commit

Permalink
fix: weights must end with .weights.h5
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiszaher committed Aug 25, 2024
1 parent c4048b1 commit 71a2b60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def rgb_ratio_loss(self, clear_image, generated_image):

def get_models_and_paths(self):
import os
generator_clear2fog_weights_path = os.path.join(self.weights_path, 'generator_clear2fog.h5')
generator_fog2clear_weights_path = os.path.join(self.weights_path, 'generator_fog2clear.h5')
discriminator_clear_weights_path = os.path.join(self.weights_path, 'discriminator_clear.h5')
discriminator_fog_weights_path = os.path.join(self.weights_path, 'discriminator_fog.h5')
generator_clear2fog_weights_path = os.path.join(self.weights_path, 'generator_clear2fog.weights.h5')
generator_fog2clear_weights_path = os.path.join(self.weights_path, 'generator_fog2clear.weights.h5')
discriminator_clear_weights_path = os.path.join(self.weights_path, 'discriminator_clear.weights.h5')
discriminator_fog_weights_path = os.path.join(self.weights_path, 'discriminator_fog.weights.h5')
models = [self.generator_clear2fog,
self.generator_fog2clear,
self.discriminator_clear,
Expand Down

0 comments on commit 71a2b60

Please sign in to comment.