Change some absolute imports to relative

pull/13/head
Ross Wightman 6 years ago
parent b9f8d40b10
commit 871f4c1b0c

@ -1,6 +1,6 @@
from data.constants import *
from data.config import resolve_data_config
from data.dataset import Dataset
from data.transforms import *
from data.loader import create_loader
from data.mixup import mixup_target, FastCollateMixup
from .constants import *
from .config import resolve_data_config
from .dataset import Dataset
from .transforms import *
from .loader import create_loader
from .mixup import mixup_target, FastCollateMixup

@ -1 +1 @@
from loss.cross_entropy import LabelSmoothingCrossEntropy, SoftTargetCrossEntropy
from .cross_entropy import LabelSmoothingCrossEntropy, SoftTargetCrossEntropy

@ -1,4 +1,4 @@
from models.model_factory import create_model
from models.helpers import load_checkpoint, resume_checkpoint
from models.test_time_pool import TestTimePoolHead, apply_test_time_pool
from .model_factory import create_model
from .helpers import load_checkpoint, resume_checkpoint
from .test_time_pool import TestTimePoolHead, apply_test_time_pool

@ -1,3 +1,3 @@
from optim.nadam import Nadam
from optim.rmsprop_tf import RMSpropTF
from optim.optim_factory import create_optimizer
from .nadam import Nadam
from .rmsprop_tf import RMSpropTF
from .optim_factory import create_optimizer

@ -1,5 +1,5 @@
from scheduler.cosine_lr import CosineLRScheduler
from scheduler.plateau_lr import PlateauLRScheduler
from scheduler.step_lr import StepLRScheduler
from scheduler.tanh_lr import TanhLRScheduler
from scheduler.scheduler_factory import create_scheduler
from .cosine_lr import CosineLRScheduler
from .plateau_lr import PlateauLRScheduler
from .step_lr import StepLRScheduler
from .tanh_lr import TanhLRScheduler
from .scheduler_factory import create_scheduler

Loading…
Cancel
Save