Comments (5)
fixed ~ you can try the latest version v0.1.6.9
pip uninstall torchlm
pip install torchlm>=0.1.6.9
test demo:
device = "cpu"
img_path = "./assets/pipnet0.jpg"
save_path = "./logs/pipnet0_300w.jpg"
checkpoint = "./pretrained/pipnet/pipnet_resnet101_10x68x32x256_300w.pth"
image = cv2.imread(img_path)
torchlm.runtime.bind(faceboxesv2())
torchlm.runtime.bind(
pipnet(
backbone="resnet101",
pretrained=True,
num_nb=10,
num_lms=68,
net_stride=32,
input_size=256,
meanface_type="300w",
backbone_pretrained=False,
map_location=device,
checkpoint=checkpoint
)
)
landmarks, bboxes = torchlm.runtime.forward(image)
image = torchlm.utils.draw_bboxes(image, bboxes=bboxes)
image = torchlm.utils.draw_landmarks(image, landmarks=landmarks)
cv2.imwrite(save_path, image)
you can set backbone_pretrained
as False
, because you already have a pretrained file in your local device, thus it's not necessarily to download the backbone weight from internet.
from torchlm.
what is the version of your installed torchlm? check it:
print(torchlm.__version__)
from torchlm.
the version is 0.1.6.8
from torchlm.
can you upload your test image? I need it to reproduce your error.
from torchlm.
Work perfectly! Thank you!
from torchlm.
Related Issues (20)
- fixed deps miss of scipy for metrics
- is PIPNet the SOTA ? HOT 4
- Missing mobilenet_v2 model file HOT 7
- HorizontalFlip with Albumentations HOT 3
- 关于在装甲板检测中的相关问题 HOT 2
- Can't use cuda in pipnet HOT 15
- Wrong results while running on GPU
- 如何让掩码和图片增强之后一样
- Error on Converting 300W dataset in class Landmarks300WConverter with message UFuncTypeError: Cannot cast ufunc 'subtract' output...
- Training with 7 landmarks
- Will PipNet allow gradients to flow through?
- Wrong results with Faceboxesv2 (ONNX) and there isn't YoloV5face implemented yet. HOT 2
- Inference - Getting non-normalized landmarks
- Fine-tuning Custom Dataset Error HOT 1
- 旋转变换后的图像尺度变化问题
- 控制台会自动输出小数 HOT 5
- How to output forehead's landmark
- 不能训练起来,并没有详细解释怎么准备数据。我已经下载了
- How to infer in batches
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 torchlm.