Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems exporting model #215

Open
angelabr opened this issue Mar 11, 2024 · 0 comments
Open

Problems exporting model #215

angelabr opened this issue Mar 11, 2024 · 0 comments

Comments

@angelabr
Copy link

I'm trying to do:

export PADDLE_NNODES=1
export PADDLE_MASTER="127.0.0.1:12538"
export CUDA_VISIBLE_DEVICES=0
python -m paddle.distributed.launch \
    --nnodes=$PADDLE_NNODES \
    --master=$PADDLE_MASTER \
    --devices=$CUDA_VISIBLE_DEVICES \
    plsc-export \
    -c ./configs/IResNet100_WebFace42M_CosFace_pfc02_1n8c_dp_mp_fp16o1.yaml \
    -o Global.pretrained_model=/home/angela/Descargas/IResNet100_WebFace42M_CosFace_pfc02_1n8c_dp_mp_fp16o1 \
    -o FP16.level=O0 \
    -o Model.data_format=NCHW

and I get this error:

LAUNCH INFO 2024-03-11 12:29:45,551 ------------------------- ERROR LOG DETAIL -------------------------
Traceback (most recent call last):
  File "/home/angela/Descargas/PLSC-master/ven/bin/plsc-export", line 26, in <module>
    sys.exit(main())
  File "/home/angela/Descargas/PLSC-master/ven/bin/plsc-export", line 19, in main
    engine = Engine(config, mode="export")
  File "/home/angela/Descargas/PLSC-master/ven/lib/python3.7/site-packages/plsc/engine/engine.py", line 98, in __init__
    paddle.set_flags(RELATED_FLAGS_SETTING)
  File "/home/angela/Descargas/PLSC-master/ven/lib/python3.7/site-packages/paddle/fluid/framework.py", line 7493, in set_flags
    "Flag %s cannot set its value through this function." % (key)
ValueError: Flag FLAGS_cudnn_exhaustive_search cannot set its value through this function.

Could someone point me in the right direction? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant