own
Bobholamovic 2 years ago
parent 69c160404a
commit 3929c7e26e
  1. 6
      paddlers/models/ppseg/core/predict.py
  2. 7
      paddlers/models/ppseg/core/train.py
  3. 4
      paddlers/models/ppseg/core/val.py
  4. 4
      paddlers/models/ppseg/cvlibs/callbacks.py
  5. 6
      paddlers/models/ppseg/cvlibs/config.py
  6. 4
      paddlers/models/ppseg/cvlibs/manager.py
  7. 10
      paddlers/models/ppseg/cvlibs/param_init.py
  8. 12
      paddlers/models/ppseg/datasets/ade.py
  9. 10
      paddlers/models/ppseg/datasets/chase_db1.py
  10. 6
      paddlers/models/ppseg/datasets/cityscapes.py
  11. 6
      paddlers/models/ppseg/datasets/cocostuff.py
  12. 10
      paddlers/models/ppseg/datasets/dataset.py
  13. 10
      paddlers/models/ppseg/datasets/drive.py
  14. 12
      paddlers/models/ppseg/datasets/eg1800.py
  15. 10
      paddlers/models/ppseg/datasets/hrf.py
  16. 8
      paddlers/models/ppseg/datasets/mini_deep_globe_road_extraction.py
  17. 8
      paddlers/models/ppseg/datasets/optic_disc_seg.py
  18. 6
      paddlers/models/ppseg/datasets/pascal_context.py
  19. 4
      paddlers/models/ppseg/datasets/pp_humanseg14k.py
  20. 6
      paddlers/models/ppseg/datasets/pssl.py
  21. 10
      paddlers/models/ppseg/datasets/stare.py
  22. 12
      paddlers/models/ppseg/datasets/supervisely.py
  23. 10
      paddlers/models/ppseg/datasets/voc.py
  24. 6
      paddlers/models/ppseg/models/ann.py
  25. 6
      paddlers/models/ppseg/models/attention_unet.py
  26. 4
      paddlers/models/ppseg/models/backbones/ghostnet.py
  27. 6
      paddlers/models/ppseg/models/backbones/hrnet.py
  28. 4
      paddlers/models/ppseg/models/backbones/lite_hrnet.py
  29. 6
      paddlers/models/ppseg/models/backbones/mix_transformer.py
  30. 4
      paddlers/models/ppseg/models/backbones/mobilenetv2.py
  31. 6
      paddlers/models/ppseg/models/backbones/mobilenetv3.py
  32. 6
      paddlers/models/ppseg/models/backbones/resnet_vd.py
  33. 4
      paddlers/models/ppseg/models/backbones/shufflenetv2.py
  34. 6
      paddlers/models/ppseg/models/backbones/stdcnet.py
  35. 6
      paddlers/models/ppseg/models/backbones/swin_transformer.py
  36. 6
      paddlers/models/ppseg/models/backbones/top_transformer.py
  37. 6
      paddlers/models/ppseg/models/backbones/vision_transformer.py
  38. 6
      paddlers/models/ppseg/models/backbones/xception_deeplab.py
  39. 6
      paddlers/models/ppseg/models/bisenet.py
  40. 6
      paddlers/models/ppseg/models/bisenetv1.py
  41. 6
      paddlers/models/ppseg/models/ccnet.py
  42. 6
      paddlers/models/ppseg/models/danet.py
  43. 6
      paddlers/models/ppseg/models/ddrnet.py
  44. 10
      paddlers/models/ppseg/models/decoupled_segnet.py
  45. 6
      paddlers/models/ppseg/models/deeplab.py
  46. 6
      paddlers/models/ppseg/models/dmnet.py
  47. 6
      paddlers/models/ppseg/models/dnlnet.py
  48. 6
      paddlers/models/ppseg/models/emanet.py
  49. 6
      paddlers/models/ppseg/models/encnet.py
  50. 6
      paddlers/models/ppseg/models/enet.py
  51. 6
      paddlers/models/ppseg/models/espnet.py
  52. 6
      paddlers/models/ppseg/models/espnetv1.py
  53. 6
      paddlers/models/ppseg/models/fast_scnn.py
  54. 6
      paddlers/models/ppseg/models/fastfcn.py
  55. 6
      paddlers/models/ppseg/models/fcn.py
  56. 6
      paddlers/models/ppseg/models/gcnet.py
  57. 6
      paddlers/models/ppseg/models/ginet.py
  58. 6
      paddlers/models/ppseg/models/glore.py
  59. 10
      paddlers/models/ppseg/models/gscnn.py
  60. 6
      paddlers/models/ppseg/models/hardnet.py
  61. 6
      paddlers/models/ppseg/models/hrnet_contrast.py
  62. 6
      paddlers/models/ppseg/models/isanet.py
  63. 2
      paddlers/models/ppseg/models/layers/activation.py
  64. 2
      paddlers/models/ppseg/models/layers/attention.py
  65. 2
      paddlers/models/ppseg/models/layers/layer_libs.py
  66. 2
      paddlers/models/ppseg/models/layers/nonlocal2d.py
  67. 2
      paddlers/models/ppseg/models/layers/pyramid_pool.py
  68. 4
      paddlers/models/ppseg/models/layers/tensor_fusion.py
  69. 2
      paddlers/models/ppseg/models/losses/binary_cross_entropy_loss.py
  70. 2
      paddlers/models/ppseg/models/losses/bootstrapped_cross_entropy.py
  71. 2
      paddlers/models/ppseg/models/losses/cross_entropy_loss.py
  72. 2
      paddlers/models/ppseg/models/losses/decoupledsegnet_relax_boundary_loss.py
  73. 2
      paddlers/models/ppseg/models/losses/detail_aggregate_loss.py
  74. 2
      paddlers/models/ppseg/models/losses/dice_loss.py
  75. 4
      paddlers/models/ppseg/models/losses/edge_attention_loss.py
  76. 2
      paddlers/models/ppseg/models/losses/focal_loss.py
  77. 2
      paddlers/models/ppseg/models/losses/gscnn_dual_task_loss.py
  78. 2
      paddlers/models/ppseg/models/losses/kl_loss.py
  79. 2
      paddlers/models/ppseg/models/losses/l1_loss.py
  80. 2
      paddlers/models/ppseg/models/losses/lovasz_loss.py
  81. 2
      paddlers/models/ppseg/models/losses/mean_square_error_loss.py
  82. 2
      paddlers/models/ppseg/models/losses/mixed_loss.py
  83. 2
      paddlers/models/ppseg/models/losses/ohem_cross_entropy_loss.py
  84. 4
      paddlers/models/ppseg/models/losses/ohem_edge_attention_loss.py
  85. 2
      paddlers/models/ppseg/models/losses/pixel_contrast_cross_entropy_loss.py
  86. 2
      paddlers/models/ppseg/models/losses/point_cross_entropy_loss.py
  87. 2
      paddlers/models/ppseg/models/losses/rmi_loss.py
  88. 2
      paddlers/models/ppseg/models/losses/semantic_connectivity_loss.py
  89. 2
      paddlers/models/ppseg/models/losses/semantic_encode_cross_entropy_loss.py
  90. 6
      paddlers/models/ppseg/models/lraspp.py
  91. 6
      paddlers/models/ppseg/models/mla_transformer.py
  92. 6
      paddlers/models/ppseg/models/mobileseg.py
  93. 6
      paddlers/models/ppseg/models/ocrnet.py
  94. 6
      paddlers/models/ppseg/models/pfpnnet.py
  95. 6
      paddlers/models/ppseg/models/pointrend.py
  96. 4
      paddlers/models/ppseg/models/portraitnet.py
  97. 8
      paddlers/models/ppseg/models/pp_liteseg.py
  98. 8
      paddlers/models/ppseg/models/pphumanseg_lite.py
  99. 6
      paddlers/models/ppseg/models/pspnet.py
  100. 6
      paddlers/models/ppseg/models/segformer.py
  101. Some files were not shown because too many files have changed in this diff Show More

