Giter VIP home page Giter VIP logo

cfc-net's People

Contributors

ming71 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cfc-net's Issues

Dataset

hello,I want to get some information of dateset your project used. I use DOTA and there are any error.

完整的代码和训练好的模型

非常感谢您在在此方向的贡献。最近看到您的论文,非常精彩,但是我发现现在的代码不完整和没有训练好模型,请问什么时候可以公布

avgpool的bug

我用hrsc训练的时候,通道注意力的

def forward(self, x):
avg_pool = F.avg_pool2d(x, x.size(2), stride=x.size(2))# 平均池化操作
res=self.gate_c(avg_pool).unsqueeze(2).unsqueeze(3).expand_as(x)# 通过通道注意力模块处理平均池化的结果
return res
平均池化报错了,RuntimeError: Given input size: (256x100x96). Calculated output size: (256x1x0). Output size is too small
因该是部分图片大小不太规矩,请问您当时是怎么解决的呢?

Error when trying to train the model on NWPU VHR dataset

 Epoch   gpu_mem       ref       cls       reg     total   targets  img_size

0% 0/260 [00:00<?, ?it/s]/usr/local/lib/python3.7/dist-packages/torch/cuda/memory.py:393: FutureWarning: torch.cuda.memory_cached has been renamed to torch.cuda.memory_reserved
FutureWarning)
0/100 2.42G 1.26 2.07 1.18 4.5 6 416: 15% 40/260 [00:24<02:13, 1.65it/s]
Traceback (most recent call last):
File "/content/drive/MyDrive/CFC-Net/train.py", line 316, in
train_model(arg, hyps)
File "/content/drive/MyDrive/CFC-Net/train.py", line 160, in train_model
losses = model(ims, gt_boxes,process =epoch/epochs )
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/content/drive/MyDrive/CFC-Net/models/model.py", line 102, in forward
cls_feats = self.cls_attention(features, process)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/content/drive/MyDrive/CFC-Net/models/fpn.py", line 305, in forward
atten_ft = self.channel_att(fp) * self.spatial_att(fp)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/content/drive/MyDrive/CFC-Net/models/fpn.py", line 265, in forward
return self.gate_c(avg_pool).unsqueeze(2).unsqueeze(3).expand_as(x)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/container.py", line 139, in forward
input = module(input)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (2x512 and 256x16)

代码训练存在的问题

验证时候遇到“RuntimeError:Given input size :(2565652).Calculated output size:(25610).Output size is too small”问题,请问怎么解决?是什么问题

代码报错,多类别的情况下

该行代码不适合多类别的使用的,会索引越界
cls_targets[positive_indices, assigned_annotations[positive_indices, -1].long()] = 1

Epochs

Hello,I want to know CFC-Net what is the epoch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.