handtracking icon indicating copy to clipboard operation
handtracking copied to clipboard

Problem with egohands_dataset_clean.py

Open y9luiz opened this issue 6 years ago • 4 comments

when i play these script "egohands_dataset_clean.py" it should return for me 2 folders (train and test) contained the generated CSV, files, right? so, the file only is downloading the egohands_data.zip and extracting it, how can i fix this? ps.: i'm not a python programmer. ps2.: sorry for the bad english.

y9luiz avatar Aug 12 '19 14:08 y9luiz

@y9luiz the csv files gets created at images/train/train_labels.csv and images/test/test_labels.csv

DebankurS avatar Aug 23 '19 21:08 DebankurS

I am running this script and I am getting prompt Generating csv files and after that nothing is happening. No csv files or even folder extraction.

Divyanshupy avatar Oct 04 '19 09:10 Divyanshupy

Please help. When I run the script "egohands_dataset_clean.py", I got an comment "Rename the file: cannot connect to X server"

Kanchon-Kanti-Podder avatar Sep 15 '20 06:09 Kanchon-Kanti-Podder

@Kanchon-Kanti-Podder

Following up on your email.

  • The code in this repo is tested on a mac. This should also work on ubuntu/linux machines and assumes you are working on a local machine with access to the GUI.
  • There are sections in the code that uses openCV to view/verify the bounding boxes ... if you are running this on a remote machine, there will be no GUI availabe and that might be the reason for your cannot connect to X server error. See this discussion here https://stackoverflow.com/questions/39840184/python-code-crashes-with-cannot-connect-to-x-server-when-detaching-sshtmux-se. To solve it, you can uncomment parts of the code that use openCV to view images and try again ... e.g. references to cv2
  • To crop, hand images out, you can also use OpenCV .. here is some code and guide https://www.pyimagesearch.com/2014/01/20/basic-image-manipulations-in-python-and-opencv-resizing-scaling-rotating-and-cropping/ .

victordibia avatar Sep 15 '20 17:09 victordibia