@ -19,9 +19,9 @@ import cv2
import numpy as np
import paddle
from paddleseg import utils
from paddleseg.core import infer
from paddleseg.utils import logger, progbar, visualize
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.core import infer
from paddlers.models.ppseg.utils import logger, progbar, visualize
def mkdir(path):

@ -20,9 +20,10 @@ import shutil
import paddle
import paddle.nn.functional as F
from paddleseg.utils import (TimeAverager, calculate_eta, resume, logger,
worker_init_fn, train_profiler, op_flops_funs)
from paddleseg.core.val import evaluate
from paddlers.models.ppseg.utils import (TimeAverager, calculate_eta, resume,
logger, worker_init_fn, train_profiler,
op_flops_funs)
from paddlers.models.ppseg.core.val import evaluate
def check_logits_losses(logits_list, losses):

@ -19,8 +19,8 @@ import time
import paddle
import paddle.nn.functional as F
from paddleseg.utils import metrics, TimeAverager, calculate_eta, logger, progbar
from paddleseg.core import infer
from paddlers.models.ppseg.utils import metrics, TimeAverager, calculate_eta, logger, progbar
from paddlers.models.ppseg.core import infer
np.set_printoptions(suppress=True)

@ -19,8 +19,8 @@ import numpy as np
import paddle
from paddle.distributed.parallel import ParallelEnv
from visualdl import LogWriter
from paddleseg.utils.progbar import Progbar
import paddleseg.utils.logger as logger
from paddlers.models.ppseg.utils.progbar import Progbar
import paddlers.models.ppseg.utils.logger as logger
class CallbackList(object):

