Giter Site home page Giter Site logo

youngxiao13 / posecontrast Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 4.0 17.03 MB

(3DV 2021 oral) PyTorch implementation of paper "PoseContrast: Class-Agnostic Object Viewpoint Estimation in the Wild with Pose-Aware Contrastive Learning"

License: MIT License

Python 95.21% Shell 4.79%

posecontrast's Introduction

๐Ÿ‘‹ Hi, Iโ€™m @YoungXIAO13

posecontrast's People

Contributors

youngxiao13 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

posecontrast's Issues

Pretrained models

Hi,
Nice work :)
Could you please share a pretrained Pascal3D model?

Thanks!

Error during training on the Pascal3D

Hi,

Great work! I can run the test code using the pretrained model on Pix3D dataset. However, there is one error of "ValueError: Coordinate 'right' is less than 'left'" when I train the model on the Pascal3D dataset. Details can be found below:

Traceback (most recent call last):
File "xx/PoseContrast/src/train.py", line 216, in
train_loss, train_acc = train(logger, train_loader, net_feat, net_vp, optimizer_feat, optimizer_vp)
File "xx/PoseContrast/src/train.py", line 142, in train
for i, data in enumerate(data_loader):
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 681, in next
data = self._next_data()
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1376, in _next_data
return self._process_data(data)
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1402, in _process_data
data.reraise()
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/_utils.py", line 461, in reraise
raise exception
ValueError: Caught ValueError in DataLoader worker process 1.
Original Traceback (most recent call last):
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "xx/PoseContrast/src/dataset/vp_data.py", line 138, in getitem
im = random_crop(im, left, upper, right - left, lower - upper)
File "xx/PoseContrast/src/dataset/data_utils.py", line 63, in random_crop
im_crop = im.crop((left, upper, right, lower))
File "xx/anaconda3/envs/PoseContrast/lib/python3.10/site-packages/PIL/Image.py", line 1171, in crop
raise ValueError("Coordinate 'right' is less than 'left'")
ValueError: Coordinate 'right' is less than 'left'

I tried to debug this issue and found that there are few annotations larger than the image size. One sample can be found below:

bug

May I get your help to fix this issue? Thanks!

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.