Comments (5)
检查这个函数
contours, _ = cv2.findContours(binary_att, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
这个函数在4.5.5版本里面输出不一样,改成
_, contours, _ = cv2.findContours(binary_att, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
from layercam_loc.
您好,这个函数在opencv 4.5.5中返回2个值,还有其他可能的问题吗?会不会是标签、权重或者代码计算哪里可能有问题?我用的不是caffe vgg16,是vgg16-397923af.pth,这个有影响吗?
_,contours, _ = cv2.findContours(binary_att, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)
from layercam_loc.
这个代码load的是caffe的模型。
from layercam_loc.
caffe的模型和torch model_zoo 的那个区别在哪里?我具体是改哪里可以跑vgg16-397923af.pth呢?
from layercam_loc.
我没有测试过torch的模型,我是按照Grad-CAM里面的setting测得caffe的模型。caffe的模型比torch的模型定位效果要好。如果需要 ,需要改test_data_loader_caffe() 成 test_data_loader() , 因为caffe模型和torch模型处理数据的方式是不一样的。
from layercam_loc.
Related Issues (3)
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 layercam_loc.