Comments (5)
Oh, I didn't have this problem. It seems like that you already successfully tested 1264 batch images.
And I double checked that HANDS17 test dataset has this "image_D00015173.png" image.
I guess your test dataset has something wrong. Did you check that this file exists in you file folder?
Hello! Your work is nice and I try to use your code to test my own pictures,but I get some problems.
I downloaded the pretrained model and try to test with hands2017.py with my own pictures(15172 pieces of pictures and their names are "image_D00000001.png, image_D00000002.png ... image_D00015172.png" ).
All pictures I put into are gray scale.
I only changed line 37 in hands2017.py, which is testingImageDir = "my own data path".
But I got the error below:
(venv) D:\Hand\A2J\src>python hands2017.py
1264it [03:38, 9.41it/s]Traceback (most recent call last):
File "hands2017.py", line 220, in
main()
File "hands2017.py", line 161, in main
for i, (img, label) in tqdm(enumerate(test_dataloaders)):
File "D:\Hand\venv\lib\site-packages\tqdm\std.py", line 1087, in iter
for obj in iterable:
File "D:\Hand\venv\lib\site-packages\torch\utils\data\dataloader.py", line 568, in next
return self._process_next_batch(batch)
File "D:\Hand\venv\lib\site-packages\torch\utils\data\dataloader.py", line 608, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
FileNotFoundError: Traceback (most recent call last):
File "D:\Hand\venv\lib\site-packages\torch\utils\data_utils\worker.py", line 99, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "D:\Hand\venv\lib\site-packages\torch\utils\data_utils\worker.py", line 99, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "D:\Hand\A2J\src\hands2017.py", line 133, in getitem
depth = Image.open(self.ImgDir + 'image_D%08d' % (index+1) + '.png')
File "D:\Hand\venv\lib\site-packages\PIL\Image.py", line 2766, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'D:/Hand/data/gray2/image_D00015173.png'1264it [03:38, 5.79it/s]
Did I do anything wrong?
Oh, I didn't have this problem. It seems like that you already successfully tested 1264 batch images.
And I double checked that HANDS17 test dataset has this "image_D00015173.png" image.
I guess your test dataset has something wrong. Did you check that this file exists in you file folder?
from a2j.
Oh, I got it, it was my fault.
I used my own dataset instead of HANDS17 test dataset.
Then I will try to download HANDS17 dataset.
By the way, so can I test my own images on your testing code?
Thank you so much.
from a2j.
The pre-trained models we provided are dataset specific, so you can test your images with HANDS17.pth, however, due to the difference between your data and HANDS17 data, I am not sure how the model will perform.
from a2j.
I used my own dataset instead of HANDS17 test dataset.
Weird flex but ok.
from a2j.
The pre-trained models we provided are dataset specific, so you can test your images with HANDS17.pth, however, due to the difference between your data and HANDS17 data, I am not sure how the model will perform.
OK, thanks.
from a2j.
Related Issues (20)
- How to obtain the center point coordinates and depth values during NYU inference HOT 4
- an you provide the mat file of the detection bounding boxes of the itop side and top training set
- Can you provide the mat file of the detection bounding boxes of the itop side and top training set HOT 2
- Problem while retraining A2J on NYU HOT 3
- Please add a requirements.txt file HOT 1
- 好奇下载的网络有没finetuning过 HOT 2
- Swapping Width and Height dimensions HOT 1
- Selecting anchor points with P = 0.02 HOT 2
- what's the mean of "depthFactor"? HOT 4
- Input Files for the ITOP dataset HOT 1
- Hands2017的数据是基于绝对3D坐标的,你们训练是基于UVD的, 请问Hands2017是如何训练的呢? HOT 6
- 训练ITOP_side数据集 HOT 1
- Unable to reproduce the results for the ITOP side view human body dataset. HOT 1
- reason for num_channel expansion? HOT 3
- training with missing keypoints? HOT 3
- How can I convert pre-trained model to coreml to use it on ios application?
- Why are the Anchor-Points generated on a grid with spaces between them? HOT 1
- Thank you so much!
- Hi, mat files are generated using this script: https://github.com/zhangboshen/A2J/blob/master/data/icvl/data_preprosess.m HOT 1
- Enquiry about drawing human 3D pose on our one depth image HOT 1
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 a2j.