@ -22,8 +22,8 @@ import paddle
import yaml
import six
from paddleseg.cvlibs import manager
from paddleseg.utils import logger
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import logger
class Config(object):
@ -54,7 +54,7 @@ class Config(object):
Examples:
from paddleseg.cvlibs.config import Config
from paddlers.models.ppseg.cvlibs.config import Config
# Create a cfg object with yaml file path.
cfg = Config(yaml_cfg_path)

@ -31,7 +31,7 @@ class ComponentManager:
Examples 1:
from paddleseg.cvlibs.manager import ComponentManager
from paddlers.models.ppseg.cvlibs.manager import ComponentManager
model_manager = ComponentManager()
@ -49,7 +49,7 @@ class ComponentManager:
Examples 2:
# Or an easier way, using it as a Python decorator, while just add it above the class declaration.
from paddleseg.cvlibs.manager import ComponentManager
from paddlers.models.ppseg.cvlibs.manager import ComponentManager
model_manager = ComponentManager()

@ -24,7 +24,7 @@ def constant_init(param, **kwargs):
Examples:
from paddleseg.cvlibs import param_init
from paddlers.models.ppseg.cvlibs import param_init
import paddle.nn as nn
linear = nn.Linear(2, 4)
@ -46,7 +46,7 @@ def normal_init(param, **kwargs):
Examples:
from paddleseg.cvlibs import param_init
from paddlers.models.ppseg.cvlibs import param_init
import paddle.nn as nn
linear = nn.Linear(2, 4)
@ -79,7 +79,7 @@ def kaiming_normal_init(param, **kwargs):
Examples:
from paddleseg.cvlibs import param_init
from paddlers.models.ppseg.cvlibs import param_init
import paddle.nn as nn
linear = nn.Linear(2, 4)
@ -109,7 +109,7 @@ def kaiming_uniform(param, **kwargs):
Examples:
from paddleseg.cvlibs import param_init
from paddlers.models.ppseg.cvlibs import param_init
import paddle.nn as nn
linear = nn.Linear(2, 4)
@ -136,7 +136,7 @@ def xavier_uniform(param, **kwargs):
Examples:
from paddleseg.cvlibs import param_init
from paddlers.models.ppseg.cvlibs import param_init
import paddle.nn as nn
linear = nn.Linear(2, 4)

