Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project dependencies may have API risk issues #455

Open
PyDeps opened this issue Oct 26, 2022 · 0 comments
Open

Project dependencies may have API risk issues #455

PyDeps opened this issue Oct 26, 2022 · 0 comments

Comments

@PyDeps
Copy link

PyDeps commented Oct 26, 2022

Hi, In mmskeleton, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

mmcv
torch>=1.1
torchvision
lazy_import

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project,
The version constraint of dependency mmcv can be changed to >=0.2.9,<=0.5.9.

The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the mmcv
mmcv.runner.Runner.load_checkpoint
Runner.register_training_hooks
mmcv.utils.ProgressBar
mmcv.runner.Runner.run
mmcv.runner.Runner
mmcv.parallel.MMDataParallel
mmcv.runner.Runner.register_training_hooks
mmcv.utils.ProgressBar.update
mmcv.cnn.constant_init
mmcv.runner.checkpoint.load_url_dist
mmcv.utils.Config.fromfile
Runner.run
mmcv.runner.Runner.resume
mmcv.cnn.kaiming_init
Runner.resume
mmcv.runner.load_checkpoint
Runner.load_checkpoint
The calling methods from the all methods
math.ceil
setuptools.Extension
self.loss.backward
self.predict
_minimal_ext_cmd
warnings.filterwarnings
cv2.destroyAllWindows
l.mean.unsqueeze
Cython.Distutils.build_ext.build_extensions
num_joints.batch_size.outs.reshape.split
cv2.split
mmcv.Config.fromfile
Exception
mmskeleton.version.__version__.split
self.skeleton_head.loss
random.random
type.rpartition
compile
self.train
self.register_buffer
mmcv.parallel.MMDataParallel
self.modules
classname.find
torchlight.visible_gpu
numpy.float32
set
_xml_zfile.open.read
cpu_nms.cpu_nms
callable
self.layer1
torch.save
super.__init__
self.coco.getAnnIds
i.self.transition3
self.dev.data.float.to.detach.float
a.np.array.transpose
numpy.random.choice
tools.openpose_match.sum
mmskeleton.ops.st_gcn.Graph
self._load_coco_keypoint_annotation_kernal
output.data.cpu
idx.heatmaps_pred.squeeze.mul
db_selected.append
parse_cfg.items
getattr
cv2.VideoCapture.read
torch.nn.CrossEntropyLoss
self.io.save_arg
f.mean.mean
num_joints.batch_size.output.reshape.split
rec.append
data.np.array.torch.from_numpy.float
numpy.concatenate.append
models.forward.items
Runner.run
nms
move_time.T.T.np.arange.round
numpy.floor
mmcv.imshow_det_bboxes
context.Process.start
sys.argv.remove
model
cv2.VideoCapture.release
image_path.extend
detection_model.cuda.cuda
_xml_zfile.append
cv2.blur.astype
m.named_parameters
torch.nn.ParameterList
numpy.random.randn
self.model.extract_feature
self.half_body_transform
self.loss.item
targets.reshape
m.t.pose.max
cv2.imdecode
data.cuda.cuda
loss
_xml_zfile.open
idx.reshape.reshape
tmp.append
get_affine_transform
gpus.range.model.MMDataParallel.cuda.forward
sys.setrecursionlimit
block
ValueError
end_toolbar
idx.meta.numpy
inference_model
mmskeleton.utils.set_attr
make_cython_ext
__import__
super.init_environment
value.to
dict.append
mmskeleton.utils.importer.call_obj
Runner.resume
gpu_nms.gpu_nms
self.init_weights
data.model.data.cpu
mask
self.test
self._make_stage
self.adjust_lr
self.DictAction.super.__init__
all_result.append
multiprocessing.Process.start
attr.isdigit.isdigit
out.strip.decode
collections.OrderedDict.keys
self.split_timer.items
cv2.circle
mmcv.runner.Runner.resume
torchvision.utils.make_grid
input.cpu.numpy.np.flip.copy
replace
_xml_path_zip.append
Processor.start
self.fcn
images.size
numpy.greater
st_gcn
ImportError
_im_zfile.read
i.self.transition2
label.data.cpu.numpy
Cython.Build.Dependencies.cythonize
oks_iou
self._load_coco_person_detection_results
self.coco.getImgIds
cv2.resize.astype
mmdet.apis.inference_detector
self.transform
self.backbone.init_weights
choose.distance.argmin
idx.heatmaps_pred.squeeze
i.self.transition1
output.reshape
numpy.dot.reshape
torch.topk
coco_transform.get_affine_transform
mmskeleton.processor.apis.save_batch_image_with_joints
pycocotools.COCOeval.accumulate
sorted.append
self.make_layers
exec
model.state_dict.items
idx.heatmaps_gt.squeeze.mul
multiprocessing.Manager.Queue.empty
self.get_adjacency
outs.reshape
gpus.range.model.MMDataParallel.cuda
net.utils.tgcn.ConvTemporalGraphical
customize_compiler_for_nvcc
openpose.pyopenpose.WrapperPython.emplaceAndPop
Model.state_dict
self._get_ann_file_keypoint
os.listdir
mmcv.utils.ProgressBar
_minimal_ext_cmd.strip
v.t.M.N.x.view.permute
int
self.iter_info.items
logging.getLogger
output_flipped.copy.torch.from_numpy.cuda
Processor.get_parser
subprocess.check_output
self.load_arg
branches.append
numpy.ones
self.Bottleneck.super.__init__
collections.OrderedDict.items
torch.multiprocessing.get_context.Process
get_attr
numpy.tile
xy1.xy2.sum
traceback.format_exception
mean.view.view
numpy.expand_dims
int.j.t.round.astype.tolist
input_flipped.torch.from_numpy.cuda
self.render
torch.nn.MSELoss
type.partition
numpy.append
NotImplementedError
utils.skeleton.random_choose
torch.multiprocessing.get_context
intensity.cpu.detach
mmskeleton.datasets.utils.video_demo.VideoDemo.skeleton_preprocess
numpy.sum
numpy.array
self.bn3
self.neck
shutil.rmtree
subprocess.check_call
data.size.mask.expand.type_as.reshape
module_list.append
self.conv2
f.read.format
self.ohkm
cv2.imread
data.size
data.size.mask.expand.type_as
xy1.xy2.sum.sum
exit
v.t.c.M.N.x.view.permute
M.N.x.view.mean
mmcv.ProgressBar.update
model.eval.to
self.conv1
path.split
tools.random_shift
numpy.full
get_version
text.astype
self.gpu
torch.nn.Conv1d
content.append
torch.nn.DataParallel
coords.copy
blurred_mask.astype.astype
valid_trace_index.append
utils.coco_transform.fliplr_joints
sys.exc_info
self.load_model
self.bn2
io.IO.get_parser
os.path.abspath
m.bias.data.fill_
self.load_data
d.transpose
valid_objs.append
self._make_fuse_layers
mask.view.sum
mmcv.runner.Runner.run
torch.load
p.vars.keys
sys.stdout.write
output.detach.cpu
torch.einsum.view
self.io.save_pkl
cv2.VideoCapture.isOpened
mmskeleton.utils.call_obj
gcn
self.skeleton_head
result_list.np.array.torch.from_numpy.float
get_max_preds
path.index
out_file.rstrip
os.path.basename
utils.infernce_utils.get_final_preds
c.n.data.reshape.sum
Processor
self.neck.init_weights
mmskeleton.utils.load_checkpoint
gpus.range.model.MMDataParallel.cuda.eval
model.weight.data.normal_
data_numpy.sum.sum.sum.argmax
init_recognizer
mmskeleton.datasets.utils.video_demo.VideoDemo.bbox_filter
self.data_bn
self.BasicBlock.super.__init__
name.split
m.weight.data.normal_
self.A.size
hasattr
normalize_digraph
i.means.append
k.split
blend
torch.nn.BatchNorm1d
A.size
time.strftime
max
HRModule
numpy.vstack
output.sum.argmax
t.forward_map.t.data_numpy.transpose
utils.ntu_read_skeleton.read_xyz
tools.utils.openpose.json_pack
f.read
self._load_image_set_index
yaml.load.keys
readme
l.mean
mmskeleton.datasets.utils.skeleton.random_shift
mmcv.runner.Runner
pycocotools.COCOeval.summarize
video_file.strip
pathlib.Path.glob
get_mmskeleton_url
tools.calculate_recall_precision
self._load_coco_person_detection_results.extend
eval
l.hit_top_k.append
argparse.ArgumentParser.parse_args
maxvals.reshape.reshape
os.path.join
self.io.save_model
argparse.ArgumentParser
ord
self.load_weights
cv2.warpAffine
torch.nn.Upsample
pycocotools.COCOeval.evaluate
list
self.set_executable
pair.joints.copy
self.io.print_log
openpose.pyopenpose.WrapperPython.start
Runner.register_training_hooks
float
self.stage3
fuse_layers.append
mmskeleton.datasets.utils.skeleton.random_move
get_mmskeleton_url.startswith
mmskeleton.utils.get_mmskeleton_url
mmskeleton.datasets.utils.video_demo.VideoDemo.skeleton_postprocess
lower_joints.append
self.render_video
numpy.get_include
collections.defaultdict.keys
st_gcn_block
setuptools.setup
self.TwoDimPoseEstimator.super.init_weights
i._xml_zfile.open
self.show_epoch_info
person_bbox.len.np.zeros.astype
process_checkpoint
skvideo.io.FFmpegWriter.close
all
self.model.apply
numpy.linalg.matrix_power
c.n.mask.reshape.sum
utils.skeleton.auto_pading
mmskeleton.apis.estimation.inference_pose_estimator
yaml.dump
render
output_flipped.detach.cpu.numpy
put_text
numpy.einsum
pathlib.Path
i._im_zfile.read
self.tcn.size
subprocess.Popen
numpy.prod
numpy.concatenate
argparse.ArgumentParser.set_defaults
layers.append
self.get_dis
self.TwoDimPoseEstimator.super.__init__
self._write_coco_keypoint_results
self.skeleton_head.init_weights
numpy.arange
argparse.ArgumentParser.add_argument
mmcv.runner.Runner.load_checkpoint
self.generate_target
line.replace
torch.zeros.cuda
x_fuse.append
numpy.multiply
transformed_image.transpose.transpose
data.size.mask.expand.type_as.view
numpy.clip
numpy.argmax
numpy.random.randint
T.score.argsort
setattr
tools.utils.video.video_info_parsing
model.bias.data.fill_
cv2.imshow
torch.nn.init.constant_
range
j.t.round
locals
map
numpy.zeros
read_xyz
get_mask
skvideo.io.vread
grid.mul.clamp.byte
h5py.File
sample_name.append
str.find
cv2.VideoCapture.get
mmcv.cnn.kaiming_init
j.t.tolist
net.utils.graph.Graph
parse_losses
curr_pose_xy.last_pose_xy.sum
x.size
self.record_time
set_attr
cat_results.extend
mmskeleton.datasets.utils.skeleton.top_k_by_category
numpy.linspace
numpy.abs
T.data_numpy.reshape
numpy.zeros.sum
self.reg_loss
pair.joints_vis.copy
batch_heatmaps.reshape
data_numpy.sum.sum
self.model.train
graph.dim
self._do_python_keypoint_eval.append
data.size.mask.expand.type_as.expand
time.localtime
mmskeleton.ops.st_gcn.ConvTemporalGraphical
data.model.data.cpu.numpy
torch.cuda.device_count
skvideo.io.FFmpegWriter.writeFrame
context.Queue.get
float.append
output.sum.sum
tools.utils.video.get_video_frames
warnings.catch_warnings
torch.einsum.size
cv2.line
math.floor
output.detach
mmcv.imwrite
os.path.exists
zip
numpy.flip
url_error_message.format
xy.reshape
self.criterion
self.BaseEstimator.super.__init__
pred_mask.astype.astype
mmcv.cnn.constant_init
torchvision.transforms.Compose
main
cv2.VideoCapture
self.model.parameters
self.io.load_model
output_flipped.cpu.numpy
TypeError
upper_joints.append
ndarr.copy.copy
output_flipped.detach.cpu
len
format
torch.isnan.mean
move_time.T.T.np.arange.round.astype
sys.stdout.flush
num_joints.batch_size.targets.reshape.split
self.HRModule.super.__init__
random.choice
feature.feature.sum
import_obj
output_flipped.copy.torch.from_numpy.cuda.clone
grid.mul.clamp.byte.permute.cpu
image.astype.astype
result.keys
topk_accuracy
torch.cat
get_hash
json.load
dict.items
self.init_environment
numpy.sum.sum
get_3rd_point
numpy.dot
torch.nn.Sequential
openpose.pyopenpose.Datum
multi_pose.sum.argsort
multiprocessing.Manager.Queue
x.permute.contiguous
pair.output_flipped.copy
utils.coco_transform.affine_transform
self._coco_keypoint_results_one_category_kernel
os.path.realpath
multi_pose.sum
self.arg.video.split.split
numpy.ceil
m.output.sum
procs.append
numpy.sign
torchvision.transforms.Normalize
self.origin_stream
context.Process.join
self._make_one_branch
super.finalize_options
path.stem.split
self.model
self.load_optimizer
self.stage4
m.init_weights
IPython.embed
numpy.get_numpy_include
random.randint
numpy.dstack
self.arg.video.split
self._make_branches
get_git_hash
get_dir
data.float.to
j.i.self.fuse_layers
mmskeleton.datasets.utils.coco_transform.flip_back
i.kpts_db.flatten
distutils.extension.Extension
collections.defaultdict
os.getenv
multiprocessing.Manager
context.Queue.put
torchlight.IO
sys.argv.pop
coco_transform.xywh2cs
self.normalize_adjacency_matrix
auto_pading
self.optimizer.zero_grad
self.motion_stream
type.import_obj
mmcv.frames2video
numpy.maximum
self.downsample
feeder.feeder_kinetics.Feeder_kinetics
mmcv.runner.load_checkpoint
os.path.dirname
idx.np.tile.astype
torch.utils.data.DataLoader
torch.cat.append
self.dev.data.float.to.detach
numpy.where
loss_value.mean
torchvision.utils.make_grid.mul
parser.add_subparsers.add_parser
processor.Processor.get_parser
curr_pose_xy.last_pose_xy.sum.mean
collections.OrderedDict
mmskeleton.apis.estimation.init_pose_estimator
pickle.dump
output.sum
numpy.amin
utils.coco_transform.get_affine_transform
loss.data.item
model.eval.forward
_im_zfile.append
self.print_log
loss_value.append
cv2.getAffineTransform
numpy.min
intensity.cpu.detach.numpy.cpu
data_numpy.sum.argsort
kpt.kpts.append
label.long.to
torch.nn.ModuleList
argparse.ArgumentParser.add_subparsers
cv2.cvtColor
str
self.coco.getCatIds
accuracy_list.append
label.cuda.cuda
torch.ones
numpy.exp
isinstance
multiprocessing.Process
setuptools.find_packages
read_skeleton
skvideo.io.FFmpegWriter
self.tcn.permute
openpose.pyopenpose.WrapperPython
model.state_dict.keys
line.rstrip
logging.getLogger.info
i.self.branches
open
torch.zeros
multiprocessing.Process.join
_kpts.append
cv2.waitKey
enumerate
write_version_py
self.skeleton_reg
torch.nn.Conv2d
torch.tensor.size
self._load_coco_keypoint_annotations
self.model.eval
os.path.isfile
numpy.spacing
self.epoch_info.items
os.path.join.items
numpy.mean
rescore
parse_cfg.format
self.SimpleSkeletonHead.super.__init__
rescore.argsort
EnvironmentError
self._do_python_keypoint_eval
self.HRNet.super.__init__
output.data.cpu.numpy
copy.deepcopy
grid.mul.clamp.byte.permute.cpu.numpy
cv2.VideoWriter.release
self.HRPoseEstimator.super.__init__
self.backbone
cfg.argparse_cfg.items
self.dev.data.float.to.detach.unsqueeze
os.makedirs
mmskeleton.datasets.utils.skeleton.calculate_recall_precision
self.show_iter_info
env.subprocess.PIPE.cmd.subprocess.Popen.communicate
self.coco.loadRes
score.argsort
pycocotools.COCO
models.forward
line.strip
st_gcn.Model
M.V.C.N.torch.cuda.FloatTensor.zero_
mmskeleton.utils.third_party.is_exist
meta.numpy
video.append
output.sum.sum.sum.argmax
num_joints.batch_size.target.reshape.split
self.io.log
v.lower
config_args.append
tools.random_choose
self.VideoDemo.super.__init__
sum
logging.getLogger.error
mmcv.utils.ProgressBar.update
f.readlines
numpy.frombuffer
multiprocessing.current_process
M.V.step.step.T.C.data_numpy.reshape.transpose.reshape
frame_info.append
utils.zipreader.imread
self.src_extensions.append
sorted
oks_nmsed_kpts.append
i.self.fuse_layers
utils.skeleton.random_move
Feeder
label.long.to.long
self.coco.loadImgs
mmskeleton.processor.apis.init_twodimestimator
numpy.random.rand
tuple
output.size
torch.optim.Adam
module.split
numpy.all
platform.system
argparse.ArgumentTypeError
Runner
cv2.putText
self.residual
sample_label.append
tools.utils.visualization.stgcn_visualize
torch.cat.size
idx.heatmaps_targets.squeeze
input.cpu
torch.cuda.FloatTensor
fuse_layer.append
torchlight.occupy_gpu
self.vars.items
filename.find
numpy.cos
mmskeleton.utils.cache_checkpoint
type
os.environ.get
cv2.blur
torch.cuda.is_available
numpy.zeros.unsqueeze
tools.top_k_by_category
mmcv.ProgressBar
os.path.splitext
m.t.output.sum.argmax
mmskeleton.utils.get_attr
naive_pose_tracker.get_skeleton_sequence
last_pose_xy.min
key.data.transpose
info.items
self._make_transition_layer
mmcv.video.io.VideoWriter_fourcc
tools.random_move
pose_demo.inference
data.float.to.float
label.data.cpu
gpus.range.model.MMDataParallel.cuda.apply
batch_image.size
dict
idx.heatmaps_targets.squeeze.mul
label_frag.append
mmcv.runner.Runner.register_training_hooks
name.log_vars.item
self.conv3
numpy.uint8
T.score.argsort.reshape
w.find
conv3x3
self.io.load_weights
kpt_db.append
self.gcn
print
torch.sum
grid.mul.clamp.byte.permute
target.reshape
locate_cuda
result_list.append
self.pose_estimation
make_cuda_ext
vars
f.readline
self._xywh2cs
next
numpy.minimum
cv2.VideoWriter
data_numpy.sum.sum.sum
data.size.mask.expand.type_as.size
torchlight.import_class
sys.path.append
mmskeleton.ops.nms.nms.oks_nms
mmcv.utils.Config.fromfile
cv2.VideoWriter.write
numpy.linalg.norm
self.split_time
parse_args
yaml.load
torch.nn.ReLU
gpus.range.detection_model.MMDataParallel.cuda
self.forward_test
min
self.optimizer.step
pycocotools.COCOeval
mmskeleton.datasets.utils.coco_transform.transform_preds
self.forward_train
j.t.round.astype
numpy.zeros.append
self.io.print_timer
torch.no_grad
find_in_path
cv2.resize
import_str.rpartition
self.get_edge
precision.append
self.conv
modules.append
numpy.float32.np.array.reshape
self.split_timer.values
M.V.step.step.T.C.data_numpy.reshape.transpose
skeleton.astype
torch.optim.SGD
save
numpy.lib.format.open_memmap
cv2.getTextSize
self.bn1
output_flipped.copy.torch.from_numpy.cuda.cpu
mmskeleton.utils.call_obj.evaluate
m.t.output.sum
data_numpy.sum
torch.nn.functional.avg_pool2d
normalize
image.copy
torch.isnan
numpy.zeros.size
pickle.load
self.stage2
transition_layers.append
outs.size
round
self.result.argsort
loss.item
std.reshape.reshape
os.path.isdir
s.t.data_numpy.transpose
result_frag.append
torch.gather
mmskeleton.datasets.utils.skeleton.openpose_match
mmskeleton.datasets.utils.skeleton.openpose_match.sum
multiprocessing.Manager.Queue.put
output_flipped.copy.torch.from_numpy.cuda.detach
self.coco.loadAnns
idx.heatmaps_gt.squeeze
gpus.range.model.MMDataParallel.cuda.parameters
kwargs.items
input.cpu.numpy
conv_type
last_pose_xy.max
torch.nn.Dropout
self._box2cs
mmcv.runner.checkpoint.load_url_dist
ops.nms.nms.soft_oks_nms
skeleton_sequence.append
self.JointsOHKMMSELoss.super.__init__
numpy.amax
torch.einsum.contiguous
numpy.array.mean
multiprocessing.Manager.Queue.get
self._make_layer
torch.nn.init.normal_
torch.utils.cpp_extension.CUDAExtension
ModuleNotFoundError
print_toolbar
x_list.append
ops.nms.nms.oks_nms
i.stds.append
openpose.pyopenpose.WrapperPython.configure
mmskeleton.datasets.utils.skeleton.auto_pading
feature.mean.mean
dict.split
torchlight.ngpu
naive_pose_tracker.update
mmcv.VideoReader
self.relu
self.image_path_from_index
lazy_import._load_module
self.show_topk
cimage.permute.permute
output.detach.cpu.numpy
xrange
gendata
state.keys.set.difference
self._get_db
parse_cfg
multiprocessing.Manager.Queue.get_nowait
get_requirements
self.extract_feat
self.model.to
self.tcn
self.trace_info.append
torch.einsum
torch.multiprocessing.get_context.Queue
v.cpu
output.sum.sum.sum
torchvision.transforms.ToTensor
self.loss
out_file.subprocess.check_output.decode
recall.append
Model.load_state_dict
lazy_import.lazy_module
self.coco.loadCats
numpy.max
mmskeleton.datasets.utils.skeleton.random_choose
mmdet.apis.init_detector
tools.auto_pading
import_class
person.cuda
numpy.zeros.float
f.readline.split
skeleton_model.cuda.cuda
self.cat_pose
zipfile.ZipFile
mean.reshape.reshape
self.JointsMSELoss.super.__init__
intensity.cpu.detach.numpy
self.tcn.view
datas.size
torch.nn.Parameter
time.asctime
super
get_hop_distance
torch.from_numpy
numpy.load
data_numpy.reshape
model.state_dict.update
modules.get_num_inchannels
time.time
data_numpy.sum.sum.argsort
f.write
torch.nn.BatchNorm2d
_loss.mean
numpy.sin
self.select_data
grid.mul.clamp
data.reshape
naive_pose_tracker
output_flipped.copy.torch.from_numpy.cuda.copy
self.branches
mmskeleton.processor.apis.inference_twodimestimator
video_file.strip.split
m.output.sum.argmax
std.view.view
self.get_parser
self._check_branches
mmskeleton.deprecated.datasets.kinetics_feeder.KineticsFeeder
affine_transform
dict.update
tools.openpose_match
join
Model
collections.OrderedDict.pop
input.size
conv3x3s.append
os.system
list.append
torch.tensor
xml.etree.ElementTree.fromstring
model.eval.eval
json.dump
Runner.load_checkpoint
numpy.stack

@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant