Closed Archer222arc closed 3 years ago
Hi @Archer222arc , thanks for your interest. To run, you need to first build and install the package, as mentioned in the README:
cd dance/core/layers/extreme_utils && export CUDA_HOME="/usr/local/cuda-10.1" && python setup.py build_ext --inplace
Thank you for help! The above problems is solved and I have another problem. Since the evaluation relies on "edge.json", I've tried using prepare_edge_map.py
to generate the corresponding json file consisting of edges of COCOval2017
but failed. More specifically, the annotations_val2017.json
's "annotation":[] information does not include "file_name". I'm a new to handle this kind of problem. Could you please give some help? Thank you.
Traceback (most recent call last): File "train_net.py", line 14, in
import core.data # noqa
File "/public/home/archer/dance/core/init.py", line 1, in
from core import modeling
File "/public/home/archer/dance/core/modeling/init.py", line 1, in
from .fcos import FCOS
File "/public/home/archer/dance/core/modeling/fcos/init.py", line 1, in
from .fcos import FCOS
File "/public/home/archer/dance/core/modeling/fcos/fcos.py", line 10, in
from core.layers import DFConv2d, IOULoss
File "/public/home/archer/dance/core/layers/init.py", line 4, in
from .extreme_utils import _ext as extreme_utils
ImportError: cannot import name '_ext' from 'core.layers.extreme_utils' (/public/home/archer/dance/core/layers/extreme_utils/init.py)
And I find there's nothing in init.py