Code Monkey home page Code Monkey logo

Comments (4)

kaixin-bai avatar kaixin-bai commented on June 7, 2024 1

change python3 main.py --gpu 0 --resume ./pretrained_models/model-best.pth.tar --evaluate to python3 main.py --gpu 0 --backbone mit_b3 --resume ./pretrained_models/model-best.pth.tar --evaluate solve the evaluation problem, because the default backbone in main.py is mit_b0

from tokenfusion.

kaixin-bai avatar kaixin-bai commented on June 7, 2024

After commenting out the part of the PyTorch source code that checks for unexpected keys when loading the checkpoint, I was able to proceed with inference normally. However, the inference results were very poor. The pre-trained model used was provided in the README.

img = make_validation_img(inputs[0].data.cpu().numpy(),  # color image
                          inputs[1].data.cpu().numpy(),   # depth image
                          sample['mask'].data.cpu().numpy(),  # ground truth mask
                          output[np.newaxis,:])   # predicted semantic mask

validate_1

from tokenfusion.

kaixin-bai avatar kaixin-bai commented on June 7, 2024

change the code to v.load_state_dict(ckpt[k], strict=False) can solve the "unexpected keys" problems.

But the evaluation result is quite bad:

Epoch 0    (rgb)     glob_acc=11.14    mean_acc=5.10     IoU=1.81             (best)
Epoch 0    (depth)   glob_acc=9.72     mean_acc=3.85     IoU=1.39         
Epoch 0    (ens)     glob_acc=14.35    mean_acc=4.81     IoU=1.86             (best)

from tokenfusion.

Norooa avatar Norooa commented on June 7, 2024

image
if you load the chechpoint properly, you can get the right result.

from tokenfusion.

Related Issues (16)

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.