-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to create "_motion.flo" file for target image #3
Comments
Hi @shangdibufashi , we provide a script to inference motion with sparse hints and mask described in README using the model "baseline2+motion2+fixedMotionFinetune". SLR-SFS/test_animating/test_motion_4eval_rawsize_threshold.py Lines 174 to 192 in 8d922b3
For your own image, you need to modify the value of hint_y, hint_x(motion speed of 1~5 pixels), big_motion_alpha(mask with motion). Sorry that the UI is not provided yet. Maybe you can refer to Labelme to generate the mask, and directly edit hint value in the code to have a quick try. |
great, thanks for your detailed guidance:) |
Thanks for your excellent work. I got some trouble re-producing Initial Motion from Interactive Sparse Labeling, It seems that we should not only get the coordinates of 1~5 pixels but also need to get motion direction and speed. Can you share the code that produces the sparse flow from the sampled point or interactive sampling map? |
@shangdibufashi can you help me in running this project please |
Do you solve this problem? |
Replace to
The hint_x, hint_y could be get from start point of an arrow, and speed can be get from length of an arrow. (Similar to Motion Leap app https://apps.apple.com/us/app/enlight-pixaloop/id1381206010) |
great work! may i ask you how to transfer a mask image (a png file) to the big_motion_alpha? |
|
@x4jc1 big_motion_alpha is the binary mask of fluid which you want to animate, so just load the png file to big_motion_alpha and convert it to float datatype. |
Hello! Has this been solved? I hand-drew a mask for the fluid in the image, but I got this error after getting the big_motion_alpha correct in shape as (1,1, height, width). After tweaking with the code for over 6 hours I think I should reach out here. (I am trying to animate a scene created by Midjourney (AI-drawing)
It seems to be caused by the incomplete pretrained model. I have tried both the FYI, here is my modified "test_motion_4eval_rawsize_threshold.py" file (github doesn't support .py so I used .txt) Thank you so much for maintaining this excellent project! test_motion_4eval_rawsize_threshold.txt Here is my picture and mask. I would greatly appreciate it if you wish to run them as example tests. |
Hi @Spark-RTG , "AttributeError: 'AnimatingSoftmaxSplatingJoint' object has no attribute 'motion_regressor'", the motion_regressor should be in this pretrained model: baseline2+motion2+fixedMotionFinetune.pth
Sorry that I am working on other projects and have no time running the image. But I guess the animation result might not be good since (a)the motion regressor is trained in real scenes with good lighting, (b) It has no transparent pattern, and (c) the river looks static in global, but containing randomly small local waves. The solution: |
Thanks for your work, how can I generate the .flo file, directly through flownet2, knowing the entire video? |
Hello, when I “Ours_v1_ProjectPaper‘’ through your model, I found that there is a .flo file in the operation required, I want to know how to get this .flo, and in this command "bash test_animating/CLAW/test_baseline_motion.sh" , the script still needs the input jpg file related to the flo file, but I don't know how to get the flo file, Can you answer that for me?How do I get this kind of FLO file? |
This is a really amazing project.
In the "sample_CLAWv2.zip", images (e.g. 00139.png ) has its own ".flo" file(e.g. 00139_motion.flo)
Wondering how to create "_motion.flo" file when testing my own images
Thanks
The text was updated successfully, but these errors were encountered: