# TensorFlow implementation of Deformable Convolution
This is a TensorFlow implementation of the following paper:
> Dai, Jifeng, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. 2017.
> Deformable Convolutional Networks. arXiv [cs.CV]. arXiv. http://arxiv.org/abs/1703.06211
The code can only run in the [Eager Execution](https://www.tensorflow.org/guide/eager).
Rotated training image
<img src="images/rotated_image.png" width="300px">
Sampling locations
<img src="images/sampling_locations.png" width="330px">
## Basic Usage
`DeformableConvLayer` is a custom Keras layer, so you can use it like any other standard layer, such as `Dense`, `Conv2D`.
This is a simple example:
```python
inputs = tf.zeros([16, 28, 28, 3])
model = tf.keras.Sequential()
model.add(DeformableConvLayer(filters=6, kernel_size=3, strides=1, padding='valid', dilation_rate=1, num_deformable_group=1))
model.add(Conv2D(6, 3))
outputs = model(inputs)
```
没有合适的资源?快使用搜索试试~ 我知道了~
tf-deformable-conv-layer:可变形卷积层的TensorFlow实现
共8个文件
py:4个
png:2个
license:1个
需积分: 50 14 下载量 3 浏览量
2021-05-06
23:42:37
上传
评论 1
收藏 17KB ZIP 举报
温馨提示
可变形卷积的TensorFlow实现 这是以下论文的TensorFlow实现: 戴继峰,齐浩志,熊玉文,李毅,张国栋,韩寒,魏一辰。 2017。可变形卷积网络。 arXiv [cs.CV]。 arXiv。 该代码只能在。 旋转训练图 采样地点 基本用法 DeformableConvLayer是自定义的Keras图层,因此您可以像其他任何标准图层(例如Dense , Conv2D一样使用它。 这是一个简单的示例: inputs = tf . zeros ([ 16 , 28 , 28 , 3 ]) model = tf . keras . Sequential () model . add ( DeformableConvLayer ( filters = 6 , kernel_size = 3 , strides = 1 , padding = 'valid' , dilat
资源推荐
资源详情
资源评论
收起资源包目录
tf-deformable-conv-layer-master.zip (8个子文件)
tf-deformable-conv-layer-master
train.py 3KB
images
sampling_locations.png 9KB
rotated_image.png 277B
nets
__init__.py 0B
classification_net.py 2KB
deformable_conv_layer.py 10KB
LICENSE 1KB
README.md 963B
共 8 条
- 1
资源评论
温暖如故
- 粉丝: 22
- 资源: 4642
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功