# Flame Machine Learning Timewarp, now on Linux and Mac

**URL:** <https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038>\
**Category:** Flame Questions\
**Tags:** ml, timewarp\
**Created:** [January 10, 2021, 8:16pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038 "2021-01-10T20:16:30Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![julioleon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/julioleon/32/14482_2.png) [@julioleon](https://forum.logik.tv/u/julioleon)\
**Post date:** [July 14, 2021, 10:09pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/283 "2021-07-14T22:09:33Z")

</div>

Hi Francesco

What machine is the eGPU connected to? Same iMac Pro?

---

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [July 15, 2021, 10:34am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/284 "2021-07-15T10:34:27Z")

</div>

Yes, same iMac Pro via thunderbolt 3.

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [July 15, 2021, 6:28pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/285 "2021-07-15T18:28:32Z")

</div>

I installed TimewarpML-linux.v0.4.3, and now every time I start flame I get this:

 ![Screenshot from 2021-07-15 14-23-25](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/7/76948567c82144dc091ee7f3b45e47b66a67d6bb.jpeg)

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [July 15, 2021, 10:31pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/286 "2021-07-15T22:31:37Z")

</div>

And quite frankly, the novelty has worn off.

---

<div class="post-metadata">

**Author:** ![talosh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/talosh/32/963_2.png) [@talosh](https://forum.logik.tv/u/talosh)\
**Post date:** [September 10, 2021, 12:58am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/287 "2021-09-10T00:58:25Z")

</div>

Hi Tim, I’m not really aware of anything that might be causing it, could you elaborate on os / flame version?

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [September 10, 2021, 11:17am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/288 "2021-09-10T11:17:10Z")

</div>

v2022.1 on Linux, CentOS 8.2, HP G8

---

<div class="post-metadata">

**Author:** ![CallumMatthew](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@CallumMatthew](https://forum.logik.tv/u/CallumMatthew)\
**Post date:** [September 22, 2021, 1:42pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/289 "2021-09-22T13:42:16Z")

</div>

This might have been asked before but will there be a Mac release? 😊

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [September 22, 2021, 3:30pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/290 "2021-09-22T15:30:29Z")

</div>

There is.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [September 22, 2021, 3:32pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/291 "2021-09-22T15:32:03Z")

</div>

> **[Release flameTimewarpML v0.4.3 · talosh/flameTimewarpML](https://github.com/talosh/flameTimewarpML/releases/tag/v0.4.3)**
>
> Improved Python 3 compatibility of the code that runs within Flame's built-in python interpreter

Mac is cpu only but it works.

---

<div class="post-metadata">

**Author:** ![talosh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/talosh/32/963_2.png) [@talosh](https://forum.logik.tv/u/talosh)\
**Post date:** [September 22, 2021, 4:38pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/292 "2021-09-22T16:38:51Z")

</div>

Yes, that’s the current one, there should be a tar.gz file for Mac

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://forum.logik.tv/u/David)\
**Post date:** [September 28, 2021, 1:57pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/293 "2021-09-28T13:57:04Z")

</div>

Hi talosh,  
First of all, many thanks for this amazing project. I’ve tried it on a few clips, and the results, even if not flawless, are consistently better than the Flame “motion” timewarp.  
However, I often get errors with clips which resolution is over 3.2K.  
**"Slow Down clip(s) with ML execute callback [\<bound method flameTimewarpML.slowmo of \<flameTimewarpML.flameTimewarpML object at 0x7f8ce0c63b50\>\>((\<flame.PyClip object at 0x7f8ce0c68c60\>,),)] failed because of an error of type "Cannot export clip ‘test’ : Source: rgb: Prefetcher intentionally dropped frame 8 fetch status Dropped request: track 0 socket Result."**  
It happens during the export of the “source” to the tmp directory, sometimes it drops at frame 8,9 or 10…  
And sometimes Flames crashes with an “abnormal termination /segmentation fault”.  
I’m on Flame 2022.1, Z840,Quadro M6000, Centos 7.6, Cuda 11.2  
Strangely, we have another Flame with the exact same specs, which seems to deal better with the higher resolutions. Any idea of what can cause this unstable behavior?  
Anyway, many many thanks for your work, I’m sure it will save us countless hours of grueling paintwork.

---

<div class="post-metadata">

**Author:** ![talosh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/talosh/32/963_2.png) [@talosh](https://forum.logik.tv/u/talosh)\
**Post date:** [September 28, 2021, 3:31pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/294 "2021-09-28T15:31:24Z")

</div>

Hi David, that looks like your flame machine is struggling to read the source file you’re trying to send to the TimewarpML. Does this comes up in the console when you just try to play it with “Play every frame” on a loop?

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://forum.logik.tv/u/David)\
**Post date:** [September 28, 2021, 4:28pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/295 "2021-09-28T16:28:34Z")

</div>

Hi talosh, thanks for your quick response.  
My Flame can’t play 4K real time for more than a few seconds - old SAN - but yes, I think you got a point:  
Nothing special in the console if I play one the problematic clips in loop with “Play all frames” selected, but in the other hand I DO have a lot of “Prefetcher intentionally dropped frame xx” if I leave it in “play real-time”. I’ll talk to my IT guy about it.

---

<div class="post-metadata">

**Author:** ![Hengy](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hengy](https://forum.logik.tv/u/Hengy)\
**Post date:** [October 4, 2021, 3:45pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/296 "2021-10-04T15:45:37Z")

</div>

When changing projects I get this popup. is there a conflict?

[‘Traceback (most recent call last):\n’,  
’ File “/opt/Autodesk/shared/python/flameTimewarpML.py”, line 3216, in ’  
‘app\_initialized\n’  
’ app\_framework = flameAppFramework()\n’,  
’ File “/opt/Autodesk/shared/python/flameTimewarpML.py”, line 156, in ’  
‘ **init** \n’  
’ self.load\_prefs()\n’,  
’ File “/opt/Autodesk/shared/python/flameTimewarpML.py”, line 241, in ’  
‘load\_prefs\n’  
" prefs\_file\_path = prefix + ‘.’ + self.flame\_user\_name + ‘.’ + "  
“self.flame\_project\_name + ‘.prefs’\n”,  
‘TypeError: can only concatenate str (not “NoneType”) to str\n’]

---

<div class="post-metadata">

**Author:** ![talosh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/talosh/32/963_2.png) [@talosh](https://forum.logik.tv/u/talosh)\
**Post date:** [October 5, 2021, 8:47am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/297 "2021-10-05T08:47:14Z")

</div>

Hi Hengy, it looks like it is unable to get the new project name after change, I have to fix it in the code, thank you for pointing it out!

---

<div class="post-metadata">

**Author:** ![Hengy](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Hengy](https://forum.logik.tv/u/Hengy)\
**Post date:** [October 5, 2021, 2:31pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/298 "2021-10-05T14:31:33Z")

</div>

Happy to help.

---

<div class="post-metadata">

**Author:** ![TimD](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@TimD](https://forum.logik.tv/u/TimD)\
**Post date:** [October 14, 2021, 9:34am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/299 "2021-10-14T09:34:08Z")

</div>

This is great! Thanks @talosh for doing this, it’s saved us days of paint!

One question though… the MLTW prompt _‘flameTimewarpML: Python exception [Errno 2] No such file…’_ pops up every time i do a foreground flame export. Is there a way of stopping this? i assume it’s triggered by the export hook? it doesnt happen on bg/wiretap exports.

---

<div class="post-metadata">

**Author:** ![talosh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/talosh/32/963_2.png) [@talosh](https://forum.logik.tv/u/talosh)\
**Post date:** [October 14, 2021, 11:53am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/300 "2021-10-14T11:53:15Z")

</div>

Hi Tim, haven’t seen this before, is there any more info on that exception, like the line number it happens at?

---

<div class="post-metadata">

**Author:** ![TimD](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@TimD](https://forum.logik.tv/u/TimD)\
**Post date:** [October 14, 2021, 12:29pm UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/301 "2021-10-14T12:29:05Z")

</div>

i get this in the popup console…  
_[‘Traceback (most recent call last):\n’,_

- ’ File “/opt/Autodesk/flame\_2021.1/python/export\_hook.py”, line 493, in postExportAsset\n moveMoov(exported\_file)\n’,\*
- ’ File “/opt/Autodesk/flame\_2021.1/python/export\_hook.py”, line 563, in moveMoov\n process\_qtfaststart\_command = subprocess.Popen(qtfaststart\_command)\n’,\*
- ’ File “/opt/Autodesk/python/2021.1/lib/python2.7/subprocess.py”, line 390, in **init** \n errread, errwrite)\n’,\*
- ’ File “/opt/Autodesk/python/2021.1/lib/python2.7/subprocess.py”, line 1025, in \_execute\_child\n raise child\_exception\n’,\*
- ‘OSError: [Errno 2] No such file or directory\n’]\*

---

<div class="post-metadata">

**Author:** ![claussteinmassl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/claussteinmassl/32/1922_2.png) [@claussteinmassl](https://forum.logik.tv/u/claussteinmassl)\
**Post date:** [October 19, 2021, 8:54am UTC](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038/302 "2021-10-19T08:54:18Z")

</div>

Hey @talosh!

I’ve seen similar behaviour on our machines. I think the “problem” is this:

> <https://github.com/talosh/flameTimewarpML/blob/293be3ebc8bc34352569385ea21c07286316a5ea/flameTimewarpML.py#L3316>

The exception handler seems to catch **any** exception from all scripts and is not limited to those from MLTW. I had artists complaining about problems with MLTW (because that’s what they read in the window title) while the problem was some other script in the pipeline.

I guess you could check if the file path in the exception contains something that you expect and don’t show the window in all other cases. What do you think?

[Previous page](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038.md?page=14)

[Next page](https://forum.logik.tv/t/flame-machine-learning-timewarp-now-on-linux-and-mac/2038.md?page=16)
