yeyupiaoling / pytorch-mtcnn Goto Github PK
View Code? Open in Web Editor NEW基于Pytorch实现的MTCNN模型,人脸检测,人脸关键点检测。
License: Apache License 2.0
基于Pytorch实现的MTCNN模型,人脸检测,人脸关键点检测。
License: Apache License 2.0
问题针对这个代码:label = torch.where(label < 0, -100, label)
请问您知道是要把-100转换为tensor吗,只有它是int型变量,此外,您知道如何转换吗
我在原数据集上添加了仿照格式添加了一部分数据集,在训练PNet时候出现报错
Traceback (most recent call last):
File "/home/huawei/zjs/Pytorch-MTCNN/train_PNet/train_PNet.py", line 51, in
for batch_id, (img, label, bbox, landmark) in enumerate(train_loader):
File "/home/huawei/anaconda3/envs/dev/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 681, in next
data = self._next_data()
File "/home/huawei/anaconda3/envs/dev/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 721, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/huawei/anaconda3/envs/dev/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/huawei/anaconda3/envs/dev/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "../utils/data.py", line 90, in getitem
img = process(img)
File "../utils/data.py", line 62, in process
assert (image is not None), 'image is None'
AssertionError: image is None
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.