Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

memn2n_dialog Interactive mode error #155

Open
akshayvijapur opened this issue Apr 16, 2020 · 2 comments
Open

memn2n_dialog Interactive mode error #155

akshayvijapur opened this issue Apr 16, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@akshayvijapur
Copy link

I am trying out example provided in NLP Architect named "memn2n_dialogue".

I did train using command

python examples/memn2n_dialog/train_model.py --task 5 --weights_save_path memn2n_weights.npz

Saw some errors in training
Epoch 0: 100%|█████████████████████████████████████████████████████████████████████████████████| 576/576 [00:14<00:00, 38.76minibatches/s]
Epoch 0: Validation Error: 0.3751085069444444

Training took some time and following files are generated.

    checkpoint
    data/
    memn2n_weights.npz.data-00000-of-00001
    memn2n_weights.npz.index
    memn2n_weights.npz.meta

Then I tried to do interactive mode using command
python examples/memn2n_dialog/interactive.py --weights_save_path memn2n_weights.npz

But encountering following error.

"/home/avijapur/.local/lib/python3.6/site-packages/tensorflow_core/python/training/saver.py"

 tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file
 /home/avijapur/delete/nlparchitect/nlp-architect/exampleshts.npz.data-00000-of-00001: 
 Data loss: not an sstable   (bad magic number): perhaps your file is in a different file format 
 and you need torator?

python3.6 examples/memn2n_dialogue/interactive.py --weights_save_path m-of-00001

**Environment setup: **

  • OS (Linux/Mac OS): Linux
  • Python version:3.6
@akshayvijapur akshayvijapur added the bug Something isn't working label Apr 16, 2020
@walter-grace
Copy link

@akshayvijapur were you getting any errors training to train the model? I am having an issue with running python train_model.py --task 5 --weights_save_path saved_tf/ --test
from .babi_dialog import BABI_Dialog
ModuleNotFoundError: No module named 'main.babi_dialog'; 'main' is not a package

@akshayvijapur
Copy link
Author

Yeah i got that error, But resolved by correcting imports, Means remove dot (.) from imports and relative imports.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants