Coder Social home page Coder Social logo

zyayoung / iter-deformable-detr Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 6.0 260 KB

[CVPR2022] "Progressive End-to-End Object Detection in Crowded Scenes" on Deformable-DETR.

Python 84.87% Shell 1.12% C++ 1.11% Cuda 11.78% Cython 1.12%
crowdhuman cvpr2022 object-detection pedestrian-detection

iter-deformable-detr's People

Contributors

zyayoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iter-deformable-detr's Issues

Swin-L pretrained backbone is broken

Dear author,

Could you release the pretrained SwinL again?, looks like the uploaded file is broken, I couldn't open it using any zip editor, and as a result, the code isn't working with this backbone ...

NoneType' object is not subscriptable

when running your code on kaggle server this error appears to me

File "/kaggle/input/iter302/Iter-Deformable-DETR-main/detr/deformable_transformer.py", line 395, in forward
pred_boxes = self.bbox_embedlid + inverse_sigmoid(reference_points)
TypeError: 'NoneType' object is not subscriptable

In your code, you initialize bbox_embed as:
self.bbox_embed = None
self.class_embed = None

then in the forward pass to try to subscripe it.

when running your code on my own laptop with RTX2060 GPU, this error appears

assert (input_spatial_shapes[:, 0] * input_spatial_shapes[:, 1]).sum() == Len_in

RuntimeError: CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

it doesn't work for me

What versions of pytorch and python do you use?

I use the newest code, but when I evaluate it directly, I got the error:

  0%|                                                                                                                                                                                      | 0/4370 [00:00<?, ?it/s]loading annotations into memory...
Done (t=0.40s)
creating index...
index created!
Process Process-1:
Traceback (most recent call last):
  File "/home/sipl/anaconda3/envs/e2edet_new/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/sipl/anaconda3/envs/e2edet_new/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "testing.py", line 166, in processor
    checkpoint = torch.load(model_file, map_location='cpu')
  File "/home/sipl/anaconda3/envs/e2edet_new/lib/python3.8/site-packages/torch/serialization.py", line 587, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
  File "/home/sipl/anaconda3/envs/e2edet_new/lib/python3.8/site-packages/torch/serialization.py", line 242, in __init__
    super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory

Could you tell me how to solve it?

Thank you!!

assert self._width is not None and self._height is not None

Hello, thank you very much for your work. I first trained for 2 epochs, then started the test, and the result reported an error:

loading annotations into memory...
Done (t=0.32s)
creating index...
index created!
saved                                                                                                                                                                                                              
Traceback (most recent call last):
  File "demo_opt.py", line 472, in <module>
    eval_results = _evaluate_predictions_on_crowdhuman(gt_path, fpath)
  File "demo_opt.py", line 448, in _evaluate_predictions_on_crowdhuman
    database = Database(gt_path, dt_path, target_key, None, mode)
  File "demo_opt.py", line 312, in __init__
    self.loadData(dtpath, body_key, head_key, if_gt=False)
  File "demo_opt.py", line 331, in loadData
    self.images[record["ID"]].clip_all_boader()
  File "demo_opt.py", line 195, in clip_all_boader
    assert self._width is not None and self._height is not None
AssertionError

I followed the instructions completely, but why did it report an error?

Width and height in clip_all_boader are always NONE

Thank you so much for your incredible works,

I'm trying to evaluate your code using this command: bash exps/aps_test.sh 49 and encountering this issue, the height and width values don't exist in the "record" loaded by the output of testing.py, in specific, the epoch049.human file. As a result, these lines of code will return None:
if "width" in record and self._width is None: self._width = record["width"]
if "height" in record and self._height is None: self._height = record["height"]

And in the clip_all_boarder will face this error:
assert self._width is not None and self._height is not None

Do you have any idea to overcome this issue?

Dataset configuration question

The format of crowdhuman data is known as the odgt format.
Are you using the crowdhuman data format converted to coco format?

and Do I have to input both coco format json(train,eval) and odgt format json(train,eval) into config.py?
If so, how do I convert odgt to other custom data that is not in odgt format?

Inference with a custom image

Hi,

Do you have any plan to release the inference code supporting custom images rather than benchmarking with predefined datasets?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.