Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
0ba524d2
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
1 年多 前同步成功
通知
116
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0ba524d2
编写于
4月 29, 2022
作者:
G
gaotingquan
提交者:
Tingquan Gao
5月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: add reference
上级
4bc4b7e0
变更
58
隐藏空白更改
内联
并排
Showing
58 changed file
with
135 addition
and
7 deletion
+135
-7
ppcls/arch/backbone/legendary_models/hrnet.py
ppcls/arch/backbone/legendary_models/hrnet.py
+2
-0
ppcls/arch/backbone/legendary_models/inception_v3.py
ppcls/arch/backbone/legendary_models/inception_v3.py
+2
-0
ppcls/arch/backbone/legendary_models/mobilenet_v1.py
ppcls/arch/backbone/legendary_models/mobilenet_v1.py
+2
-0
ppcls/arch/backbone/legendary_models/mobilenet_v3.py
ppcls/arch/backbone/legendary_models/mobilenet_v3.py
+2
-0
ppcls/arch/backbone/legendary_models/resnet.py
ppcls/arch/backbone/legendary_models/resnet.py
+2
-0
ppcls/arch/backbone/legendary_models/vgg.py
ppcls/arch/backbone/legendary_models/vgg.py
+2
-0
ppcls/arch/backbone/model_zoo/alexnet.py
ppcls/arch/backbone/model_zoo/alexnet.py
+2
-0
ppcls/arch/backbone/model_zoo/cspnet.py
ppcls/arch/backbone/model_zoo/cspnet.py
+1
-0
ppcls/arch/backbone/model_zoo/cswin_transformer.py
ppcls/arch/backbone/model_zoo/cswin_transformer.py
+1
-0
ppcls/arch/backbone/model_zoo/darknet.py
ppcls/arch/backbone/model_zoo/darknet.py
+2
-0
ppcls/arch/backbone/model_zoo/densenet.py
ppcls/arch/backbone/model_zoo/densenet.py
+2
-0
ppcls/arch/backbone/model_zoo/distilled_vision_transformer.py
...s/arch/backbone/model_zoo/distilled_vision_transformer.py
+1
-0
ppcls/arch/backbone/model_zoo/dla.py
ppcls/arch/backbone/model_zoo/dla.py
+1
-0
ppcls/arch/backbone/model_zoo/dpn.py
ppcls/arch/backbone/model_zoo/dpn.py
+2
-0
ppcls/arch/backbone/model_zoo/efficientnet.py
ppcls/arch/backbone/model_zoo/efficientnet.py
+1
-0
ppcls/arch/backbone/model_zoo/ghostnet.py
ppcls/arch/backbone/model_zoo/ghostnet.py
+1
-0
ppcls/arch/backbone/model_zoo/googlenet.py
ppcls/arch/backbone/model_zoo/googlenet.py
+16
-0
ppcls/arch/backbone/model_zoo/gvt.py
ppcls/arch/backbone/model_zoo/gvt.py
+1
-0
ppcls/arch/backbone/model_zoo/hardnet.py
ppcls/arch/backbone/model_zoo/hardnet.py
+1
-0
ppcls/arch/backbone/model_zoo/inception_v4.py
ppcls/arch/backbone/model_zoo/inception_v4.py
+2
-0
ppcls/arch/backbone/model_zoo/levit.py
ppcls/arch/backbone/model_zoo/levit.py
+1
-0
ppcls/arch/backbone/model_zoo/mixnet.py
ppcls/arch/backbone/model_zoo/mixnet.py
+2
-5
ppcls/arch/backbone/model_zoo/mobilenet_v2.py
ppcls/arch/backbone/model_zoo/mobilenet_v2.py
+2
-0
ppcls/arch/backbone/model_zoo/mobilevit.py
ppcls/arch/backbone/model_zoo/mobilevit.py
+1
-0
ppcls/arch/backbone/model_zoo/pvt_v2.py
ppcls/arch/backbone/model_zoo/pvt_v2.py
+1
-0
ppcls/arch/backbone/model_zoo/rednet.py
ppcls/arch/backbone/model_zoo/rednet.py
+1
-0
ppcls/arch/backbone/model_zoo/regnet.py
ppcls/arch/backbone/model_zoo/regnet.py
+1
-0
ppcls/arch/backbone/model_zoo/repvgg.py
ppcls/arch/backbone/model_zoo/repvgg.py
+1
-0
ppcls/arch/backbone/model_zoo/res2net.py
ppcls/arch/backbone/model_zoo/res2net.py
+2
-0
ppcls/arch/backbone/model_zoo/res2net_vd.py
ppcls/arch/backbone/model_zoo/res2net_vd.py
+2
-0
ppcls/arch/backbone/model_zoo/resnest.py
ppcls/arch/backbone/model_zoo/resnest.py
+1
-0
ppcls/arch/backbone/model_zoo/resnet_vc.py
ppcls/arch/backbone/model_zoo/resnet_vc.py
+2
-0
ppcls/arch/backbone/model_zoo/resnext.py
ppcls/arch/backbone/model_zoo/resnext.py
+2
-0
ppcls/arch/backbone/model_zoo/resnext101_wsl.py
ppcls/arch/backbone/model_zoo/resnext101_wsl.py
+16
-0
ppcls/arch/backbone/model_zoo/resnext_vd.py
ppcls/arch/backbone/model_zoo/resnext_vd.py
+2
-0
ppcls/arch/backbone/model_zoo/rexnet.py
ppcls/arch/backbone/model_zoo/rexnet.py
+2
-0
ppcls/arch/backbone/model_zoo/se_resnet_vd.py
ppcls/arch/backbone/model_zoo/se_resnet_vd.py
+2
-0
ppcls/arch/backbone/model_zoo/se_resnext.py
ppcls/arch/backbone/model_zoo/se_resnext.py
+2
-0
ppcls/arch/backbone/model_zoo/se_resnext_vd.py
ppcls/arch/backbone/model_zoo/se_resnext_vd.py
+2
-0
ppcls/arch/backbone/model_zoo/shufflenet_v2.py
ppcls/arch/backbone/model_zoo/shufflenet_v2.py
+2
-0
ppcls/arch/backbone/model_zoo/squeezenet.py
ppcls/arch/backbone/model_zoo/squeezenet.py
+2
-0
ppcls/arch/backbone/model_zoo/swin_transformer.py
ppcls/arch/backbone/model_zoo/swin_transformer.py
+1
-0
ppcls/arch/backbone/model_zoo/tnt.py
ppcls/arch/backbone/model_zoo/tnt.py
+1
-0
ppcls/arch/backbone/model_zoo/van.py
ppcls/arch/backbone/model_zoo/van.py
+1
-0
ppcls/arch/backbone/model_zoo/vision_transformer.py
ppcls/arch/backbone/model_zoo/vision_transformer.py
+1
-0
ppcls/arch/backbone/model_zoo/xception.py
ppcls/arch/backbone/model_zoo/xception.py
+16
-0
ppcls/arch/backbone/model_zoo/xception_deeplab.py
ppcls/arch/backbone/model_zoo/xception_deeplab.py
+2
-0
ppcls/arch/gears/arcmargin.py
ppcls/arch/gears/arcmargin.py
+2
-0
ppcls/arch/gears/circlemargin.py
ppcls/arch/gears/circlemargin.py
+2
-0
ppcls/arch/gears/cosmargin.py
ppcls/arch/gears/cosmargin.py
+2
-0
ppcls/data/preprocess/ops/autoaugment.py
ppcls/data/preprocess/ops/autoaugment.py
+1
-0
ppcls/data/preprocess/ops/cutout.py
ppcls/data/preprocess/ops/cutout.py
+1
-0
ppcls/data/preprocess/ops/fmix.py
ppcls/data/preprocess/ops/fmix.py
+3
-0
ppcls/data/preprocess/ops/grid.py
ppcls/data/preprocess/ops/grid.py
+1
-0
ppcls/data/preprocess/ops/hide_and_seek.py
ppcls/data/preprocess/ops/hide_and_seek.py
+1
-0
ppcls/data/preprocess/ops/randaugment.py
ppcls/data/preprocess/ops/randaugment.py
+1
-0
ppcls/data/preprocess/ops/random_erasing.py
ppcls/data/preprocess/ops/random_erasing.py
+2
-1
ppcls/data/preprocess/ops/timm_autoaugment.py
ppcls/data/preprocess/ops/timm_autoaugment.py
+2
-1
未找到文件。
ppcls/arch/backbone/legendary_models/hrnet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1908.07919
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/legendary_models/inception_v3.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1512.00567v3
from
__future__
import
absolute_import
,
division
,
print_function
import
math
import
paddle
...
...
ppcls/arch/backbone/legendary_models/mobilenet_v1.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1704.04861
from
__future__
import
absolute_import
,
division
,
print_function
from
paddle
import
ParamAttr
...
...
ppcls/arch/backbone/legendary_models/mobilenet_v3.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1905.02244
from
__future__
import
absolute_import
,
division
,
print_function
import
paddle
...
...
ppcls/arch/backbone/legendary_models/resnet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/pdf/1512.03385
from
__future__
import
absolute_import
,
division
,
print_function
import
numpy
as
np
...
...
ppcls/arch/backbone/legendary_models/vgg.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1409.1556
from
__future__
import
absolute_import
,
division
,
print_function
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/alexnet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://proceedings.neurips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/cspnet.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was heavily based on https://github.com/rwightman/pytorch-image-models
# reference: https://arxiv.org/abs/1911.11929
import
paddle
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/cswin_transformer.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/BR-IDL/PaddleViT/blob/develop/image_classification/CSwin/cswin.py
# reference: https://arxiv.org/abs/2107.00652
import
copy
import
numpy
as
np
...
...
ppcls/arch/backbone/model_zoo/darknet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1804.02767
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/densenet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1608.06993
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/distilled_vision_transformer.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was heavily based on https://github.com/facebookresearch/deit
# reference: https://arxiv.org/abs/2012.12877
import
paddle
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/dla.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/ucbdrive/dla
# reference: https://arxiv.org/abs/1707.06484
import
math
...
...
ppcls/arch/backbone/model_zoo/dpn.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1707.01629
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/efficientnet.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/lukemelas/EfficientNet-PyTorch
# reference: https://arxiv.org/abs/1905.11946
import
paddle
from
paddle
import
ParamAttr
...
...
ppcls/arch/backbone/model_zoo/ghostnet.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/huawei-noah/CV-Backbones/tree/master/ghostnet_pytorch
# reference: https://arxiv.org/abs/1911.11907
import
math
import
paddle
...
...
ppcls/arch/backbone/model_zoo/googlenet.py
浏览文件 @
0ba524d2
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
#
# 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.
# reference: https://arxiv.org/abs/1409.4842
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/gvt.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/Meituan-AutoML/Twins
# reference: https://arxiv.org/abs/2104.13840
from
functools
import
partial
...
...
ppcls/arch/backbone/model_zoo/hardnet.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/PingoLH/Pytorch-HarDNet
# reference: https://arxiv.org/abs/1909.00948
import
paddle
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/inception_v4.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1602.07261
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/levit.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/facebookresearch/LeViT
# reference: https://openaccess.thecvf.com/content/ICCV2021/html/Graham_LeViT_A_Vision_Transformer_in_ConvNets_Clothing_for_Faster_Inference_ICCV_2021_paper.html
import
itertools
import
math
...
...
ppcls/arch/backbone/model_zoo/mixnet.py
浏览文件 @
0ba524d2
...
...
@@ -11,11 +11,8 @@
# 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.
"""
MixNet for ImageNet-1K, implemented in Paddle.
Original paper: 'MixConv: Mixed Depthwise Convolutional Kernels,'
https://arxiv.org/abs/1907.09595.
"""
# reference: https://arxiv.org/abs/1907.09595
import
os
from
inspect
import
isfunction
...
...
ppcls/arch/backbone/model_zoo/mobilenet_v2.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1801.04381
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/mobilevit.py
浏览文件 @
0ba524d2
...
...
@@ -14,6 +14,7 @@
# Code was based on https://github.com/BR-IDL/PaddleViT/blob/develop/image_classification/MobileViT/mobilevit.py
# and https://github.com/apple/ml-cvnets/blob/main/cvnets/models/classification/mobilevit.py
# reference: https://arxiv.org/abs/2110.02178
import
paddle
from
paddle
import
ParamAttr
...
...
ppcls/arch/backbone/model_zoo/pvt_v2.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was heavily based on https://github.com/whai362/PVT
# reference: https://arxiv.org/abs/2106.13797
from
functools
import
partial
import
math
...
...
ppcls/arch/backbone/model_zoo/rednet.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/d-li14/involution
# reference: https://arxiv.org/abs/2103.06255
import
paddle
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/regnet.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/facebookresearch/pycls
# reference: https://arxiv.org/abs/1905.13214
from
__future__
import
absolute_import
from
__future__
import
division
...
...
ppcls/arch/backbone/model_zoo/repvgg.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/DingXiaoH/RepVGG
# reference: https://arxiv.org/abs/2101.03697
import
paddle.nn
as
nn
import
paddle
...
...
ppcls/arch/backbone/model_zoo/res2net.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1904.01169
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/res2net_vd.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1904.01169 & https://arxiv.org/abs/1812.01187
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/resnest.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/zhanghang1989/ResNeSt
# reference: https://arxiv.org/abs/2004.08955
from
__future__
import
absolute_import
from
__future__
import
division
...
...
ppcls/arch/backbone/model_zoo/resnet_vc.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1812.01187
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/resnext.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1611.05431
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/resnext101_wsl.py
浏览文件 @
0ba524d2
# Copyright (c) 2021 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.
# reference: https://arxiv.org/abs/1805.00932
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/resnext_vd.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1611.05431 & https://arxiv.org/abs/1812.01187
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/rexnet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/2007.00992
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/se_resnet_vd.py
浏览文件 @
0ba524d2
...
...
@@ -11,6 +11,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1812.01187 & https://arxiv.org/abs/1709.01507
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/se_resnext.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1611.05431 & https://arxiv.org/abs/1709.01507
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/se_resnext_vd.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1611.05431 & https://arxiv.org/abs/1812.01187 & https://arxiv.org/abs/1709.01507
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/shufflenet_v2.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1807.11164
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
...
...
ppcls/arch/backbone/model_zoo/squeezenet.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1709.01507
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/swin_transformer.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/microsoft/Swin-Transformer
# reference: https://arxiv.org/abs/2103.14030
import
numpy
as
np
import
paddle
...
...
ppcls/arch/backbone/model_zoo/tnt.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/huawei-noah/CV-Backbones/tree/master/tnt_pytorch
# reference: https://arxiv.org/abs/2103.00112
import
math
import
numpy
as
np
...
...
ppcls/arch/backbone/model_zoo/van.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was heavily based on https://github.com/Visual-Attention-Network/VAN-Classification
# reference: https://arxiv.org/abs/2202.09741
from
functools
import
partial
import
math
...
...
ppcls/arch/backbone/model_zoo/vision_transformer.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# Code was based on https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/vision_transformer.py
# reference: https://arxiv.org/abs/2010.11929
from
collections.abc
import
Callable
...
...
ppcls/arch/backbone/model_zoo/xception.py
浏览文件 @
0ba524d2
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
#
# 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.
# reference: https://arxiv.org/abs/1610.02357
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/backbone/model_zoo/xception_deeplab.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1706.05587
import
paddle
from
paddle
import
ParamAttr
import
paddle.nn
as
nn
...
...
ppcls/arch/gears/arcmargin.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1801.07698
import
paddle
import
paddle.nn
as
nn
import
math
...
...
ppcls/arch/gears/circlemargin.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/2002.10857
import
math
import
paddle
import
paddle.nn
as
nn
...
...
ppcls/arch/gears/cosmargin.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# reference: https://arxiv.org/abs/1801.09414
import
paddle
import
math
import
paddle.nn
as
nn
...
...
ppcls/data/preprocess/ops/autoaugment.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# This code is based on https://github.com/DeepVoltaire/AutoAugment/blob/master/autoaugment.py
# reference: https://arxiv.org/abs/1805.09501
from
PIL
import
Image
,
ImageEnhance
,
ImageOps
import
numpy
as
np
...
...
ppcls/data/preprocess/ops/cutout.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# This code is based on https://github.com/uoguelph-mlrg/Cutout
# reference: https://arxiv.org/abs/1708.04552
import
numpy
as
np
import
random
...
...
ppcls/data/preprocess/ops/fmix.py
浏览文件 @
0ba524d2
...
...
@@ -12,6 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# This code is based on https://github.com/ecs-vlc/FMix
# reference: https://arxiv.org/abs/2002.12047
import
math
import
random
...
...
ppcls/data/preprocess/ops/grid.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# This code is based on https://github.com/akuxcw/GridMask
# reference: https://arxiv.org/abs/2001.04086.
import
numpy
as
np
from
PIL
import
Image
...
...
ppcls/data/preprocess/ops/hide_and_seek.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# This code is based on https://github.com/kkanshul/Hide-and-Seek
# reference: http://krsingh.cs.ucdavis.edu/krishna_files/papers/hide_and_seek/my_files/iccv2017.pdf
import
numpy
as
np
import
random
...
...
ppcls/data/preprocess/ops/randaugment.py
浏览文件 @
0ba524d2
...
...
@@ -13,6 +13,7 @@
# limitations under the License.
# This code is based on https://github.com/heartInsert/randaugment
# reference: https://arxiv.org/abs/1909.13719
from
PIL
import
Image
,
ImageEnhance
,
ImageOps
import
numpy
as
np
...
...
ppcls/data/preprocess/ops/random_erasing.py
浏览文件 @
0ba524d2
...
...
@@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#This code is adapted from https://github.com/zhunzhong07/Random-Erasing, and refer to Timm.
# This code is adapted from https://github.com/zhunzhong07/Random-Erasing, and refer to Timm(https://github.com/rwightman/pytorch-image-models).
# reference: https://arxiv.org/abs/1708.04896
from
functools
import
partial
...
...
ppcls/data/preprocess/ops/timm_autoaugment.py
浏览文件 @
0ba524d2
...
...
@@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Code was heavily based on https://github.com/rwightman/pytorch-image-models
# This code is heavily based on https://github.com/rwightman/pytorch-image-models
# reference: https://arxiv.org/abs/1805.09501
import
random
import
math
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录