yoyo-nb / Thin-Plate-Spline-Motion-Model

[CVPR 2022] Thin-Plate Spline Motion Model for Image Animation.
MIT License
3.39k stars 555 forks source link

source image path is undefined #29

Closed emmajane1313 closed 1 year ago

emmajane1313 commented 1 year ago

I keep getting an error of:

---> 12 source_image = imageio.imread(source_image_path)


the source image path however is definitely defined and correct, i have uploaded the png file directly into the assets folder and even put the path variable in line 12 "./assets/still.png" rather than calling source_image_path to double check but i still get the error

yoyo-nb commented 1 year ago

I guess you used google colab to run the code and forgot to run the second cell. The second cell will change the current running path, and only after running can the relative path be used to read the image

emmajane1313 commented 1 year ago

just fixed it! thank you ... i think it was an error with my video path being to long and it was restarting the runtime and forgetting the path.... i get this error now "from demo import load_checkpoints" ... any ideas?

yoyo-nb commented 1 year ago

I don't get an error here, I still think it's due to not being in the correct run path.

Did you run cd Thin-Plate-Spline-Motion-Model after running git clone

emmajane1313 commented 1 year ago

yeah i ran it , the solution was to restart everything again, i now get one last error Could not find a format to write the specified file in multi-image mode coming from > ---> 17 imageio.mimsave(output_video_path, [ img_as_ubyte(frame) for frame in predictions], fps=fps),

ValueError: Could not find a format to write the specified file in multi-image mode

could that be some path error to? i just specified an outputs folder in the repo i.e. "/content/Thin-Plate-Spline-Motion-Model/outputs"

sorry to bother you with all this

On Wed, Sep 14, 2022 at 4:39 AM yoyo-nb @.***> wrote:

I don't get an error here, I still think it's due to not being in the correct run path.

Did you run cd Thin-Plate-Spline-Motion-Model after running git clone

— Reply to this email directly, view it on GitHub https://github.com/yoyo-nb/Thin-Plate-Spline-Motion-Model/issues/29#issuecomment-1246434319, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMFPIN5HFZ237A5ZU7QKP3V6GFLXANCNFSM6AAAAAAQME76QQ . You are receiving this because you authored the thread.Message ID: @.***>

yoyo-nb commented 1 year ago

output_video_path should be a file path with a filename, such as /content/Thin-Plate-Spline-Motion-Model/output.mp4

emmajane1313 commented 1 year ago

works thank you!

On Wed, Sep 14, 2022 at 5:01 AM yoyo-nb @.***> wrote:

output_video_path should be a file path with a filename, such as /content/Thin-Plate-Spline-Motion-Model/output.mp4

— Reply to this email directly, view it on GitHub https://github.com/yoyo-nb/Thin-Plate-Spline-Motion-Model/issues/29#issuecomment-1246460002, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMFPIJ6S3PDRFWVCV7RRCDV6GH7RANCNFSM6AAAAAAQME76QQ . You are receiving this because you authored the thread.Message ID: @.***>