Code Monkey home page Code Monkey logo

Comments (6)

AndreaMarino94 avatar AndreaMarino94 commented on June 24, 2024 1

halo, i run test with set train_mode =False python src/dialogue_system/run/run.py --saved_model=path_to_your_model --train_mode=False but error is: ValueError: The passed save_path is not a valid checkpoint: ./../model/dqn/checkpoint/checkpoint_d4_agt1_dqn1/model_d4_agent1_dqn1_s0.619_r18.221_t4.266_wd0.0_e432.ckpt this checkpoint files is generate when train_mode =True so this miss file is generate in special paramater or just loss and not upload in git

you can take the saved_model path, from checkpoint.txt in "src\dialogue_system\model\dqn\checkpoint04"

from medicalchatbot.

LiuQL2 avatar LiuQL2 commented on June 24, 2024

There is a parameter in run.py, namely train_mode. Changing it to False for testing and the code will use the testing samples automatically. The printed results are the performances of the trained model evaluated on testing set.

python src/dialogue_system/run/run.py --saved_model=path_to_your_model --train_mode=False

from medicalchatbot.

ares5221 avatar ares5221 commented on June 24, 2024

halo, i run test with set train_mode =False
python src/dialogue_system/run/run.py --saved_model=path_to_your_model --train_mode=False
but error is:
ValueError: The passed save_path is not a valid checkpoint: ./../model/dqn/checkpoint/checkpoint_d4_agt1_dqn1/model_d4_agent1_dqn1_s0.619_r18.221_t4.266_wd0.0_e432.ckpt
this checkpoint files is generate when train_mode =True
so this miss file is generate in special paramater or just loss and not upload in git

from medicalchatbot.

ares5221 avatar ares5221 commented on June 24, 2024

halo, i run test with set train_mode =False
python src/dialogue_system/run/run.py --saved_model=path_to_your_model --train_mode=False
but error is:
ValueError: The passed save_path is not a valid checkpoint: ./../model/dqn/checkpoint/checkpoint_d4_agt1_dqn1/model_d4_agent1_dqn1_s0.619_r18.221_t4.266_wd0.0_e432.ckpt
this checkpoint files is generate when train_mode =True
so this miss file is generate in special paramater or just loss and not upload in git

i fix this question by rename the train checkpoint file by the require name model_d4_agent1_dqn1_s0.619_r18.221_t4.266_wd0.0_e432.ckpt
it works

from medicalchatbot.

ysgncss avatar ysgncss commented on June 24, 2024

当我x训练完成,测试时直接退出了程序:
`save/SaveV2/tensor_names: (Const): /job:localhost/replica:0/task:0/device:CPU:0
save/SaveV2/shape_and_slices: (Const): /job:localhost/replica:0/task:0/device:CPU:0
save/RestoreV2/tensor_names: (Const): /job:localhost/replica:0/task:0/device:CPU:0
save/RestoreV2/shape_and_slices: (Const): /job:localhost/replica:0/task:0/device:CPU:0
loading trained model

Process finished with exit code -1073741819 (0xC0000005)`

from medicalchatbot.

ysgncss avatar ysgncss commented on June 24, 2024

是因为缺少--dialogue_file参数的文件吗?我想复原整个对话流程应该怎么做

from medicalchatbot.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.