Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: float() argument must be a string or a number, not 'map' #29

Open
Llq201809 opened this issue Mar 24, 2019 · 2 comments
Open

Comments

@Llq201809
Copy link

When I run gen_Rnet_train_data.py, I meet this problem.

Traceback (most recent call last):
File " dface/ prepare. data/gen Rnet_ train_ data.py", line 216, in
gen_ rnet_ data( args. traindata_ store, args . annotation_ file, args . pnet_ model_ file, args.prefix_ path, args.use cuda
File "dface/prepare data/gen_ Rnet_ train_ data.py", line 61, in gen_ rnet data
gen_ rnet_ sample_ data(data_ dir , anno. file , save file ,prefix_ path)
File "dface/prepare data/gen_ Rnet_ train_ data.py", line 95, in gen. rnet sample data
boxes . np. array(boxes, dtype=np. float32).reshape(-1, 4)
TypeError: float() argunent nust be a string or a nunber, not 'map'1iat . InEo

@mxs30443
Copy link

I meet the same problem, I fix this problem by change "boxes . np. array(boxes, dtype=np. float32).reshape(-1, 4)" to "boxes . np. array(list(boxes), dtype=np. float32).reshape(-1, 4)"

@Llq201809
Copy link
Author

Llq201809 commented May 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants