Comments (4)
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.
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
from tokenfusion.
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.
if you load the chechpoint properly, you can get the right result.
from tokenfusion.
Related Issues (16)
- learned attention weight HOT 1
- No pytorch models (.pth) saved during training? HOT 5
- LN使ç¨
- Training error on single GPU HOT 2
- How long does it take to train the semantic_segmentation once?
- loss2d_class_error 100.0000 HOT 1
- checkpoint model architrcture HOT 1
- When applied for a new dataset, but an error appeared.
- While applied for a new dataset , an error below always appeared.
- While applied for a new dataset , an error below always appeared.
- Have you tried different mask threshold? HOT 8
- Proj from equation 6
- l1_lamda value for SUN RGBD HOT 4
- sunrgbd_pc_bbox_votes_50k_v1_train HOT 3
- Sunrgbd data preparation for semantic segmentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tokenfusion.