Skip to content

Commit 8054e6a

Browse files
gtodericicopybara-github
authored andcommitted
Fixes relative imports in HifiC model.
PiperOrigin-RevId: 318143790 Change-Id: Iea34ded8e74edac5d61f3ccf5d7db23fd3fb9e88
1 parent fdff7ab commit 8054e6a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

models/hific/configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# ==============================================================================
1616
"""Configurations for HiFiC."""
1717

18-
import .helpers
18+
from . import helpers
1919

2020

2121
_CONFIGS = {

models/hific/evaluate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626
import tensorflow.compat.v1 as tf
2727

28-
import .configs
29-
import .helpers
30-
import .model
28+
from . import configs
29+
from . import helpers
30+
from . import model
3131

3232

3333
def eval_trained_model(config_name, ckpt_dir, max_images=None):

models/hific/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import tensorflow.compat.v1 as tf
2222
import tensorflow_datasets as tfds
2323

24-
import .archs
25-
import .helpers
24+
from . import archs
25+
from . import helpers
2626
from .helpers import ModelMode
2727
from .helpers import ModelType
2828

models/hific/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
import tensorflow.compat.v1 as tf
2222

23-
import .configs
24-
import .helpers
25-
import .model
26-
import .train
23+
from . import configs
24+
from . import helpers
25+
from . import model
26+
from . import train
2727

2828

2929
class HiFiCTest(tf.test.TestCase):

models/hific/train.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
import tensorflow.compat.v1 as tf
2323

24-
import .configs
25-
import .helpers
26-
import .model
24+
from . import configs
25+
from . import helpers
26+
from . import model
2727

2828

2929
SAVE_CHECKPOINT_STEPS = 100

0 commit comments

Comments
 (0)