Issue while running the following commands #9
-
@jalagar
Edit 1:All previous issues have been resolved. (Can be checked in the history of this thread) Edit 2:Was trying to run it on custom layers. And I got the following error at step 2, ToDo
Note for the owner
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Hi @AdityaNikhil! Thank you for trying the tool :) Regarding your Edit 1 - did npm i not install sha1 at first? I'm wondering if there is something wrong with the configuration. For your custom layers, I downloaded it and ran it and it worked with the following configs:
You had 20 frames total. One more note, your "Face" layer won't work because they need to be 600 x 600 .png with transparent background eyes, similar to what you did with BodyElements. Also when you said "The script runs too slow on high-resolution images (Which is expected). Maybe try finding ways to utilize GPU to boost the speed.", what step runs the slowest? What resolution image did you use? |
Beta Was this translation helpful? Give feedback.
-
@jalagar Ran it on the following configs,
ISSUESFrom the output,
QUERIES
HOW I RUN?!
REGARDING EDIT 1I had to manually install packages, the command was not working at least for me. (Might work for others) |
Beta Was this translation helpful? Give feedback.
-
Hi so the "numberOfFrames" should be the number of frames in your layer. So in your case you have 20 frames in MultiLights (you missed 2.png so that's why it goes from 0-20). It worked when I ran it with my configurations above. Also I saw in your Face layer: https://drive.google.com/drive/folders/1f3fKKhz-3bASRFAwzU5tF_5opDnRfQ15 there are 2 .png files in each folder. That won't work currently, you either will need 1 .png or 20 .png files. I have filed an issue ticket #10 and will work on allowing you to pass in any number of layer images and it will be smart enough to duplicate them to reach numberOfFrames. But that might be what's causing the issue with the Face layer. Try remove it from layersOrder for now. What error are you getting when running |
Beta Was this translation helpful? Give feedback.
-
@AdityaNikhil I fixed the code so now it will handle your 2 image layers. It basically looks tries to smartly repeat the layers until you get exactly numberOfFrames number of frames. If there are too many layers, it will trim it down to numberOfFrames. Here's the PR: #13. Please pull the latest code. I used this config to generate your robots
|
Beta Was this translation helpful? Give feedback.
@AdityaNikhil I fixed the code so now it will handle your 2 image layers. It basically looks tries to smartly repeat the layers until you get exactly numberOfFrames number of frames. If there are too many layers, it will trim it down to numberOfFrames. Here's the PR: #13. Please pull the latest code.
Here's your cool robots:
I used this config to generate your robots