Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def main(predict_config: OmegaConf):
if sys.platform != 'win32':
register_debug_signal_handlers() # kill -10 <pid> will result in traceback dumped into log

device = torch.device("cpu")
device = torch.device(predict_config.get('device', 'cpu'))

train_config_path = os.path.join(predict_config.model.path, 'config.yaml')
with open(train_config_path, 'r') as f:
Expand Down
3 changes: 2 additions & 1 deletion configs/prediction/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ model:

dataset:
kind: default
img_suffix: .png
img_suffix: .jpg
pad_out_to_modulo: 8

device: cuda
out_key: inpainted
out_ext: .jpg

refine: False # refiner will only run if this is True
refiner:
Expand Down