Skip to content

Commit aa84b9b

Browse files
committed
adding the recoloring examples used in the paper
1 parent 77e94e2 commit aa84b9b

File tree

10 files changed

+3
-5
lines changed

10 files changed

+3
-5
lines changed

examples/brown_chairs/input.png

2.4 MB
Loading

examples/brown_chairs/mask.png

34.2 KB
Loading

examples/brown_chairs/texture.png

10.8 KB
Loading

examples/spain_museum/input.jpg

996 KB
Loading

examples/spain_museum/mask.png

30.1 KB
Loading

examples/spain_museum/texture.png

1.45 MB
Loading

examples/yellow_chair/input.png

2.37 MB
Loading

examples/yellow_chair/mask.png

27 KB
Loading

examples/yellow_chair/texture.png

9.39 KB
Loading

intrinsic/decompose.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
from intrinsic.model_util import load_models
66

77
# load the models from the given paths
8-
models = load_models(
9-
ord_path='./final_weights/vivid_bird_318_300.pt',
10-
mrg_path='./final_weights/fluent_eon_138_200.pt'
11-
)
8+
models = load_models('paper_weights')
129

1310
# load an image (np float array in [0-1])
1411
image = load_image('/path/to/input/image')
1512

16-
# run the model on the image using R_0 resizing
13+
# run the model on the image using R_0 resizing
14+
# the maintain_size will output components that match the original image dims
1715
results = run_pipeline(
1816
models,
1917
image,

0 commit comments

Comments
 (0)