Skip to content

Commit

Permalink
add urls for pretrained weights from github release
Browse files Browse the repository at this point in the history
  • Loading branch information
CCareaga authored Jan 3, 2024
1 parent 3211ecf commit 7bb4bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion intrinsic_compositing/albedo/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from intrinsic_composite.albedo.model.editingnetwork_trainer import EditingNetworkTrainer

PAPER_WEIGHTS_URL = ''
PAPER_WEIGHTS_URL = 'https://github.com/compphoto/IntrinsicCompositing/releases/download/1.0.0/albedo_paper_weights.pth'
CACHE_PATH = torch.hub.get_dir()


Expand Down
4 changes: 3 additions & 1 deletion intrinsic_compositing/shading/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
def load_reshading_model(path, device='cuda'):

if path == 'paper_weights':
state_dict = torch.hub.load_state_dict_from_url('', map_location=device, progress=True)
state_dict = torch.hub.load_state_dict_from_url('https://github.com/compphoto/IntrinsicCompositing/releases/download/1.0.0/shading_paper_weights.pt', map_location=device, progress=True)
if path == 'further_trained'
state_dict = torch.hub.load_state_dict_from_url('https://github.com/compphoto/IntrinsicCompositing/releases/download/1.0.0/further_trained.pt', map_location=device, progress=True)
else:
state_dict = torch.load(path)

Expand Down

0 comments on commit 7bb4bc0

Please sign in to comment.