-
Notifications
You must be signed in to change notification settings - Fork 61
/
demo.yml
40 lines (35 loc) · 993 Bytes
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ------------------------------------------------------------------------
# Copyright (c) 2021 megvii-model. All Rights Reserved.
# ------------------------------------------------------------------------
# Modified from BasicSR (https://github.com/xinntao/BasicSR)
# Copyright 2018-2020 BasicSR Authors
# ------------------------------------------------------------------------
# general settings
name: demo
model_type: ImageRestorationModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 10
# single image inference and save image
img_path:
input_img: ./demo/GOPR0384_11_00-000001.png
output_img: ./demo/demo1.png
# network structures
network_g:
type: HINet
wf: 64
hin_position_left: 3
hin_position_right: 4
# path
path:
pretrain_network_g: ./experiments/pretrained_models/HINet-GoPro.pth
strict_load_g: true
resume_state: ~
# validation settings
val:
grids: true
crop_size: 256
# dist training settings
dist_params:
backend: nccl
port: 29500