Comments (3)
@tianzhi0549 ,it is solved,thanks
from fcos.
@caffelearn It seems that reg_targets_per_im
has no elements.
from fcos.
How did you solve it? I trained on other datasets and I also encountered this problem:
Traceback (most recent call last):
File "tools/train_net.py", line 198, in
main()
File "tools/train_net.py", line 190, in main
model = train(cfg, args.local_rank, args.distributed)
File "tools/train_net.py", line 77, in train
arguments,
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/engine/trainer.py", line 66, in do_train
loss_dict = model(images, targets)
File "/home/zhengchenbin/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/zhengchenbin/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/nn/parallel/distributed.py", line 357, in forward
return self.module(*inputs[0], **kwargs[0])
File "/home/zhengchenbin/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 50, in forward
proposals, proposal_losses = self.rpn(images, features, targets)
File "/home/zhengchenbin/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/modeling/rpn/fcos/fcos.py", line 134, in forward
centerness, targets
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/modeling/rpn/fcos/fcos.py", line 144, in _forward_train
locations, box_cls, box_regression, centerness, targets
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/modeling/rpn/fcos/loss.py", line 146, in call
labels, reg_targets = self.prepare_targets(locations, targets)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/modeling/rpn/fcos/loss.py", line 57, in prepare_targets
points_all_level, targets, expanded_object_sizes_of_interest
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/modeling/rpn/fcos/loss.py", line 98, in compute_targets_for_locations
is_in_boxes = reg_targets_per_im.min(dim=2)[0] > 0
RuntimeError: cannot perform reduction function min on tensor with no elements because the operation does not have an identity
from fcos.
Related Issues (20)
- Can I use it on CPU?
- Can we use this FCOS algorithm for counting the objects in images??
- May I ask you for a train log file?
- Which is the accuracy index in the paper?
- Error pip install git+https://github.com/tianzhi0549/FCOS.git
- use my dataset to train FCOS net,why the loss is nan? HOT 2
- Can’t calculate the Params and FLOPs of Backbone
- Testing with test dataset while training
- ValueError: Unknown CUDA arch (8.6) or GPU not supported HOT 2
- weird time consuming of FCOS head when changing the backbone
- Problem with the last line of Testing-only installation HOT 1
- Deepcopy returns TypeError: 'int' object is not callable HOT 1
- assert len(proposal_losses) == 1 and proposal_losses["zero"] == 0 # loss_dict should be empty dict
- tools/train_net.py FAILED HOT 1
- Convert onnx
- Segmentation fault (core dumped)
- gempy to load csv data
- ImportError: cannot import name '_C'
- Why regression head wasn't normalized ?
- ValueError: num_samples should be a positive integer value, but got num_samples=0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcos.