Code Monkey home page Code Monkey logo

Comments (12)

hsfzxjy avatar hsfzxjy commented on July 17, 2024

@ShiMinghao0208 Hi. Seems that you are using HRNet-W48 as backbone model, but trying to load pretrained weights of HRNet-W32.

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

@ShiMinghao0208 Hi. Seems that you are using HRNet-W48 as backbone model, but trying to load pretrained weights of HRNet-W32.

Oh,I think one model can use several different pre-training models. I change the HRNet-W48 pretrained model, it does work. Very thank u.

from openseg.pytorch.

hsfzxjy avatar hsfzxjy commented on July 17, 2024

They have different structure and thus the weights could not be shared.

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

They have different structure and thus the weights could not be shared.

ok,thanks. I will try other model,too. I am very sorry to bother u.

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

They have different structure and thus the weights could not be shared.

I want to try to use script val 1 after my training process,but I get a error about file dir error. The training process is normal,and I check my DATA_ROOT, I dont know why I get this error

from openseg.pytorch.

hsfzxjy avatar hsfzxjy commented on July 17, 2024

They have different structure and thus the weights could not be shared.

I want to try to use script val 1 after my training process,but I get a error about file dir error. The training process is normal,and I check my DATA_ROOT, I dont know why I get this error

Could you share the training log? So that we could help figure out the problem.

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

They have different structure and thus the weights could not be shared.

I want to try to use script val 1 after my training process,but I get a error about file dir error. The training process is normal,and I check my DATA_ROOT, I dont know why I get this error

Could you share the training log? So that we could help figure out the problem.

They have different structure and thus the weights could not be shared.

I want to try to use script val 1 after my training process,but I get a error about file dir error. The training process is normal,and I check my DATA_ROOT, I dont know why I get this error

Could you share the training log? So that we could help figure out the problem.

OK, thank u very much. I upload the screenshot about my log and question in the issue.Does that help solve the problem?

from openseg.pytorch.

hsfzxjy avatar hsfzxjy commented on July 17, 2024

Could you provide the script file (the .sh file) you are using? You may upload the file by attaching it to a comment. I guess there should be some mistakes in the validation command.

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

json_log_sh.zip

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

Could you provide the script file (the .sh file) you are using? You may upload the file by attaching it to a comment. I guess there should be some mistakes in the validation command.

OK, I upload the zip of my file(sh, json and so on).

from openseg.pytorch.

hsfzxjy avatar hsfzxjy commented on July 17, 2024

Hi. You should add extra arguments --data_dir ${DATA_DIR} to the command, i.e., change it into:

${PYTHON} -u main.py --configs ${CONFIGS} --drop_last y \
                       --backbone ${BACKBONE} --model_name ${MODEL_NAME} --checkpoints_name ${CHECKPOINTS_NAME} \
                       --phase test --gpu 0 1 2 --resume ./checkpoints/BDCI/${CHECKPOINTS_NAME}_latest.pth \
                       --loss_type ${LOSS_TYPE} --test_dir ${DATA_DIR}/val/image \
                       --out_dir ${SAVE_DIR}${CHECKPOINTS_NAME}_val \
                       --data_dir ${DATA_DIR}

from openseg.pytorch.

ShiMinghao0208 avatar ShiMinghao0208 commented on July 17, 2024

Hi. You should add extra arguments --data_dir ${DATA_DIR} to the command, i.e., change it into:

${PYTHON} -u main.py --configs ${CONFIGS} --drop_last y \
                       --backbone ${BACKBONE} --model_name ${MODEL_NAME} --checkpoints_name ${CHECKPOINTS_NAME} \
                       --phase test --gpu 0 1 2 --resume ./checkpoints/BDCI/${CHECKPOINTS_NAME}_latest.pth \
                       --loss_type ${LOSS_TYPE} --test_dir ${DATA_DIR}/val/image \
                       --out_dir ${SAVE_DIR}${CHECKPOINTS_NAME}_val \
                       --data_dir ${DATA_DIR}

OK,thanks very much. I will try it

from openseg.pytorch.

Related Issues (20)

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.