Lightning-Universe / Pose-app

A Lightning app for animal pose estimation.
https://pose-app.readthedocs.io/
Apache License 2.0
18 stars 1 forks source link

Unable to create new project from source using SLEAP project #108

Open sara-xinyue-liang opened 2 days ago

sara-xinyue-liang commented 2 days ago

Hi, I was trying to create a project from source using my existing sleap project. In the "Manage Project" tab, after I uploaded my pkg.slp file and defined all keypoints and hit "Create Project", it showed me "Request submitted!" but immediately it showed "... connecting" and then it said "connetion error" (showed in the screenshot)

Screenshot 2024-09-19 at 12 53 54 PM

Here is what it showed in the terminal:

INFO:APP.BASHWORK:python /teamspace/studios/this_studio/Pose-app/lightning_pose_app/label_studio/create_labeling_config.py --proj_dir /teamspace/studios/this_studio/Pose-app/data/testsleap_1400_02 --filename label_studio_config.xml --keypoints_list Mouth/TB1/TB2/TB3/TB4/TB5/TB6/TB7/TB8/TB9/TB10/TB11/TB12/TB13/Tb14 WARNING:py.warnings:/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/utilities/proxies.py:163: You passed a the value '/teamspace/studios/this_studio/Pose-app' as an argument to the run() method of root.tensorboard and it looks like this is a path to a file or a folder. Consider wrapping this path in a lightning.app.storage.Path object to be able to access these files in your Work.

INFO:APP.BASHWORK:tensorboard --logdir data/testsleap_1400_02/models --host 0.0.0.0 --port 7531 --reload_interval 30 INFO:APP.BASHWORK:streamlit run lightning_pose/apps/labeled_frame_diagnostics.py --server.address 0.0.0.0 --server.port 7533 --server.headless true -- --model_dir=/teamspace/studios/this_studio/Pose-app/data/testsleap_1400_02/models --make_dir --require_tb_logs INFO:APP.BASHWORK:streamlit run lightning_pose/apps/video_diagnostics.py --server.address 0.0.0.0 --server.port 7534 --server.headless true -- --model_dir=/teamspace/studios/this_studio/Pose-app/data/testsleap_1400_02/models --make_dir --video_subdir video_preds_infer

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to false.

TensorFlow installation not found - running with reduced feature set.

You can now view your Streamlit app in your browser.

URL: http://0.0.0.0:7533

INFO:APP.BASHWORK:python /teamspace/studios/this_studio/Pose-app/lightning_pose_app/label_studio/create_new_project.py --label_studio_url http://localhost:7532 --proj_dir /teamspace/studios/this_studio/Pose-app/data/testsleap_1400_02 --api_key whitenoise --project_name testsleap_1400_02 --label_config /teamspace/studios/this_studio/Pose-app/data/testsleap_1400_02/label_studio_config.xml

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to false.

TensorBoard 2.16.2 at http://0.0.0.0:7531/ (Press CTRL+C to quit)

You can now view your Streamlit app in your browser.

URL: http://0.0.0.0:7534

An error occurred: index 777 is out of bounds for axis 0 with size 777 INFO: Your Lightning App is being stopped. This won't take long. INFO: Your Lightning App has been stopped successfully! INFO: Received SIGTERM signal. Gracefully terminating label_studio.label_studio... INFO: Received SIGTERM signal. Gracefully terminating tensorboard... INFO: Received SIGTERM signal. Gracefully terminating streamlit_frame.work... INFO: Received SIGTERM signal. Gracefully terminating streamlit_video.work... INFO: Received SIGTERM signal. Gracefully terminating fiftyone... INFO: Received SIGTERM signal. Gracefully terminating train_ui.work... Traceback (most recent call last): File "/home/zeus/miniconda3/envs/cloudspace/bin/lightning_app", line 8, in sys.exit(_cli_entry_point()) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/init.py", line 49, in _cli_entry_point main() File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/cli/lightning_cli.py", line 109, in main _main() File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/utilities/exceptions.py", line 37, in invoke return super().invoke(ctx) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(args, kwargs) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/cli/lightning_cli.py", line 291, in run_app _run_app( File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/cli/lightning_cli.py", line 218, in _run_app dispatch( File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/runners/runtime.py", line 101, in dispatch return runtime.dispatch(open_ui=open_ui, name=name, no_cache=no_cache) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/runners/multiprocess.py", line 142, in dispatch self.app._run() File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/core/app.py", line 537, in _run done = self.run_once() File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/app/core/app.py", line 478, in run_once self.root.run() File "app.py", line 357, in run self.project_ui.run(action="upload_existing_project") File "/teamspace/studios/this_studio/Pose-app/lightning_pose_app/ui/project.py", line 522, in run self._upload_existing_project(kwargs) File "/teamspace/studios/this_studio/Pose-app/lightning_pose_app/ui/project.py", line 419, in _upload_existing_project df = pd.read_csv(csv_file, header=[0, 1, 2], index_col=0) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1026, in read_csv return _read(filepath_or_buffer, kwds) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 620, in _read parser = TextFileReader(filepath_or_buffer, **kwds) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1620, in init self._engine = self._make_engine(f, self.engine) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1880, in _make_engine self.handles = get_handle( File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/pandas/io/common.py", line 873, in get_handle handle = open( FileNotFoundError: [Errno 2] No such file or directory: '/teamspace/studios/this_studio/Pose-app/data/testsleap_1400_02/CollectedData.csv' [2024-09-19 16:52:55,130] [django.server::log_message::161] [INFO] "GET /api/version HTTP/1.1" 200 904 [2024-09-19 16:52:55,130] [django.server::log_message::161] [INFO] "GET /api/version HTTP/1.1" 200 904 [2024-09-19 16:52:55,192] [django.server::log_message::161] [INFO] "POST /api/projects HTTP/1.1" 201 3195 [2024-09-19 16:52:55,192] [django.server::log_message::161] [INFO] "POST /api/projects HTTP/1.1" 201 3195 [2024-09-19 16:52:55,258] [django.server::log_message::161] [INFO] "POST /api/storages/localfiles HTTP/1.1" 201 362 [2024-09-19 16:52:55,258] [django.server::log_message::161] [INFO] "POST /api/storages/localfiles HTTP/1.1" 201 362

I can send my pkg.slp file over email if it is helpful for debugging. (it was too big to attach here) The slp file was created using the method " predict > export labels package > labeled frames" mentioned in the thread https://github.com/Lightning-Universe/Pose-app/issues/107

themattinthehatt commented 1 day ago

hi @sara-xinyue-liang thanks for reaching out - yes maybe sending us your slp file would be most helpful (m.whiteway [at] columbia.edu)