-
Notifications
You must be signed in to change notification settings - Fork 57
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
Issue while running the interactive demo + Video Editing Documentation #67
Comments
I would have to check the error message later. Is it possible that your workspace is corrupted (i.e., created but with no image present)? Try removing the entire workspace and starting again. For the video editing demo, you can use the |
Got it thanks! I was looking at the code and couldn't find where the mask of the image is calculated. Everywhere the mask is being loaded. Does this project assume the mask to be provided? If so, which model was used to get masks for your dataset? I was thinking of using the model Sam for this purpose. Will that work? |
I was following this notebook: https://colab.research.google.com/drive/1yo43XTbjxuWA7XgCUO9qxAi7wBI6HzvP?usp=sharing&authuser=1 but it doesn't do layering so i took the initial setup from here and the rest i got from the main_controller.py. However, to use the overlay_layer_torch() function i needed to use the Resourcemanager class. When i pass the config variable (cfg), it gives me an error for no key images in cfg. How can i initialize it for images and other keys as well (i'm guessing video and max_overall_size keys will also give error). |
Hi, the first masks are always given in the VOS setting. You can indeed use SAM to create those masks. For editing, I think it's easier to copy the masking logic and create your own function. Sorry that I'm quite busy these days and cannot provide an example for now. |
Hey, Can you please let me know about the initialization for the |
Cutie/gui/interactive_utils.py Lines 195 to 215 in b8930f0
I don't think it is needed. |
How do i get the variables |
|
But how do i get those values. For example if i have 2 torch images |
To be more specific I'm trying to add an object (image) into a video and track it using pose estimation at a specific coordinate. Here is my current code for handling a single frame:
Not sure how to get |
Where are you using Cutie? The mask comes from there. |
Here is the updated code. i had to change the
Error:
|
It would not work if you changed it from 3 to 2. You need a transparent PNG image as the layer image. |
What am i doing wrong. I followed the installation guide.
Also i want to achieve the adding feature from the demo where the image was added to the dance video. Could you guide me to that part of the code cause from the scripting_demo_add_del_objects.py, its not clear where the video editing is being done (only images and not dealing with frames). Is there somewhere i could find the code to generate similar results?
The text was updated successfully, but these errors were encountered: