arunirc / detectron-self-train Goto Github PK
View Code? Open in Web Editor NEWA PyTorch Detectron codebase for domain adaptation of object detectors.
License: MIT License
A PyTorch Detectron codebase for domain adaptation of object detectors.
License: MIT License
Hi,
As far as I understand, the evaluation is done on the fly you run the detection.
That means we can not run a different model from another source (i.e. tensorflow).
Can you provide the evaluation script that is able to evaluate the box prediction only?
For example, I have a separate tensorflow model that output the 'bbox_bdd_peds_val_results.json'
And I want to evaluate this result file on the ground truth 'bdd_peds_val.json'.
That means I do not have to run your detection script.
It just like: evaluate.py --gt bdd_peds_val.json --pred bbox_bdd_peds_val_results.json
Thank you
Hi,
As I have checked in the bdd_peds_train.json and bdd_peds_val.json, there are a lot of images without bounding boxes annotation. How do you train/ evaluate your model for this case.
For example, in the training file only 4428/12477 images have bboxes annotation, and in the validation there are 628/1764.
Thank a lot
Hi, Automatic adaptation of object detectors to new domains using self-training is a nice work, but when I run gypsum/scripts/demo/hp_cons_demo.sh
use bdd_HP-cons_model_step29999.pth.pth
and occur
Traceback (most recent call last):
File "tools/infer_demo.py", line 35, in <module>
import nn as mynn
File "/content/detectron-self-train/lib/nn/__init__.py", line 2, in <module>
from .parallel import DataParallel
File "/content/detectron-self-train/lib/nn/parallel/__init__.py", line 3, in <module>
from .data_parallel import DataParallel, data_parallel
File "/content/detectron-self-train/lib/nn/parallel/data_parallel.py", line 4, in <module>
from .scatter_gather import scatter_kwargs, gather
File "/content/detectron-self-train/lib/nn/parallel/scatter_gather.py", line 8, in <module>
from torch.utils.data.dataloader import numpy_type_map
ImportError: cannot import name numpy_type_map
and it does not seem to support torch >= 1.1.0
and I also find some issues.
detectron2 supports pytorch 1.3.0 and above, and cuda 10.1 only supports pytorch 1.4 and above.
Is it possible to move to detectron2?
Thanks
First of all, Thank you for provide your code.
I followed https://github.com/AruniRC/detectron-self-train/blob/master/INSTALL.md for Installation.
But i met problem at "Compile Detectron-pytorch"
cd lib # please change to this directory
sh make.sh
Currently, i am using Window10, so i cannot access sh make.sh.
Could you suggest solution of this problem?
When I try to train the model, I cannot find the file "/mnt/nfs/scratch1/pchakrabarty/bdd_recs/ped_models/bdd_peds.pth" to initialize the model. Could you let me know what it is and where to download it.
The repository https://github.com/AruniRC/Detectron-pytorch-video.git mentioned in https://github.com/AruniRC/detectron-self-train/blob/master/INSTALL.md is broken. Kindly check it.
Hello,
I want to train DA Faster R-CNN as in your instruction: bdd_source_and_HP18k_domain_im.sh
But I don't know how to create bdd_peds_HP18k_target_domain dataset.
Could you please show me how to create this dataset?
Thank you
Hi,
I am a little bit confused about your json data converting.
bdd100k
image['width'] = 720
image['height'] = 1280
Wider
image['width'] = im.height
image['height'] = im.width
It seems that you have swapped the height and width of the image.
What does it mean here?
Does it affect the training and testing of the model?
Hi
I think the the bdd_peds+DETS18k means using bboxes from the source dataset (bdd_peds) and the pseudo labels generated by the baseline detection model for target dataset. Could you let me know how to generate the pseudos labels for this part? Do you run the baseline model on all the training sample in the target dataset and filter ~100000 images?
Thanks for great sources.
I want to try to implement this with my own dataset, so I'd like to ask you guys which settings or configuration I should change.
What I am thinking of are, config file and dataset path (annotated in Pascal VOC ideally).
Is there any other things that I should take care of?
Thank you.
Hello.
I have been impressed with your research.
I would like to test your output with caffe2, but I want to know if it is possible.
Thank you :)
Hi,
After pseudo-labels of unlabeled target images are generated, you re-train the baseline source model jointly on the combined set of source and target images. However, the source images might not always be available. Did you try re-training on pseudo-labeled target images only? What is the expected performance?
Thanks for you code!
I found the "width" and "height" in json are 720 and 1280.
However, the image size is 1280 (width) x 720 (height).
Is there anything wrong in json?
thanks
Where do you download JANUS Challenge Set 6 (CS6) dataset?
Will you open the source code for hard samples mining?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.