Software Open Access

Codes for "Predictive online optimisation with applications to optical flow"

Valkonen, Tuomo


MARC21 XML Export

<?xml version='1.0' encoding='UTF-8'?>
<record xmlns="http://www.loc.gov/MARC21/slim">
  <leader>00000nmm##2200000uu#4500</leader>
  <datafield tag="653" ind1=" " ind2=" ">
    <subfield code="a">online optimisation</subfield>
  </datafield>
  <datafield tag="653" ind1=" " ind2=" ">
    <subfield code="a">optical flow</subfield>
  </datafield>
  <datafield tag="653" ind1=" " ind2=" ">
    <subfield code="a">primal-dual</subfield>
  </datafield>
  <datafield tag="653" ind1=" " ind2=" ">
    <subfield code="a">nonsmooth</subfield>
  </datafield>
  <controlfield tag="005">20211222130742.0</controlfield>
  <controlfield tag="001">3659180</controlfield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">48720</subfield>
    <subfield code="z">md5:09fec85235a289ad10fe337098f2c1f3</subfield>
    <subfield code="u">https://zenodo.org/record/3659180/files/predict-zenodo-v1.zip</subfield>
  </datafield>
  <datafield tag="542" ind1=" " ind2=" ">
    <subfield code="l">open</subfield>
  </datafield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="c">2020-02-07</subfield>
  </datafield>
  <datafield tag="909" ind1="C" ind2="O">
    <subfield code="p">software</subfield>
    <subfield code="o">oai:zenodo.org:3659180</subfield>
  </datafield>
  <datafield tag="909" ind1="C" ind2="4">
    <subfield code="v">2021</subfield>
    <subfield code="p">Journal of Mathematical Imaging and Vision</subfield>
  </datafield>
  <datafield tag="100" ind1=" " ind2=" ">
    <subfield code="u">University of Helsinki</subfield>
    <subfield code="0">(orcid)0000-0001-6683-3572</subfield>
    <subfield code="a">Valkonen, Tuomo</subfield>
  </datafield>
  <datafield tag="245" ind1=" " ind2=" ">
    <subfield code="a">Codes for "Predictive online optimisation with applications to optical flow"</subfield>
  </datafield>
  <datafield tag="540" ind1=" " ind2=" ">
    <subfield code="a">Other (Open)</subfield>
  </datafield>
  <datafield tag="650" ind1="1" ind2="7">
    <subfield code="a">cc-by</subfield>
    <subfield code="2">opendefinition.org</subfield>
  </datafield>
  <datafield tag="520" ind1=" " ind2=" ">
    <subfield code="a">&lt;p&gt;These are the (Julia) codes for the optical flow experiments of the manuscript &lt;em&gt;&amp;ldquo;Predictive online optimisation with applications to optical flow&amp;rdquo;&lt;/em&gt; by &lt;a href="https://tuomov.iki.fi"&gt;Tuomo Valkonen&lt;/a&gt; (&lt;a href="https://arxiv.org/abs/2002.03053"&gt;arXiv:2002.03053&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Prerequisites&lt;/p&gt;

&lt;p&gt;These codes were written for Julia 1.3. The Julia package prequisites are from November 2019 when our experiments were run, and have not been updated to maintain the same environment we used to do the experiments in the manuscript. You may get Julia from &lt;a href="https://julialang.org/"&gt;julialang.org&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Using&lt;/p&gt;

&lt;p&gt;Navigate your unix shell to the directory containing this &lt;code&gt;README.md&lt;/code&gt; and then run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ julia --project=PredictPDPS
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The first time doing this, to ensure all the dependencies are installed, run&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ ]instantiate
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Afterwards in the Julia shell, type:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;gt; using PredictPDPS
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This may take a while as Julia precompiles the code. Then, to generate all the experiments in the manuscript, run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;gt; batchrun_article()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will save the results under &lt;code&gt;img/&lt;/code&gt;. To see the experiments running visually, and not save the results, run&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;gt; demo_known1()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or any of &lt;code&gt;demo_XY()&lt;/code&gt;, where &lt;code&gt;X&lt;/code&gt;=1,2,3 and &lt;code&gt;Y&lt;/code&gt;=&lt;code&gt;known&lt;/code&gt;,&lt;code&gt;unknown&lt;/code&gt;. Further parameters and experiments are available via &lt;code&gt;run_experiments&lt;/code&gt;. See the source code for details.&lt;/p&gt;

&lt;p&gt;To run the data generation multi-threadeadly parallel to the algorithm, set the &lt;code&gt;JULIA_NUM_THREADS&lt;/code&gt; environment variable to a number larger than one.&lt;/p&gt;</subfield>
  </datafield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">arxiv</subfield>
    <subfield code="i">isDocumentedBy</subfield>
    <subfield code="a">arXiv:2002.03053</subfield>
  </datafield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">doi</subfield>
    <subfield code="i">isDocumentedBy</subfield>
    <subfield code="a">10.1007/s10851-020-01000-4</subfield>
  </datafield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">doi</subfield>
    <subfield code="i">isVersionOf</subfield>
    <subfield code="a">10.5281/zenodo.3659179</subfield>
  </datafield>
  <datafield tag="024" ind1=" " ind2=" ">
    <subfield code="a">10.5281/zenodo.3659180</subfield>
    <subfield code="2">doi</subfield>
  </datafield>
  <datafield tag="980" ind1=" " ind2=" ">
    <subfield code="a">software</subfield>
  </datafield>
</record>
351
20
views
downloads
All versions This version
Views 351351
Downloads 2020
Data volume 974.4 kB974.4 kB
Unique views 319319
Unique downloads 2020

Share

Cite as