Skip to content

Commit

Permalink
IdentityLUT33 in LIBCOM_MODEL_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Cohen committed Apr 3, 2024
1 parent a854320 commit 9064595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcom/image_harmonization/source/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ class Generator3DLUT_identity(nn.Module):
def __init__(self, dim=33):
super(Generator3DLUT_identity, self).__init__()
filepath = '/'.join(os.path.realpath(__file__).split("/")[0:-2])
filepath = os.environ.get('LIBCOM_MODEL_DIR',filepath)
if dim == 33:
file = open(filepath + "/pretrained_models/IdentityLUT33.txt", 'r')
lines = file.readlines()
Expand Down

0 comments on commit 9064595

Please sign in to comment.