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

How to load Adaface model if I only have pdparams? #2401

Open
angelabr opened this issue Mar 7, 2024 · 2 comments
Open

How to load Adaface model if I only have pdparams? #2401

angelabr opened this issue Mar 7, 2024 · 2 comments
Assignees

Comments

@angelabr
Copy link

angelabr commented Mar 7, 2024

Basically what the title says, I only have .pdparams and also a .yaml, but the tutorial shows that you meed both .pdiparams and .pdmodel for it to work. Any way to work just with .pdparams?

@juncaipeng
Copy link
Collaborator

You should use the pdparams files to export the inference model (pdmodel and pdiparams)

@angelabr
Copy link
Author

angelabr commented Mar 11, 2024

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.

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

2 participants