question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

torch to caffe convert error

See original GitHub issue
59,60c59
<     pad: 1
<     ceil_mode: false
---
>     pad: 0
2435a2435,2444
>   name: "avgpool1"
>   type: "Pooling"
>   bottom: "relu_blob49"
>   top: "avgpool_blob1"
>   pooling_param {
>     pool: AVE
>     global_pooling: true
>   }
> }
> layer {
2438c2447
<   bottom: "relu_blob49"
---
>   bottom: "avgpool_blob1"
2449c2458
<   top: "batch_norm_blob54"
---
>   top: "output"

https://github.com/JDAI-CV/fast-reid/tree/master/tools/deploy I saw the site above and converted model.

./run_inference.sh image What should I do?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Hwijunecommented, Jul 22, 2020

Hello, Do we need to install caffe?

After installing caffe, you need to add your code to “caffe_inference.py” specify your caffe path

#caffe_inference.py
caffe_root = '/home/phj8498/caffe/'
sys.path.insert(0, caffe_root + 'python')
import caffe
0reactions
gmt710commented, Jul 24, 2020

@L1aoXingyu This difference may be related to NL_2.

In caffe_export.py
cfg.MODEL.BACKBONE.WITH_NL = False 

But in visualize_result.py :
cfg.MODEL.BACKBONE.WITH_NL = True 

Read more comments on GitHub >

github_iconTop Results From Across the Web

xxradon/PytorchToCaffe: Pytorch model to caffe ... - GitHub
Converting a pytorch model to caffe model. Some convenient tools of manipulate caffemodel and prototxt quickly(like get or set weights of layers). Support ......
Read more >
Torch to Caffe Model Converter - Hang Zhang
This is a tutorial of converting Torch pre-trained model to Caffe model for inference. This toolbox is originally provided by facebook AI, ...
Read more >
How to convert a model from torch to pytorch or caffe or any ...
I'm trying to convert this t7 model to pytorch or to caffe or to caffe2 or to any other model.. this is what...
Read more >
Can not import caffe and pytorch at the same time
import caffe first: >>> import caffe >>> import torch File ... use this version because I want to convert a pytorch model to...
Read more >
Converting FAI Torch models to Caffe - Part 1 (2018)
Has anyone tried this before? I'd like to reuse a model I trained using the fastai API but I need to convert the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found