Comments (4)
@tanveer6715 Add a condition:
if self.mode == 'train_u':
mask = Image.fromarray(np.zeros((img.size[1], img.size[0]), dtype=np.uint8))
else:
mask = Image.fromarray(np.array(Image.open(os.path.join(self.root, id.split(' ')[1]))))
from unimatch.
We do not use manual annotations of unlabeled images for training. The masks of unlabeled images are used to record padded regions during image pre-processing.
If you do not have masks, you can simply duplicate the image paths in each line of split file, for example:
path/of/image1.jpg path/of/image1.jpg
Then you need to modify this line:
Line 35 in a5d2a52
mask = Image.fromarray(np.zeros((img.size[1], img.size[0]), dtype=np.uint8))
from unimatch.
thanks for the clarification!
from unimatch.
We do not use manual annotations of unlabeled images for training. The masks of unlabeled images are used to record padded regions during image pre-processing.
If you do not have masks, you can simply duplicate the image paths in each line of split file, for example:
path/of/image1.jpg path/of/image1.jpg
Then you need to modify this line:
Line 35 in a5d2a52
to:
mask = Image.fromarray(np.zeros((img.size[1], img.size[0]), dtype=np.uint8))
Hi,
This process the data in the training when we do not want to use labels in the unlabeled data split but in the validation step after each epoch the model shows 0 miou as it do not use masks in the validation step as well to compare the predictions. How to tackle this problem?
from unimatch.
Related Issues (20)
- 关于医学图像分割场景下的结果 HOT 4
- Image-level Perturbations in LEVIR HOT 1
- Pascal Voc 数据集的checkpoint HOT 19
- 关于特征空间扰动 HOT 4
- 关于第四页的Algorithm 1 HOT 2
- Question about the batch size
- Reproducability of PASCAL VOC HQ dataset results HOT 4
- 关于在Transformer系列模型使用 HOT 2
- Can't find Resnet 101
- How much memory its necessary? HOT 1
- 轻量级backbone及训练问题 HOT 1
- Question about crop size HOT 2
- 关于sliding_window HOT 1
- 复现训练代码
- 256×256的分辨率需要多少的GPU运行内存 HOT 1
- 评估和可视化代码 HOT 2
- color_map function in the utils.py file HOT 1
- Minor Typo HOT 1
- 关于自己数据集的问题 HOT 2
- 关于您该项目的实验 HOT 3
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 unimatch.