Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
HAT_pytorch
Commits
2ac5586e
Commit
2ac5586e
authored
Feb 02, 2024
by
Rayyyyy
Browse files
first commit
parents
Pipeline
#784
canceled with stages
Changes
188
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
0 deletions
+24
-0
tiny_datasets/Set5/LRbicx4/woman.png
tiny_datasets/Set5/LRbicx4/woman.png
+0
-0
tiny_datasets/Set5/original/baby.png
tiny_datasets/Set5/original/baby.png
+0
-0
tiny_datasets/Set5/original/bird.png
tiny_datasets/Set5/original/bird.png
+0
-0
tiny_datasets/Set5/original/butterfly.png
tiny_datasets/Set5/original/butterfly.png
+0
-0
tiny_datasets/Set5/original/head.png
tiny_datasets/Set5/original/head.png
+0
-0
tiny_datasets/Set5/original/woman.png
tiny_datasets/Set5/original/woman.png
+0
-0
train.sh
train.sh
+16
-0
val.sh
val.sh
+8
-0
No files found.
tiny_datasets/Set5/LRbicx4/woman.png
0 → 100644
View file @
2ac5586e
10.3 KB
tiny_datasets/Set5/original/baby.png
0 → 100644
View file @
2ac5586e
363 KB
tiny_datasets/Set5/original/bird.png
0 → 100644
View file @
2ac5586e
118 KB
tiny_datasets/Set5/original/butterfly.png
0 → 100644
View file @
2ac5586e
125 KB
tiny_datasets/Set5/original/head.png
0 → 100644
View file @
2ac5586e
111 KB
tiny_datasets/Set5/original/woman.png
0 → 100644
View file @
2ac5586e
116 KB
train.sh
0 → 100644
View file @
2ac5586e
#!/bin/bash
echo
"Export params ..."
export
HIP_VISIBLE_DEVICES
=
0,1,2,3,4,5,6,7
# 自行修改为训练的卡号和数量
export
HSA_FORCE_FINE_GRAIN_PCIE
=
1
export
USE_MIOPEN_BATCHNORM
=
1
echo
"Training start ..."
# HAT_SRx4
# options/train/train_HAT_SRx4_finetune_from_ImageNet_pretrain.yml文件中部分参数确认:
# 9行 datasets: 请确认数据地址正确
# 76行 pretrain_network_g: 请确认预训练模型地址正确
python
-m
torch.distributed.launch
--nproc_per_node
=
8
--master_port
=
4321 hat/train.py
-opt
options/train/train_HAT_SRx4_finetune_from_ImageNet_pretrain.yml
--launcher
pytorch
\ No newline at end of file
val.sh
0 → 100644
View file @
2ac5586e
#!/bin/bash
echo
"Export params ..."
export
HIP_VISIBLE_DEVICES
=
0
# 自行修改为训练的卡号
# 以 HAT_SRx4_ImageNet-pretrain.pth 为例:
# 7行 datasets:确认数据地址是否一致,如不一致,进行对应修改
# 70行 pretrain_network_g,可根据自己地址修改
python hat/test.py
-opt
options/test/HAT_SRx4_ImageNet-pretrain.yml
Prev
1
…
6
7
8
9
10
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment