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

Training images not being saved #196

Closed
mi2celis opened this issue Mar 31, 2023 · 2 comments
Closed

Training images not being saved #196

mi2celis opened this issue Mar 31, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mi2celis
Copy link

Describe the bug
Using trex for tracking a video.
I am using auto_train and trying to save the training images by using
recognition_save_training_images = true
Training completes successfully, however, the training images are not being saved.

My settings for trex are as follows:

blob_size_ranges = [[0.0170333,3.089644]]
track_threshold = 15
track_max_individuals = 10
track_max_speed = 200
output_posture_data=true
auto_train = true
recognition_image_scale = 0.75
recognition_image_size = [256,256]
recognition_save_training_images = true

and the command I use is

trex \
    -d ${EWD}/results/${BASE} \
    -i ${EWD}/videos_pv/${BASE}.pv \
    -s ${PARAMS} \
    -log_file track_${BASE}.log

where EWD, BASE and PARAMS are defined.
All other results are being saved to ${EWD}/results/${BASE}.

TRex is running on Ubuntu 20.04.4 LTS. Have
NVIDIA Corporation TU106M [GeForce RTX 2070 Mobile] / Mesa Intel® UHD Graphics 630 (CFL GT2)
TRex v1.1.9

Log file from trex session is attached
output.txt

@mi2celis mi2celis added the bug Something isn't working label Mar 31, 2023
@mooch443
Copy link
Owner

So, looking at your log, have you checked"/home/mimi/data/lab/trex/experiments/EXP_20211208153624//results/20211208-153646___G_pZMafXy___F_008___D_001___A_180___O_500___S_700/20211208-153646___G_pZMafXy___F_008___D_001___A_180___O_500___S_700_L_validation_data.npz"?

@mi2celis
Copy link
Author

I misunderstood. I thought the images would be saved as png files of something similar.

I see that validation_data.npz has
['validation_ids', 'validation_images', 'ids', 'images']

I will write some code to extract the images.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants