Skip to content

Error when running bin/logo.py #94

@Dragon-hxl

Description

@Dragon-hxl

Thank you for providing nice implementation . I meet a problem when I try to reproduce the results of the paper https://arxiv.org/abs/2106.11053 (LAPS). I clone the code from branch icml_2021_supplement ,download the data from Zenodo and follow the steps in the README.md.I successfully reproduce best results mensioned in the paper in String Editing Domain and Scene Reasoning Domain.

But when I run the command in README.md :

python3.7 bin/logo.py --enumerationTimeout 1800 --testingTimeout 1800 --taskBatchSize 40 --iterations 12 --testEvery 3 --recognitionTimeout 1800 --taskDataset logo_unlimited_200 --languageDataset logo_unlimited_200/synthetic --synchronous_grammar --smt_pseudoalignments 0.1 --language_compression --lc_score 0.2 --max_compression 5 --biasOptimal --contextual  --no-cuda --recognition_0 --recognition_1 examples language --Helmholtz 0.5 --synchronous_grammar  --language_encoder recurrent  --sample_n_supervised 0 --moses_dir ./moses_compiled --smt_phrase_length 1 --language_compression  --max_compression 5 --om_original_ordering 1 

to reproduce the result in Graphics Programs domain. I met an error like this:

Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1741.051407.
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1739.492934.
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1739.375270.
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1739.449427.
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1738.488185.
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1738.888075.
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1738.659893.
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
(python) Launching turtle -> turtle (1 tasks) w/ 2 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1727.667628.
Limiting virtual memory to: 1000000000
        (ocaml: 2 CPUs. shatter: 10. |fringe| = 14. |finished| = 0.)
Fatal error: out of memory.
Uncaught exception:

  End_of_file

Raised by primitive operation at file "marshal.ml" (inlined), line 43, characters 0-60
Called from file "parallel.ml", line 159, characters 40-65
Called from file "list.ml" (inlined), line 100, characters 12-15
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "parallel.ml", line 156, characters 4-406
Called from file "enumeration.ml", line 443, characters 25-78
Called from file "task.ml", line 450, characters 8-1023
Called from file "solver.ml", line 143, characters 4-175
Limiting virtual memory to: 1000000000
(python) Launching turtle -> turtle (1 tasks) w/ 7 CPUs. 19.500000 <= MDL < 21.000000. Timeout 1705.169628.
        (ocaml: 7 CPUs. shatter: 35. |fringe| = 44. |finished| = 0.)
Fatal error: out of memory.
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 1 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1701.890515.
        (ocaml: 1 CPUs. shatter: 1. |fringe| = 1. |finished| = 0.)
Fatal error: out of memory.
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 1 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1701.785136.
Fatal error: out of memory.
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 1 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1701.368294.
        (ocaml: 1 CPUs. shatter: 1. |fringe| = 1. |finished| = 0.)
        (ocaml: 1 CPUs. shatter: 1. |fringe| = 1. |finished| = 0.)
Fatal error: out of memory.
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 1 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1699.892782.
Fatal error: out of memory.
Fatal error: out of memory.
Uncaught exception:

  End_of_file

Raised by primitive operation at file "marshal.ml" (inlined), line 43, characters 0-60
Called from file "parallel.ml", line 159, characters 40-65
Called from file "list.ml" (inlined), line 100, characters 12-15
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "parallel.ml", line 156, characters 4-406
Called from file "enumeration.ml", line 443, characters 25-78
Called from file "task.ml", line 450, characters 8-1023
Called from file "solver.ml", line 143, characters 4-175
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 1 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1700.057261.
        (ocaml: 1 CPUs. shatter: 1. |fringe| = 1. |finished| = 0.)
        (ocaml: 1 CPUs. shatter: 1. |fringe| = 1. |finished| = 0.)
Fatal error: out of memory.
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 1 CPUs. 18.000000 <= MDL < 19.500000. Timeout 1699.919255.
        (ocaml: 1 CPUs. shatter: 1. |fringe| = 1. |finished| = 0.)
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
(python) Launching turtle -> turtle (1 tasks) w/ 4 CPUs. 19.500000 <= MDL < 21.000000. Timeout 1698.719185.
        (ocaml: 4 CPUs. shatter: 20. |fringe| = 22. |finished| = 0.)
Fatal error: out of memory.
Uncaught exception:

  End_of_file

Raised by primitive operation at file "marshal.ml" (inlined), line 43, characters 0-60
Called from file "parallel.ml", line 159, characters 40-65
Called from file "list.ml" (inlined), line 100, characters 12-15
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "parallel.ml", line 156, characters 4-406
Called from file "enumeration.ml", line 443, characters 25-78
Called from file "task.ml", line 450, characters 8-1023
Called from file "solver.ml", line 143, characters 4-175
Fatal error: out of memory.
Limiting virtual memory to: 1000000000
response: b''
error: None
ERROR in enumeration, returning empty frontiers for this batch of tasks.
...

And the result I got(about 30% test solved) is much lower than the paper.

The error doesn't appear in String Editing Domain and Scene Reasoning Domain.

I try to rebuild the Ocaml Binary and generate the compositional graphics datasets from scratch,but it doesn't help. I know the exception End_of_file is raised by marshal because chan is already at the end of the file but I can't find a solution.

Do you have any idea about this error?

I use:

CentOS Linux release 7.8.2003

python 3.7.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions