Comments (2)
The following explains how to create the custom dataset class, inheriting libs.datasets.base._BaseDataset
. The class has no content in _set_files()
and _load_data()
, where you need to instantiate them for your case.
deeplab-pytorch/libs/datasets/base.py
Lines 48 to 58 in 4219467
- Assuming a pair of image and label files is named with a unique ID, we then store all the IDs to a list
self.files
in_set_files()
. For instance,CocoStuff164k
extracts the IDs from image paths as follows.
deeplab-pytorch/libs/datasets/cocostuff.py
Lines 64 to 74 in 4219467
- Next, we implement
_load_data()
, which reads and returns a pair of image and label data from the givenindex
of the IDs. Again,CocoStuff164k
may help you.
deeplab-pytorch/libs/datasets/cocostuff.py
Lines 76 to 84 in 4219467
That's all. The custom dataset class can fetch and preprocess the data, as implemented in the super class.
deeplab-pytorch/libs/datasets/base.py
Lines 105 to 113 in 4219467
from deeplab-pytorch.
thank you very much for the detailed explaination.
from deeplab-pytorch.
Related Issues (20)
- only 20% mIou HOT 4
- The results of VOC2012 val dataset HOT 2
- cannot find setup_voc12.sh
- how to do the augmentation for training? HOT 2
- what do we mean by unary? HOT 2
- get_dataset HOT 2
- the pre-trained model HOT 2
- The training result is poor after using the weak supervision data set HOT 4
- How to convert the generated npy file into an image HOT 4
- A simple question about test on VOC HOT 1
- COCO number of classes HOT 4
- Question VOC HOT 1
- How to train on COCO2014 dataset HOT 1
- How to train on the coco-stuff datasets? HOT 1
- Training Deeplab-pytorch on VOC2012 raises metaclass conflict error with TensorFlow 1.10.0 and ANTLR downgrade to 4.8
- pascal voc2012 dataset HOT 1
- Big loss
- Extract Feature map HOT 2
- How to refer to your work? HOT 1
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 deeplab-pytorch.