Comments (11)
ok so I managed to run it on my own images but I have some large staircase type of effects, not sure why? is it due to the pre-trained models which has run on low res images and consequently if I run on high resolution images some interpolation is done to upscale the segmentation? Do I need to tweak the code to get better results or this is a model limitation ? (the below is a person standing and his legs do not have such a staircase profil)
from ademxapp.
Hi, Tetsujinfr. Thanks for your share. May I ask how I can get a segmented image on my own image like the picture you posted?
from ademxapp.
from ademxapp.
Hi sure. Let me post the bits and pieces I did modify later today (can not right now). Warning: this is a quick and dirty hack of the code bit it works to test on new data. Will post the code and and an example of th command line.
from ademxapp.
Thanks a lot.
from ademxapp.
ok, I attach the modified file data.py and the modified voc.py (voctets.py here). Basically I de-acivated the part which is doing the validation scoring in the voc file. So put your images into a folder, say ademxapp/myInputImages, then go into this folcer and do a "ls *.jpg
myInputImages.lst" to generate the file containing the images inventory to process. Then call voctets.py as sudo with --data-root /myInputImages and it should work.
An example:
python issegm/tetsvoc.py --data-root data/myPNGImages --output outputTets --phase val --weights models/voc_rna-a1_cls21_s8_ep-0001.params --split val --test-scales 720 --test-flipping --gpus 0
(I did attach the py files as .txt so that I can attach them but please remove the .txt extension)
Hope it helps.
I did run the model over a few video, have a look at my youtube channel, I will post some results soon:
https://www.youtube.com/channel/UCZUuytmk4SbmKVDgqhq24Kw
Some hint:
Tets
from ademxapp.
Thanks for your share. Great help.
from ademxapp.
I will close this issue in the next couple days if no more question.
from ademxapp.
Hi Testsujinfr,
thanks for your instructions. Did you finally find out why there is this "staircase effect" ?
Thank you
from ademxapp.
Not fully although I suspect it is due to the resolution of the training dataset of the model, which I think take 224x224 pixel input images. So ultimately for large hi res image, the model is going to interpolate somehow, and it seems it is doing that is a squarry way as a default. I did not dig it further. I liked this project, one of the best results I have seen on segmentation so far, but I am not an expert in the field.
from ademxapp.
Although the issue has been closed, if you want to train/test the network with a personal dataset, please edit the "train.lst/val.lst" in the "issegm/data/voc/" and replace the images in the "data/VOCdevkit/VOC2012/JPEGImages" and "data/VOCdevkit/VOC2012/SegmentationClass" with yours.
.
from ademxapp.
Related Issues (20)
- Errors in full image test on cityscapes val dataset HOT 2
- Scale rates of multiscale test in cityscapes HOT 2
- Simple_bind error HOT 3
- Pretrained models for cityscape needed HOT 3
- Training command required to train semantic segmentation on cityscape dataset...
- How can I train a model with 2 classes?
- Training script for semantic segmentation VOC2012 HOT 1
- how to get coco20 png annotations
- Only got 76.90% over Pascal VOC2012 val set HOT 5
- What's the difference of the model a2 and a
- Experimental setting for training ADE20K?
- MxNet, Python, CUDA, CUDNN versions HOT 2
- multi-steps testing~
- Where to get pretrained city scape model (cityscapes_rna-a1_cls19_s8_ep-0001.params)? HOT 4
- The parameter for training VOC 2012 dataset
- pre-trained model in ade20k HOT 1
- Training on VOC from Scratch HOT 2
- the predicted image is all black using trained model on VOC
- pre-training files for resnet38? 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 ademxapp.