Comments (9)
Fixed in a3c66b4
from scannet.
When I run this script, I met the following error:
File "evaluate_semantic_instance.py", line 252, in assign_instances_for_scan
gt_ids = util_3d.load_ids(gt_file)
File "/home/liang/ScanNet/BenchmarkScripts/util_3d.py", line 41, in load_ids
ids = np.array(ids, dtype=np.int64)
ValueError: invalid literal for int() with base 10: 'pred_mask/scene0086_00_1.txt 19 1.000000'
The gt_file should be a file like this format:
pred_mask/scene0086_00_1.txt 19 1.000000
So why can it be the input of "load_ids" function?
As charlesq34 said, gt_ids should be label_id*1000+inst_id.
The ground truth of instance task is generated by export_train_mesh_for_evaluation.py
from scannet.
I do not understand why gt_ids == label_id*1000+inst_id. I do not find the function to define this.
from scannet.
So maybe I understand. I misunderstood the format of gt_file.
gt_file should be a txt with one integer each line. And The integer should be equal to label_id*1000+inst_id.
Do I understand rightly? So if we want to evaluate, we need to generate the gt_file by ourselves?
from scannet.
@LZDSJTU right. the format of the GT file for instance segmentation is different from the PREDICTION files. You have to generate the GT files by yourself.
from scannet.
@LZDSJTU right. the format of the GT file for instance segmentation is different from the PREDICTION files. You have to generate the GT files by yourself.
Yep, and I have generated the GT file by myself. But I have a question that how you know that gt_file should be like "label_id*1000+inst_id". I do not find this in the scannet scripts.
Is this your guess according to the evaluate scripts?
from scannet.
@LZDSJTU you can see in the evaluation script the GT_FILE is loaded by the load_ids
function and then fed into util_3d.get_instances
which then calls the Instance
class initialization which assumes the id to be label_id*1000+inst_id.
ScanNet/BenchmarkScripts/util_3d.py
Line 97 in 981e988
from scannet.
Hello, I use this command to generate the instance gt-file "python export_train_mesh_for_evaluation.py --scan_path /home/data/scannetv2/scans/scene0000_00 --output_file /home/data/scannetv2/output.txt --label_map_file /home/data/scannetv2/scannetv2-labels.combined.tsv --type instance",
and I get the gt file like this:
pred_mask/output_1.txt 9 1.000000
pred_mask/output_2.txt 9 1.000000
pred_mask/output_3.txt 7 1.000000
pred_mask/output_4.txt 12 1.000000
pred_mask/output_5.txt 38 1.000000
pred_mask/output_6.txt 16 1.000000
pred_mask/output_7.txt 16 1.000000
pred_mask/output_8.txt 14 1.000000
pred_mask/output_9.txt 3 1.000000
I am not sure whether this is correct, waiting for your reply
from scannet.
@LZDSJTU hello, the gt file should be gt_ids == label_id*1000+inst_id, what does the label_id and ins_id mean? As you mentioned above, gt_file should be a txt with one integer each line, but the ins gt file I generate like "pred_mask/output_1.txt 9 1.000000", can you tell me how to generate instance ground truth file? I really hope to get your help! thanks!
from scannet.
Related Issues (20)
- Getting a 404 error when browsing scans
- 想问一下,为什么测试结果的网站打不开了? HOT 1
- When a predicted instance intersecting with ignored category such as wall and floor(e.g. labels==1 or 2), why should add the num_ignore to increase the proportion_ignore and avoid the FP(false positive). In my opinion, this will cause FP to be inaccurate. Thank you, could you please help me to understand this?
- Does the scannet allowed to instance segementation
- Dataset download server down HOT 1
- .sens decode error HOT 3
- The v1 version cannot be downloaded.
- Why the extracted files are much smaller than the *.sens file?
- exported PNG file is not recognized HOT 1
- Is mini sample dataset available for study?
- Download error HOT 2
- Data download speed extremely slow HOT 1
- Can you provide a small dataset for training demo? thx.
- no color HOT 2
- intrinsic of scannet
- UnicodeDecodeError while downloading Scannet dataset
- Query Regarding Availability of 2D <-> 3D Correspondence Files
- Upload ScanNet Semantic segmentation failed. HOT 1
- Could you share the code to generate 2d-instance.zip
- Keep getting Bad gateway error while downloading every few scenes
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 scannet.