Flame Machine Learning Timewarp, now on Linux and Mac

Thanks Randy!

Hi Des!

There is a way to point pip to already downloaded packages and this way you don’t need to get your machine connected.

To download it use "pip3 download -r requirements.txt -d packages_folder” on the machine that is connected.
Then "pip3 install -r requirements.txt --no-index --find-links packages_folder”

Make sure to put the correct versions in requirements.txt

hope that helps,
Andriy.

Hi Andriy,
I will give that a go.
thanks very much
Des

Hi Andriy,
We’ve got it working now. thanks so much.
Des

Just wanted to provide a slightly cleaner solve to this problem, as downloading and installing konsole and all of its dependencies is a little wasteful/dangerous(?)

We just need to update init_env to use gnome-terminal. To do this…

Open a terminal and go to the bundle directory. If its in the default directory you can get there with:

cd ~/flameTimewarpML/bundle/

Then run this sed command. As mentioned above, we are just updating init_env to use gnome-terminal instead of konsole

sed -i "s/konsole -e/gnome-terminal --/g" init_env

Everything else is as Randy outlined above (but to reiterate), run init_env

./init_env

and a new window will pop up in the virutal environment where we can update our python libraries:

pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

It would be cool if you could update the init_env to support konsole and gnome-terminal by doing a distro/kernel version check? @talosh

2 Likes

Thank you!!!

Flame 2021.2.2 Update case17465675
Mac OS Big Sur
Mac Pro (2019) AMD Radeon Pro Vega II Duo 32 GB

Is there any solution to run this script on my mac ?

initializing Timewarp ML…
usage: inference_sequence.py [-h] [–input INPUT] [–output OUTPUT] [–model MODEL] [–UHD] [–exp EXP] [–cpu]
inference_sequence.py: error: unrecognized arguments: 508_1147_382/source 508_1147_382
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

Hi Nabekk,

Are you running the script directly or from within Flame interface?

best,
Andriy.

Hi Andriy,
Thank you!

I’m running inside the Flame interface.

Hey @talosh !

First off, thanks so much for your time developing this tool. It’s a great plugin that I’ve come to rely on on an almost daily basis.

I seem to be running into an issue with the remove Duplicate frames functionality. Certain clips work amazingly and it cleans them up no problem. Other clips it leaves all the frames that are definitely duplicates.

I think it might have to do with the fact that some of my sources are coming from pieces that are 59.94 that originated as 23.98 raw. The material might have had grain applied to it at some point, or it was compressed and has artifacts, so while the frames are duplicates, they are not necessarily 1:1 if the algorithm is comparing every single pixel.

Can you confirm that might be the issue I’m running into? And if so, have you thought of perhaps having a “lower tolerance” type option that might allow a slight bit of variance frame to frame to accommodate for such situations?

Thanks in advance for any thoughts you might have! It is all very much appreciated!
David

Flame 2021.2.2 Update case17465675
Mac OS Catalina
Mac Pro (2017) AMD Radeon Pro Vega 64 16GB

Is there any solution to run this script on my mac ?

initializing Timewarp ML…
usage: inference_sequence.py [-h] [–input INPUT] [–output OUTPUT] [–model MODEL] [–UHD] [–exp EXP] [–cpu]
inference_sequence.py: error: unrecognized arguments: 508_1147_382/source 508_1147_382
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

sorry
I started running when I launched it from the flame icon. I used to launch flame at the terminal
Thank you.

Thank you for this Taylor! Im attempting to upgrade to an Ampere series card and getting a:

/home/randy/flameTimewarpML/bundle
[randy@dxs-flame-03 bundle]$ sed -i “s/konsole -e/gnome-terminal --/g” init_env
[randy@dxs-flame-03 bundle]$ ./init_env
sh: gnome: command not found

…error message. Any thoughts? Thank you @friendlyape !

Strange! can you post your init_env file? it looks like its trying to run ‘gnome’ instead of ‘gnome-terminal’.
I’ve attached my init_env. the only real change being on line 42.

Let me sanity check on a clean machine in the meantime…

init_env (1.7 KB)

init_env.zip (803 Bytes)

Is this a Centos8 EOL thing where my repos are outdated?

ah! there is a dash missing in your version!

Yours

Correct

Not sure how that could have happened.

EDIT:

I copied and pasted your shell output into my own shell and it was throwing an error because you it had a “double quotation mark” instead of a “quotation mark”. maybe that’s the issue?? Didn’t know this was a thing haha

https://qaz.wtf/u/show.cgi?show=sed+-i+“s%2Fkonsole+-e%2Fgnome-terminal+--%2Fg”+init_env&type=string

https://qaz.wtf/u/show.cgi?show=sed+-i+"s%2Fkonsole+-e%2Fgnome-terminal+--%2Fg"+init_env&type=string

How could that have happened? Cuz its Friday night. It’s late. And instead of turning off the machine I thought Id do my gpu upgrade tonight and then manually retyped your commands and missed the comma.

:slight_smile:

Thank you! That got me sorted and I’m watchin’ this progress bar fly by. Thank you!!!

1 Like

Best night to do GPU upgrades, I don’t blame ya!

1 Like

for Rocky Linux and 2023 is this step needed also?