未验证 提交 93c908c8 编写于 作者: W wuyefeilin 提交者: GitHub

fix some (#418)

* update hrnet yaml

* add benchmark yaml

* update deeplabv3p.yml

* delete utf-8 decalre

* update val.py

* update deeplabv3p.yml
上级 140025b7
...@@ -28,6 +28,7 @@ model: ...@@ -28,6 +28,7 @@ model:
backbone: backbone:
type: ResNet50_vd type: ResNet50_vd
output_stride: 8 output_stride: 8
multi_grid: [1, 2, 4]
num_classes: 19 num_classes: 19
backbone_indices: [0, 3] backbone_indices: [0, 3]
aspp_ratios: [1, 12, 24, 36] aspp_ratios: [1, 12, 24, 36]
......
...@@ -19,7 +19,7 @@ import tqdm ...@@ -19,7 +19,7 @@ import tqdm
import cv2 import cv2
import paddle import paddle
import paddle.nn.functional as F import paddle.nn.functional as F
from paddle import to_variable from paddle import to_tensor
import paddleseg.utils.logger as logger import paddleseg.utils.logger as logger
from paddleseg.utils import ConfusionMatrix from paddleseg.utils import ConfusionMatrix
...@@ -47,7 +47,7 @@ def evaluate(model, ...@@ -47,7 +47,7 @@ def evaluate(model,
timer.start() timer.start()
for iter, (im, im_info, label) in tqdm.tqdm( for iter, (im, im_info, label) in tqdm.tqdm(
enumerate(eval_dataset), total=total_iters): enumerate(eval_dataset), total=total_iters):
im = to_variable(im) im = to_tensor(im)
logits = model(im) logits = model(im)
pred = paddle.argmax(logits[0], axis=1) pred = paddle.argmax(logits[0], axis=1)
pred = pred.numpy().astype('float32') pred = pred.numpy().astype('float32')
......
# -*- encoding: utf-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
# -*- encoding: utf-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
# coding:utf-8
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License" # Licensed under the Apache License, Version 2.0 (the "License"
......
# -*- encoding: utf-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
# -*- encoding: utf-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
# -*- encoding: utf-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
# -*- encoding: utf-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册