Use your own data, there is only one category, and this category can only be divided into two parts
See original GitHub issuetrain_partseg.py
if mydata==1:
seg_classes = {'Nut': [0, 1]}
else:
seg_classes = {'Earphone': [16, 17, 18], 'Motorbike': [30, 31, 32, 33, 34, 35], 'Rocket': [41, 42, 43], 'Car': [8, 9, 10, 11], 'Laptop': [28, 29], 'Cap': [6, 7], 'Skateboard': [44, 45, 46], 'Mug': [36, 37], 'Guitar': [19, 20, 21], 'Bag': [4, 5], 'Lamp': [24, 25, 26, 27], 'Table': [47, 48, 49], 'Airplane': [0, 1, 2, 3], 'Pistol': [38, 39, 40], 'Chair': [12, 13, 14, 15], 'Knife': [22, 23]}
if mydata == 1:
num_classes = 1
num_part = 2
else:
num_classes = 16
num_part = 50
ShapeNetDataLoader.py
if mydata == 1:
self.seg_classes = {'Nut': [0, 1]}
else:
#Mapping from category ('Chair') to a list of int [10,11,12,13] as segmentation labels
self.seg_classes = {'Earphone': [16, 17, 18], 'Motorbike': [30, 31, 32, 33, 34, 35], 'Rocket': [41, 42, 43],
'Car': [8, 9, 10, 11], 'Laptop': [28, 29], 'Cap': [6, 7], 'Skateboard': [44, 45, 46],
'Mug': [36, 37], 'Guitar': [19, 20, 21], 'Bag': [4, 5], 'Lamp': [24, 25, 26, 27],
'Table': [47, 48, 49], 'Airplane': [0, 1, 2, 3], 'Pistol': [38, 39, 40],
'Chair': [12, 13, 14, 15], 'Knife': [22, 23]}
pointnet2_part_seg_msg.py
if mydata == 1:
self.fp1 = PointNetFeaturePropagation(in_channel=128 + 1 + 6 + additional_channel, mlp=[128, 128])
else:
self.fp1 = PointNetFeaturePropagation(in_channel=150+additional_channel, mlp=[128, 128])
if mydata == 1:
cls_label_one_hot = cls_label.view(B,1,1).repeat(1,1,N)
else:
cls_label_one_hot = cls_label.view(B,16,1).repeat(1,1,N)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7
Top Results From Across the Web
4.2 Types of variables - Statistique Canada
Variables may be classified into two main categories: categorical and numeric. Each category is then classified in two subcategories: ...
Read more >Data classification methods—ArcGIS Pro | Documentation
The features are divided into classes whose boundaries are set where there are relatively big differences in the data values.
Read more >Content categories - HTML: HyperText Markup Language | MDN
Most HTML elements are a member of one or more content categories — these categories group elements that share common characteristics.
Read more >Categorical Data: Definition + [Examples, Variables & Analysis]
A categorical variable is a variable type with two or more categories. Sometimes called a discrete variable, it is mainly classified into two...
Read more >A Complete Guide to Stacked Bar Charts | Tutorial by Chartio
Stacked bar charts extend the standard bar chart by dividing each bar into multiple subcategories. Learn how to best use this chart type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

inference.py code
@yangninghua , am very grateful for your code contribution. however, I am a novice, if possible can you guide me in implementing the inference code? and can it also work for the classification as well?
thank you again and I hope you have the time to help