Open pg2455 opened 6 years ago
Hi there,
From the error message it seems you are getting 'out of memory'. I'm not sure whether that's the reason of segfault.
My bad! Those are two different error messages. I get Segmentation Fault when I run this
import os, sys
sys.path.append( '%s/mvc_lib' % os.path.dirname(os.path.realpath(__file__)) )
from mvc_lib import MvcLib
api = MvcLib(['test.py', '-dev_id', 0, '-mem_size', 5000, '-num_env', 10, '-max_n', 20, '-batch_size', 64, '-n_step', 5])
And I get Out of memory when I run ./run_eval.sh
Hello, sorry for the late reply -- I didn't see the 'test.py', which file are you working with?
Basically this function will load the model with best validation error: https://github.com/Hanjun-Dai/graph_comb_opt/blob/master/code/s2v_mvc/evaluate.py#L14
You can also directly supply the model dump you want, and load the mode using: https://github.com/Hanjun-Dai/graph_comb_opt/blob/master/code/s2v_mvc/evaluate.py#L45
Great work! I have been trying to use the trained model. I figured that only a few of the arguments are needed to initialize MvcLib so I tried
api = MvcLib(['test.py', '-dev_id', 0, '-mem_size', 5000, '-num_env', 10, '-max_n', 20, '-batch_size', 64, '-n_step', 5])
to initiateapi
. However, it seems to be throwing a Segmentation Fault.On running the evaluation script -
./run_eval.sh
, its throwing this error:I have followed the instructions to build graphnn and maxcut/ and mvc builds. My training scripts worked and created a results folder with model_name.model files in there. I want to load a model and use it for my problem. Is it possible to have a convinient way to use the models?