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

Could not create trainset #46

Closed
Virginia9733 opened this issue May 14, 2021 · 3 comments
Closed

Could not create trainset #46

Virginia9733 opened this issue May 14, 2021 · 3 comments

Comments

@Virginia9733
Copy link

Virginia9733 commented May 14, 2021

Hi,

I try to run VAME locally on my laptop, following the instruction, and could successfully install and import VAME in the conda environment.
However, when try to convert .csv to .npy using the vame.csv_to_npy(), it runs without erroe but I could not find the .npy file in de working directory.
Then I try to run vame.create_trainset(config)
I got the error message below.

vm.csv_to_numpy(config, datapath='/Users/virginiali/VAME/Muhang-VAME-Project-May14-2021/videos/pose_estimation')
Your data is now ine right format and you can call vame.create_trainset()
vm.create_trainset(config)
Creating training dataset...
Using robust setting to eliminate outliers! IQR factor: 4
Traceback (most recent call last):
File "", line 1, in
File "/Users/virginiali/VAME/VAME-master/vame/model/create_training.py", line 186, in create_trainset
traindata(cfg, files, cfg['test_fraction'], cfg['num_features'], cfg['savgol_filter'])
File "/Users/virginiali/VAME/VAME-master/vame/model/create_training.py", line 66, in traindata
X = np.concatenate(X_train, axis=0)
File "<array_function internals>", line 6, in concatenate
ValueError: need at least one array to concatenate

Could anyone kindly give me some suggestions to fix it? Many thanks!

I am using MAC airbook, macOS Catalina 10.15.7

@Virginia9733
Copy link
Author

Solved, thanks! There is something wrong when I create the project and the video was not copied, now it fixed.

@jelrod14
Copy link

I realize this is quite late lol, but how did you end up solving this issue? I have tried copying my video into the videos folder, but still nothing. Thanks!

@LIU-Alessia
Copy link

@jelrod14 I have also encountered this problem, have you solved?

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

3 participants