@ -17,12 +17,12 @@ import os
import numpy as np
from PIL import Image
from paddleseg.datasets import Dataset
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
import paddleseg.transforms.functional as F
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
import paddlers.models.ppseg.transforms.functional as F
URL = "http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip"

@ -14,11 +14,11 @@
import os
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddleseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
URL = 'https://bj.bcebos.com/paddleseg/dataset/chase_db1/chase_db1.zip'

@ -15,9 +15,9 @@
import os
import glob
from paddleseg.datasets import Dataset
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
@manager.DATASETS.add_component

@ -15,9 +15,9 @@
import os
import glob
from paddleseg.datasets import Dataset
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
@manager.DATASETS.add_component

@ -18,9 +18,9 @@ import paddle
import numpy as np
from PIL import Image
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
import paddleseg.transforms.functional as F
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
import paddlers.models.ppseg.transforms.functional as F
@manager.DATASETS.add_component
@ -46,8 +46,8 @@ class Dataset(paddle.io.Dataset):
Examples:
import paddleseg.transforms as T
from paddleseg.datasets import Dataset
import paddlers.models.ppseg as ppseg.transforms as T
from paddlers.models.ppseg.datasets import Dataset
transforms = [T.RandomPaddingCrop(crop_size=(512,512)), T.Normalize()]
dataset_root = 'dataset_root_path'

@ -14,11 +14,11 @@
import os
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddleseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
URL = 'https://bj.bcebos.com/paddleseg/dataset/drive/drive.zip'

@ -18,12 +18,12 @@ import copy
import cv2
import numpy as np
from paddleseg.datasets import Dataset
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
import paddleseg.transforms.functional as F
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
import paddlers.models.ppseg.transforms.functional as F
URL = "https://paddleseg.bj.bcebos.com/dataset/EG1800.zip"

@ -14,11 +14,11 @@
import os
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddleseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
URL = 'https://bj.bcebos.com/paddleseg/dataset/hrf/hrf.zip'

@ -15,10 +15,10 @@
import os
from .dataset import Dataset
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
URL = "https://paddleseg.bj.bcebos.com/dataset/MiniDeepGlobeRoadExtraction.zip"

@ -15,10 +15,10 @@
import os
from .dataset import Dataset
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
URL = "https://paddleseg.bj.bcebos.com/dataset/optic_disc_seg.zip"

@ -15,9 +15,9 @@
import os
from PIL import Image
from paddleseg.datasets import Dataset
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
@manager.DATASETS.add_component

@ -15,8 +15,8 @@
import os
from .dataset import Dataset
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
@manager.DATASETS.add_component

@ -15,9 +15,9 @@
import os
import numpy as np
from paddleseg.datasets import Dataset
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
@manager.DATASETS.add_component

@ -14,11 +14,11 @@
import os
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddleseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
URL = 'https://bj.bcebos.com/paddleseg/dataset/stare/stare.zip'

@ -18,12 +18,12 @@ import copy
import cv2
import numpy as np
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddleseg.datasets import Dataset
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
import paddleseg.transforms.functional as F
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
import paddlers.models.ppseg.transforms.functional as F
URL = "https://paddleseg.bj.bcebos.com/dataset/Supervisely_face.zip"

@ -14,11 +14,11 @@
import os
from paddleseg.datasets import Dataset
from paddleseg.utils.download import download_file_and_uncompress
from paddleseg.utils import seg_env
from paddleseg.cvlibs import manager
from paddleseg.transforms import Compose
from paddlers.models.ppseg.datasets import Dataset
from paddlers.models.ppseg.utils.download import download_file_and_uncompress
from paddlers.models.ppseg.utils import seg_env
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.transforms import Compose
URL = "http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar"

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -14,9 +14,9 @@
import paddle
import paddle.nn as nn
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg import utils
import numpy as np

@ -23,8 +23,8 @@ from paddle.nn import Conv2D, BatchNorm, AdaptiveAvgPool2D, Linear
from paddle.regularizer import L2Decay
from paddle.nn.initializer import Uniform, KaimingNormal
from paddleseg.cvlibs import manager
from paddleseg.utils import utils, logger
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils, logger
__all__ = ["GhostNet_x0_5", "GhostNet_x1_0", "GhostNet_x1_3"]

