Open Sunsundayz1 opened 9 months ago
To address the issue, could you please organize the files and folders under bottom-up-attention.pytorch
by placing them under the visual_feature_extraction
?
This will result in a folder structure, as illustrated below:
|─ visual_feature_extraction
|── FasterRCNN
|── detectron2
|── evaluation
|── extract.py
...
Thank you for your cooperation. If you encounter any further challenges or have additional questions, feel free to let us know.
Ok,i put them under my dir But the detectron2 library is a bit wrong, whether it's because the version is wrong
from detectron2.structures import BoxMode
File "/home/zzj/code/gvcci/GVCCI-main/visual_feature_extraction/detectron2/structures/__init__.py", line 6, in <module>
from .keypoints import Keypoints, heatmaps_to_keypoints
File "/home/zzj/code/gvcci/GVCCI-main/visual_feature_extraction/detectron2/structures/keypoints.py", line 6, in <module>
from detectron2.layers import interpolate
File "/home/zzj/code/gvcci/GVCCI-main/visual_feature_extraction/detectron2/layers/__init__.py", line 3, in <module>
from .deform_conv import DeformConv, ModulatedDeformConv
File "/home/zzj/code/gvcci/GVCCI-main/visual_feature_extraction/detectron2/layers/deform_conv.py", line 10, in <module>
from detectron2 import _C
ImportError: cannot import name '_C' from 'detectron2' (/home/zzj/code/gvcci/GVCCI-main/visual_feature_extraction/detectron2/__init__.py)
Following the original repo, there was nothing wrong for me.
Would you try again with the shared directory?
when i run:
OMP_NUM_THREADS=4 CUDA_VISIBLE_DEVICES=0,1,2,3 python extract.py --load_dir ./output_caffe152/ --image_dir ../data/train/ENV1_train/ --out_path ../instruction_generation/data/detection_results/ENV1/r152_attr_detection_results --image_list_file ./ENV1_train_train_imagelist_split0.txt --vg_dataset ENV1_train --cuda --split_ind 0
output shows ModuleNotFoundError: No module named 'FasterRCNN'so I install the bottom-up-attention.pytorch from github, but how can i import it in the project. Look forward your reply