fredzzhang / pvic

[ICCV'23] Official PyTorch implementation for paper "Exploring Predicate Visual Context in Detecting Human-Object Interactions"
BSD 3-Clause "New" or "Revised" License
67 stars 8 forks source link

What's the module "upt" in inference.py? #32

Closed musicBoxes closed 1 year ago

musicBoxes commented 1 year ago

I try to run the inference.py to to test the model and get error ModuleNotFoundError: No module named 'upt'. After running pip install upt and executing the inference.py again, the program prints error: ImportError: cannot import name 'build_detector' from 'upt' (/opt/conda/envs/pvic/lib/python3.8/site-packages/upt/__init__.py).

I think I misunderstand the source of upt. And I find a UPT model from UPT: Unary–Pairwise Transformers. Is this source right? If so, how to combine it with your project?

fredzzhang commented 1 year ago

Hi @musicBoxes,

I have been a bit busy lately, and have not cleaned up the code for this work. I will most likely wrap it up by the end of the month. In the meantime, I think you could just change the name of the module to pvic and it should work.

Fred.

fredzzhang commented 1 year ago

Hi @musicBoxes,

The codebase for inference and visualisation has now been updated.

Cheers, Fred.