@ -18,9 +18,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
__all__ = [
"HRNet_W18_Small_V1", "HRNet_W18_Small_V2", "HRNet_W18", "HRNet_W30",

@ -24,8 +24,8 @@ from paddle import ParamAttr
from paddle.regularizer import L2Decay
from paddle.nn.initializer import Normal, Constant
from paddleseg.cvlibs import manager
from paddleseg import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg import utils
__all__ = [
"Lite_HRNet_18", "Lite_HRNet_30", "Lite_HRNet_naive",

@ -20,9 +20,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import paddle.nn.initializer as paddle_init
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddleseg.models.backbones.transformer_utils import *
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
from paddlers.models.ppseg.models.backbones.transformer_utils import *
class Mlp(nn.Layer):

@ -19,8 +19,8 @@ import paddle.nn.functional as F
from paddle.nn import Conv2D, BatchNorm, Linear, Dropout
from paddle.nn import AdaptiveAvgPool2D, MaxPool2D, AvgPool2D
from paddleseg.cvlibs import manager
from paddleseg import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg import utils
__all__ = [
"MobileNetV2_x0_25",

@ -18,9 +18,9 @@ from paddle import ParamAttr
from paddle.regularizer import L2Decay
from paddle.nn import AdaptiveAvgPool2D, BatchNorm, Conv2D, Dropout, Linear
from paddleseg.cvlibs import manager
from paddleseg.utils import utils, logger
from paddleseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils, logger
from paddlers.models.ppseg.models import layers
__all__ = [
"MobileNetV3_small_x0_35", "MobileNetV3_small_x0_5",

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
__all__ = [
"ResNet18_vd", "ResNet34_vd", "ResNet50_vd", "ResNet101_vd", "ResNet152_vd"

@ -18,8 +18,8 @@ from paddle.nn import Layer, Conv2D, MaxPool2D, AdaptiveAvgPool2D, BatchNorm, Li
from paddle.nn.initializer import KaimingNormal
from paddle.nn.functional import swish
from paddleseg.cvlibs import manager
from paddleseg.utils import utils, logger
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils, logger
__all__ = [
'ShuffleNetV2_x0_25', 'ShuffleNetV2_x0_33', 'ShuffleNetV2_x0_5',

@ -17,9 +17,9 @@ import math
import paddle
import paddle.nn as nn
from paddleseg.utils import utils
from paddleseg.cvlibs import manager, param_init
from paddleseg.models.layers.layer_libs import SyncBatchNorm
from paddlers.models.ppseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models.layers.layer_libs import SyncBatchNorm
__all__ = ["STDC1", "STDC2"]

@ -17,9 +17,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import numpy as np
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddleseg.models.backbones.transformer_utils import *
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
from paddlers.models.ppseg.models.backbones.transformer_utils import *
class Mlp(nn.Layer):

@ -19,9 +19,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg import utils
from paddleseg.models.backbones.transformer_utils import Identity, DropPath
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.models.backbones.transformer_utils import Identity, DropPath
__all__ = ["TopTransformer_Base", "TopTransformer_Small", "TopTransformer_Tiny"]

@ -20,9 +20,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import numpy as np
from paddleseg.cvlibs import manager
from paddleseg.utils import utils, logger
from paddleseg.models.backbones.transformer_utils import to_2tuple, DropPath, Identity
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils, logger
from paddlers.models.ppseg.models.backbones.transformer_utils import to_2tuple, DropPath, Identity
class Mlp(nn.Layer):

@ -15,9 +15,9 @@
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddleseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
from paddlers.models.ppseg.models import layers
__all__ = ["Xception41_deeplab", "Xception65_deeplab", "Xception71_deeplab"]

@ -18,9 +18,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
class DualResNet(nn.Layer):

@ -18,11 +18,11 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.models.backbones import resnet_vd
from paddleseg.models import deeplab
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.models.backbones import resnet_vd
from paddlers.models.ppseg.models import deeplab
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
__all__ = ['DeepLabV3P', 'DeepLabV3']

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.models import layers
from paddleseg.cvlibs import manager, param_init
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager, param_init
__all__ = ['ENet']

@ -18,9 +18,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import paddle
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
__all__ = ['FastSCNN']

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import paddle
from paddleseg import utils
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
from paddle.nn import functional as F
from paddleseg.utils import utils
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -18,11 +18,11 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.models.backbones import resnet_vd
from paddleseg.models import deeplab
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.models.backbones import resnet_vd
from paddlers.models.ppseg.models import deeplab
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -33,7 +33,7 @@ class Activation(nn.Layer):
Examples:
from paddleseg.models.common.activation import Activation
from paddlers.models.ppseg.models.common.activation import Activation
relu = Activation("relu")
print(relu)

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddlers.models.ppseg.models import layers
class AttentionBlock(nn.Layer):

@ -17,7 +17,7 @@ import os
import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddlers.models.ppseg.models import layers
def SyncBatchNorm(*args, **kwargs):

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddlers.models.ppseg.models import layers
class NonLocal2D(nn.Layer):

@ -16,7 +16,7 @@ import paddle
import paddle.nn.functional as F
from paddle import nn
from paddleseg.models import layers
from paddlers.models.ppseg.models import layers
class ASPPModule(nn.Layer):

@ -17,8 +17,8 @@ import paddle.nn as nn
import paddle.nn.functional as F
from paddle import ParamAttr
from paddle.nn.initializer import Constant
from paddleseg.models import layers
from paddleseg.models.layers import tensor_fusion_helper as helper
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.models.layers import tensor_fusion_helper as helper
class UAFM(nn.Layer):

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -18,7 +18,7 @@ from paddle import nn
import paddle.nn.functional as F
from scipy.ndimage import shift
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -13,7 +13,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,8 +16,8 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import losses
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import losses
@manager.LOSSES.add_component

@ -17,7 +17,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -13,7 +13,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -22,7 +22,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,8 +16,8 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import losses
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import losses
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -17,7 +17,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
_euler_num = 2.718281828
_pi = 3.14159265

@ -18,7 +18,7 @@ import paddle
from paddle import nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -16,7 +16,7 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddlers.models.ppseg.cvlibs import manager
@manager.LOSSES.add_component

@ -18,9 +18,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
class MLAHeads(nn.Layer):

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
@manager.MODELS.add_component

@ -16,9 +16,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
@manager.MODELS.add_component

@ -18,9 +18,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -18,9 +18,9 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -14,8 +14,8 @@
import paddle.nn as nn
from paddleseg import utils
from paddleseg.cvlibs import manager
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.cvlibs import manager
@manager.MODELS.add_component

@ -16,10 +16,10 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg import utils
from paddleseg.models import layers
from paddleseg.cvlibs import manager
from paddleseg.utils import utils
from paddlers.models.ppseg import utils
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -16,16 +16,16 @@ import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from paddleseg.cvlibs import manager, param_init
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager, param_init
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
__all__ = ['PPHumanSegLite']
@manager.MODELS.add_component
class PPHumanSegLite(nn.Layer):
"A self-developed ultra lightweight model from PaddleSeg, is suitable for real-time scene segmentation on web or mobile terminals."
"A self-developed ultra lightweight model from paddlers.models.ppseg, is suitable for real-time scene segmentation on web or mobile terminals."
def __init__(self,
num_classes,

@ -16,9 +16,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import paddle
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
@manager.MODELS.add_component

@ -7,9 +7,9 @@ import paddle.nn as nn
import paddle.nn.functional as F
import numpy as np
from paddleseg.cvlibs import manager
from paddleseg.models import layers
from paddleseg.utils import utils
from paddlers.models.ppseg.cvlibs import manager
from paddlers.models.ppseg.models import layers
from paddlers.models.ppseg.utils import utils
class MLP(nn.Layer):

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save