Issue about gradio app when following the tracking module instructions
Closed this issue · 20 comments
Hi, this is not expected, did you follow the instructions here?
Is this after clicking load videos? Here is the expected output
If it got stuck after clicking load videos, it might be a vs-code related issue
Hi, I also got stuck when loading video, I cannot select a video from the bottom carousel. So I upload a video from the local. I run the preprocess coda at terminal so I am not sure how to fix it. I have try to kill the script and re-run it many times but it still cannot work.
I don't understand what it means by "cannot select a video from the bottom". It appears ineffective to communicate in this way. Can you follow the bug/issue tracker to describe the steps and the outcome?
Just to clarify, in order to preprocess the demo car video, nothing needs to be uploaded. This is the way it works (see this tutorial) for some context:
- Run
python scripts/run_preprocess.py car-turnaround-2 other "0"
- A link will be prompted in the terminal after flow filtering. Click that link, and you'll be redirected to the modified track-anything gradio app.
- Follow the instructions on the top to segment the object.
This screenshot looks normal. To clarify, users are supposed to upload videos locally. If "drop video here" message is causing the confusion, please ignore it for now and we need to remove it.
I see. In my experience, refreshing the page and do it again (click the bottom video>>click load videos) worked.
If that does not work, could you try killing all vscode processes and do it again? e.g.
pkill -f vscode
which terminates processes whose command line arguments match vscode
.
Hi, it still did not work. And I tried to open the local URL or the public URL when using a remote server. Both ways did not work. I cannot select the bottom video. And clicking load videos has no reactions. It is really weird. Do you have any other suggestions? Thanks.
This is strange. We need more information to look into this, at least to reproduce the behavior.
Could you do the following?
- Activate the lab4d environment, and run
conda list
. Attach the output in a separate file - Run
python preprocess/third_party/Track-Anything/app.py car-turnaround-2
. Report the output from the console, and the steps you took on the web interface.
Hi, please check the lab4d environment as attached.
I run python preprocess/third_party/Track-Anything/app.py car-turnaround-2
, and the output is shown below. I still cannot load videos on the web interface as before (I cannot select the bottom video and can only upload video locally, and clicking 'load video' has no reaction).
lab4d.txt
Hi, I recorded a video of running track-anything in lab4d, is that consistent with what you observed?
Besides, after checking the output conda list
, I found the gradio-client
version is different. Hereis the one I have after installing following the instruction.
gradio 3.28.3 pypi_0 pypi
gradio-client 0.1.4 pypi_0 pypi
Hi, thanks for your effort. I have reinstalled the right version of gradio-client
, but it still does not work as you recorded. I also record a video to show what I see on gradio app. Please check
Screencast from 09-08-2023 16%3A04%3A21.webm, sorry for that I do not know why the pointer cannot be shown properly in the screencast.
Different from your recording, when I click the center (Drop video here or click to upload), it will open the local file rather than select the example video at the bottom. Although I upload video from local files, there is no reaction after I click the 'Load Video' button.
It seems there is still some confusion in our communication. Again, this app does not allow "Drop video here or click to upload" You are only supposed to select from the bottom carousel, which lists the videos in the folder database/raw/$seqname
.
It would be helpful to know what happens after clicking the bottom video
Yes, I have seen that you upload the bottom video in your video recording. I also tried to upload the bottom video in my recording (it may be not obvious because of the mouse pointer. When I click the bottom video, its bounding box will be orange). So nothing happens after clicking the bottom video, only the color of its bounding box change. I click the 'Load Video' after clicking the bottom video and also nothing happens (No video uploaded as shown in your recording).
I saw you click the "Drop video here or click to upload" first before clicking the bottom video in your recorded video, so I may misunderstand it.
No worries, did any error pop up in the terminal after clicking "load video"?
It still seems to be a gradio GUI / network issue. This can be verified and isolated by running the official Track-anything and checking whether the "load video" button works there.
Looping @neeharperi in, in case he has ideas.
Hi, I just tried the official Track-anything, and there is still nothing happens after clicking the bottom videos. And there is no error in the terminal during the operation on gradio gui. Do you have any suggestions? @neeharperi, thanks!
Can you create a new conda environment and only install Track-Anything. Please try their demo by clicking on one of the examples videos in the bottom carousel. I still believe this is an issue with the environment.
Hi, thanks for your suggestion, I create a new conda environment for Track-Anything then it worked. I found in my lab4d environment, the version of gradio
is 3.28.3, and in the new environment for Track-Anything, the version is 3.39.0. So I reinstall gradio==3.39.0
and it works. Thanks for your help @gengshan-y @neeharperi .