Merge branch 'PaddleCV-SIG:develop' into develop

own
Yizhou Chen 3 years ago committed by GitHub
commit 6386e65ed1
  1. 15
      paddlers/custom_models/__init__.py
  2. 0
      paddlers/custom_models/cd/__init__.py
  3. 0
      paddlers/custom_models/cd/models/__init__.py
  4. 0
      paddlers/custom_models/cd/models/backbones/__init__.py
  5. 0
      paddlers/custom_models/cd/models/backbones/resnet.py
  6. 0
      paddlers/custom_models/cd/models/bit.py
  7. 0
      paddlers/custom_models/cd/models/cdnet.py
  8. 0
      paddlers/custom_models/cd/models/dsamnet.py
  9. 0
      paddlers/custom_models/cd/models/dsifn.py
  10. 0
      paddlers/custom_models/cd/models/layers/__init__.py
  11. 0
      paddlers/custom_models/cd/models/layers/attention.py
  12. 0
      paddlers/custom_models/cd/models/layers/blocks.py
  13. 2
      paddlers/custom_models/cd/models/param_init.py
  14. 0
      paddlers/custom_models/cd/models/snunet.py
  15. 0
      paddlers/custom_models/cd/models/stanet.py
  16. 0
      paddlers/custom_models/cd/models/unet_ef.py
  17. 0
      paddlers/custom_models/cd/models/unet_siamconc.py
  18. 0
      paddlers/custom_models/cd/models/unet_siamdiff.py
  19. 0
      paddlers/custom_models/cls/__init__.py
  20. 0
      paddlers/custom_models/det/__init__.py
  21. 0
      paddlers/custom_models/gan/__init__.py
  22. 0
      paddlers/custom_models/seg/__init__.py
  23. 0
      paddlers/custom_models/seg/models/__init__.py
  24. 0
      paddlers/custom_models/seg/models/farseg/__init__.py
  25. 0
      paddlers/custom_models/seg/models/farseg/farseg.py
  26. 0
      paddlers/custom_models/seg/models/farseg/fpn.py
  27. 0
      paddlers/custom_models/seg/models/utils/__init__.py
  28. 0
      paddlers/custom_models/seg/models/utils/layers_lib.py
  29. 0
      paddlers/custom_models/seg/models/utils/param_init.py
  30. 0
      paddlers/custom_models/seg/models/utils/torch_nn.py
  31. 3
      paddlers/models/__init__.py
  32. 2
      paddlers/tasks/changedetector.py
  33. 2
      paddlers/tasks/segmenter.py

@ -0,0 +1,15 @@
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from . import cls, det, seg, gan, cd

@ -67,7 +67,7 @@ class KaimingInitMixin:
Examples:
from paddlers.models.cd.models.param_init import KaimingInitMixin
from paddlers.custom_models.cd.models.param_init import KaimingInitMixin
class CustomNet(nn.Layer, KaimingInitMixin):
def __init__(self, num_channels, num_classes):

@ -12,5 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from . import ppcls, ppdet, ppseg, ppgan
from . import cls, det, seg, gan, cd
from . import ppcls, ppdet, ppseg, ppgan

@ -29,7 +29,7 @@ from .base import BaseModel
from .utils import seg_metrics as metrics
from paddlers.utils.checkpoint import seg_pretrain_weights_dict
from paddlers.transforms import ImgDecoder, Resize
import paddlers.models.cd as cd
import paddlers.custom_models.cd as cd
__all__ = ["CDNet", "UNetEarlyFusion", "UNetSiamConc", "UNetSiamDiff", "STANet", "BIT", "SNUNet", "DSIFN", "DSAMNet"]

@ -21,7 +21,7 @@ import paddle
import paddle.nn.functional as F
from paddle.static import InputSpec
import paddlers.models.ppseg as paddleseg
import paddlers.models.seg as seg
import paddlers.custom_models.seg as seg
import paddlers
from paddlers.transforms import arrange_transforms
from paddlers.utils import get_single_card_bs, DisablePrint

Loading…
Cancel
Save