Comments (4)
@pomelo93 Have you followed the Readme
document?
from db.
@pomelo93 You should not use python3 eval.py
without passing a config file. Please see the specific parameters of this command
from db.
@MhLiao Sorry, I simplify my description. I ran python3 eval.py experiments/seg_detector/totaltext_resnet18_deform_thre.yaml --resume models/totaltext_resnet18 --polygon --box_thresh 0.6. And it told me NotImplementedError. Here is the releated error information.Thanks!
./datasets/total_text/ [INFO] [2019-12-09 14:32:07,396] Resuming from models/totaltext_resnet18 [INFO] [2019-12-09 14:32:07,429] Resumed from models/totaltext_resnet18 0%| | 0/300 [00:00<?, ?it/s] Traceback (most recent call last): File "eval.py", line 193, in <module> main() File "eval.py", line 79, in main Eval(experiment, experiment_args, cmd=args, verbose=args['verbose']).eval(args['visualize']) File "eval.py", line 176, in eval pred = model.forward(batch, training=False) File "/media/zdyd/data/swf/Github/DB/structure/model.py", line 56, in forward pred = self.model(data, training=self.training) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in __call__ result = self.forward(*input, **kwargs) File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/data_parallel.py", line 140, in forward return self.module(*inputs, **kwargs) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in __call__ result = self.forward(*input, **kwargs) File "/media/zdyd/data/swf/Github/DB/structure/model.py", line 19, in forward return self.decoder(self.backbone(data), *args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in __call__ result = self.forward(*input, **kwargs) File "/media/zdyd/data/swf/Github/DB/backbones/resnet.py", line 240, in forward x3 = self.layer2(x2) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in __call__ result = self.forward(*input, **kwargs) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 92, in forward input = module(input) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in __call__ result = self.forward(*input, **kwargs) File "/media/zdyd/data/swf/Github/DB/backbones/resnet.py", line 88, in forward out = self.conv2(out, offset, mask) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in __call__ result = self.forward(*input, **kwargs) File "/media/zdyd/data/swf/Github/DB/assets/ops/dcn/modules/deform_conv.py", line 128, in forward self.groups, self.deformable_groups) File "/media/zdyd/data/swf/Github/DB/assets/ops/dcn/functions/deform_conv.py", line 131, in forward raise NotImplementedError NotImplementedError
from db.
@pomelo93 As indicated in DB/assets/ops/dcn/functions/deform_conv.py", line 131, the DCN is not implemented with the CPU mode. Thus, you must use GPU to run the model currently. Otherwise, you should remove the DCN in the model.
from db.
Related Issues (20)
- 百度网盘地址失效了 HOT 2
- are there any resources for sorting the bounding boxes ?
- Spelling of prepare is wrong in README
- could you add a license file to your repo?
- ValueError: num_samples should be a positive integer value, but got num_samples=0
- 计算FPS时,--speed报错ZeroDivisionError: division by zero
- Error when converting checkpoint to ONNX HOT 3
- eval.py 报错:RuntimeError: Attempted to set the storage of a tensor on device "cuda:0" to a storage on different device "cpu". This is no longer allowed; the devices must match. HOT 4
- eval结果为0 HOT 8
- 想使用torch自带的dcn,代替代码中的DCN编译算子,请问大家如何下手?还是建议不修改 HOT 1
- The model trained by ASF config can't be used by demo.py
- Could not find a version that satisfies the requirement opencv-python==4.1.2.30 HOT 1
- CUDA error: device-side assert triggered HOT 1
- 运行python setup.py build_ext --inplace命令时出现错误 HOT 2
- Unknown CUDA
- .
- TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
- Sizes of tensors must match except in dimension 0. Got 2 and 1 in dimension 1 HOT 1
- Calculation of Valiation loss
- How to print the output results of each layer of the model.Plz help
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 db.