submit_test / loss /__init__.py
caliangandrew's picture
Upload 42 files
8f57ce7 verified
raw
history blame contribute delete
413 Bytes
import os
import sys
current_file_path = os.path.abspath(__file__)
parent_dir = os.path.dirname(os.path.dirname(current_file_path))
project_root_dir = os.path.dirname(parent_dir)
sys.path.append(parent_dir)
sys.path.append(project_root_dir)
from metrics.registry import LOSSFUNC
from .cross_entropy_loss import CrossEntropyLoss
from .contrastive_regularization import ContrastiveLoss
from .l1_loss import L1Loss