-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Hi, In MotioNet, inappropriate dependency versioning constraints can cause risks.
Below are the dependencies and version constraints that the project is using
scipy
matplotlib
h5py==2.8.0
tensorboardX
tensorflow-tensorboard==0.4.0
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 scipy can be changed to >=0.12.0,<=1.7.3.
The version constraint of dependency matplotlib can be changed to >=1.3.0,<=3.0.3.
The version constraint of dependency h5py can be changed to >=2.5.0,<=3.7.0.
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 scipy
scipy.spatial.distance.pdist scipy.interpolate.InterpolatedUnivariateSpline scipy.spatial.distance.squareform
The calling methods from the matplotlib
matplotlib.gridspec.GridSpec matplotlib.use
The calling methods from the h5py
h5py.File
The calling methods from the all methods
row3.row2.row1.torch.cat.cpu list pose_2d_root.torch.from_numpy.float self.positions.copy matplotlib.gridspec.GridSpec augment_depth.p.k.c.f.T.R.set_3d.reshape.h36m_utils.project_2d.reshape x_spl fake_rotations_full.detach.self.fk_layer.convert_6d_to_quaternions.reshape ax.get_yaxis.set_ticklabels torch.ones v1s.sum self._train_epoch sqs.copy delete_joints_index.extend q0.q3.q2.q1.clip self.rotations.repeat data_3d_worldframe.reshape.reshape c3.s1.s3.s2.c1.c2.c1.s3.s1.c3.s2.c1.torch.cat.view numpy.max numpy.core.umath_tests.matrix_multiply logger.warn numpy.sum self.parents.copy self.qs.reshape _images.sort self.rotations.reshape argparse.ArgumentParser.parse_args p.size args.kernel_size.replace.strip poses_2d_root.np.array.torch.from_numpy.unsqueeze.float.to subject.positions_set.keys open.close batch.v_mag.view.expand numpy.absolute pymel.core.nodetypes.AnimCurveTU.addKeys f.close bones.append numpy.abs rig_joints_list torch.norm self.positions.ravel alphas.append target.data.cpu i.self.layers_deconv numpy.arccos torch.utils.data.sampler.SubsetRandomSampler self.update_sequence_index bones2skel.repeat self.normalized.copy self.get_bones slice_set utils.BVH.save format numpy.cos matplotlib.pyplot.subplot v.pow int logging.getLogger self.model.optimizer_Q.step map filter anim.rotations.transforms args.stride.replace.strip args.dilation.replace.strip numpy.degrees alphas.torch.mean.data.cpu.numpy row3.row2.row1.torch.cat.cpu.numpy ax.get_xaxis self.offsets.copy self.offsets.ravel config.arch.type.models.getattr self.frame_numbers.append set_3d.copy.reshape layers_conv.append model.to.load_state_dict transforms_local j.view ax.set_ylabel logging.StreamHandler.setFormatter s3.c2.s2.c3.c2.torch.cat.view self.pooling_shrink_net.super.__init__ numpy.any train_log.items torch.nn.LeakyReLU pymel.core.runtime.AttachBrushToCurves numpy.newaxis.offsets.repeat re.match.groups scalars.items path.format z.y.x.torch.cat.reshape cls pow pymel.core.curve v.pow.sum transforms_multiply os.path.isdir model.model_zoo.fk_layer matplotlib.pyplot.figure item.np.array.torch.from_numpy.float.to.cpu matplotlib.pyplot.close AttributeError join numpy.delete self.conv_shrink_net.super.__init__ numpy.arange.append pose_2d_root_c.torch.from_numpy.float self._train_epoch.items numpy.min output.data.cpu.numpy test_data_loader.dataset.get_parameters abs poses_3d.reshape.astype rotations.append fake_bones.clone.detach logging.FileHandler poses_3d.view.fake_pose_3d.view.torch.norm.torch.mean.item torch.sqrt numpy.square self.expand_bn Quaternions.exp self.transforms_blank fig2img self.rotations.log.ravel length.torch.from_numpy.float self.shrink self.orients.__setitem__ self.pooling_net.super.__init__ poses_2d_root.np.array.torch.from_numpy.unsqueeze.float children_list errors.append fig.canvas.draw utils.Quaternions.Quaternions.reshape numpy.zeros.reshape torch.ones.cuda self.w1 self.model.optimizer_S.zero_grad random_id.self.images.clone numpy.sqrt.clip torch.pow min.reshape maxis.append ax.w_yaxis.line.set_color ax.set_xticks h5py.File torch.cuda.device_count quaternions.torch.from_numpy.float ROTATION_NUMBERS.get self.offsets.__setitem__ torch.transpose config_parse transforms_global add_data Quaternions.slerp data.float.to self.forward_S.clone getattr joint_index.confidences.np.array.copy self.logger.info j.name numpy.tile target.i.pred.torch.sum.item min PIL.Image.frombytes logging.basicConfig numpy.radians self.constrained T.R.set_3d.reshape.h36m_utils.camera_to_world_frame.reshape pose_array.copy.copy random.uniform x.split.split z.view.view matplotlib.use v1s.v0s.sum z.y.x.torch.cat.cpu log.update self.get_projection torch.nn.DataParallel target.data.cpu.numpy utils.util.normalize_data VerletParticles.VerletParticles world_to_camera_frame self.rotation_D.forward os.path.join keys.append numpy.hstack descendants_list self.model.train self.data_loader.dataset.get_parameters error_list.keys sampling.sampling.real_rotations.shape.np.arange.real_rotations.astype pymel.core.listRelatives poses_3d_root.append torch.sum config.h36m_loader.dataset.get_parameters self.transforms_local distances.copy.astype joint_index.poses_2d_root.copy pymel.core.currentTime pymel.core.curve.addKeys positions_proj.reshape data_file.np.array.reshape alpha.torch.from_numpy.float numpy.fromstring chr utils.visualization.show3Dpose numpy.load stage_layers.append action.replace.replace self.rotation_D.super.__init__ config.arch.stride.str.strip.replace show2Dpose self.qs.ravel pointname.pm.PyNode.t.listConnections numpy.array.reshape transforms.shape.int.transforms.shape.int.torch.ones.cuda utils.util.mkdir_dir numpy.expand_dims cls._broadcast x.split fake_rotations_full.detach.cpu.numpy.contiguous joint_descendants Quaternions._broadcast poses_3d.reshape.reshape utils.Animation.positions_global canonical_name.subject.data_3d_gt.append torch.unsqueeze model.to R.T.dot axis.scalePivot.set config.arch.dilation.str.strip.replace os.listdir self.writer.set_scalars v0s.sum input numpy.newaxis.anim.orients.transforms NotImplementedError video_name.split.split fake_rotations_full.detach.cpu.numpy.detach i.self.layers_conv self.model.forward_fk self.model.optimizer_D.zero_grad item.float.to map.index data.h36m_dataset.h36m_dataset config.arch.kernel_size.str.strip.replace self.transforms_multiply criterion utils.Animation.Animation transforms_inv index get_velocity pymel.core.group.childAtIndex self.relu torch.nn.BatchNorm1d data.np.array.torch.from_numpy.float copy.deepcopy Quaternions.exp.copy poses_2d.reshape.reshape numpy.zeros.copy TypeError data_3d_camframe.reshape open.write utils.visualization.WriterTensorboardX scipy.interpolate.InterpolatedUnivariateSpline item.np.array.torch.from_numpy.float.to numpy.outer float self._prepare_device rotations.view torch.matmul edges self.fk_trainer.super.__init__ torch.optim.Adam output.data.cpu Exception utils.Quaternions.Quaternions.from_euler pose_3d_root.torch.from_numpy.float i.data_size.int.i.data_size.int.data_set.copy data_block.reshape.reshape numpy.copy pymel.core.joint.setOrientation self.rotation_number.fake_rotations_full.contiguous.view._input.shape.skeleton.repeat.self.parents.self.fk_layer.forward.view ax.set_xlabel set_alphas.np.expand_dims.set_3d_world.copy.reshape torch.nn.MSELoss.cuda poses_2d_pixel.cpu config.arch.stride.str.strip fig.canvas.get_width_height self.drop mask ax.set_ylim3d os.makedirs torch.FloatTensor q1.q3.q2.q0.clip self.logger.addHandler self._resume_checkpoint self.expand_conv contacts.append self.rotation_D.parameters kwargs.pop parents_list numpy.repeat numpy.argmin anim.Animation.positions_global.reshape data.np.array.torch.from_numpy.float.to numpy.zeros self.h36m_loader.super.__init__ sum j.getTranslation Quaternions self.add_scalar poses.reshape.reshape torch.nn.ModuleList numpy.savez_compressed enumerate torch.ones.torch.diag.cuda train Quaternions.id_like poses_3d.append numpy.load.item utils.Animation.load_from_network item.np.array.torch.from_numpy.float.to.repeat poses_2d.reshape.astype ax.set_zlabel self.model.state_dict torch.nn.functional.adaptive_max_pool1d alphas.torch.mean.data.cpu utils.BVH.load scipy.spatial.distance.pdist ax.plot joint_children length_mean.mean logging.StreamHandler.setLevel torch.stack self.images.append self.get_contacts axis.rotatePivot.set i.self.local_fc_layers importlib.import_module.SummaryWriter self.base_model.super.__init__ self.positions.repeat ax.get_yaxis forwarddir.direction.Quaternions.between.constrained_y ax.w_zaxis.line.set_color anim.rotations.euler torch.load batch.v_mag.view.expand.view args.dilation.replace utils.util.interp_pose parents.len.np.eye.astype utils.util.make_dataset numpy.ones camera_to_world_frame self.linear_stages.append self.orients.log self.writer.set_step poses_3d.view utils.Quaternions.Quaternions.from_transforms weightvls.sum.sum self.__op__ type logging.Formatter torch.abs min.copy matplotlib.pyplot.subplot.imshow torch.mean joint_ancestors self.fk_layer.convert_6d_to_quaternions canonical_name.subject.data_2d_gt.append torch.FloatTensor.cuda item.np.array.torch.from_numpy.float offsets_transforms_global pre_proj.cpu.numpy c_spl torch.max k.view torch.nn.functional.nll_loss path.format.dot numpy.linalg.inv i.anim.rotations.np.newaxis.orient.Quaternions.euler numpy.linalg.eigh export types.SimpleNamespace utils.h36m_utils.camera_to_world_frame find_distance projection.torch.from_numpy.float axis.childAtIndex.overrideColor.set model.model_zoo.pooling_net open numpy.where self.drop.view numpy.mean poses_2d_pixel.cpu.numpy numpy.arange.copy spacepy.pycdf.CDF PIL.Image.open poses_set.keys str pymel.core.sphere oqs.copy self.train_logger.warning fake_rotations_full.detach.cpu self.batch_norm1 torch.nn.Conv1d item.np.array.torch.from_numpy.float.to.unsqueeze utils.util.ROTATION_NUMBERS.get pre_proj.cpu.numpy.np.repeat.reshape numpy.random.normal i.self.layers str.append target.pred.torch.sum.item re.match bones.shape.torch.zeros.cuda self.model.load_state_dict config.arch.dilation.str.strip self._save_checkpoint self.regression.super.__init__ self.positions.__setitem__ trainer.trainer.fk_trainer.train numpy.linspace self.BaseDataLoader.super.__init__ pymel.core.group bones.shape.test_parameters.repeat.test_parameters.unsqueeze.pre_bones.cpu.numpy torch.cos self.sequence_index.append ax.set_zlim3d pymel.core.select rotations_global numpy.random.choice xrange model.model_zoo.pooling_shrink_net logging.StreamHandler self.branch_S.parameters numpy.std pose_folder.split self.model.optimizer_D.step constraints.append self.get_flipping self.fk_layer.convert_eular_to_quaternions shutil.rmtree self.normalize_vector loss_G.backward pymel.core.joint pymel.core.selected numpy.array project_2d parameters.cpu.numpy ax.set_ylim torch.nn.init.kaiming_normal row3.row2.row1.torch.cat.reshape f.writelines bone_std.unsqueeze pose_batch.append numpy.argmax sequence_index.append data.data_loaders.h36m_loader json.dumps p.p.np.array.reshape int.append self.deconv_net_1.super.__init__ i.self.linear_stages transforms.shape.int.transforms.shape.int.torch.zeros.cuda target.data.cpu.numpy.reshape isinstance model.to.forward_fk numpy.mean.reshape layers_deconv.append utils.h36m_utils.define_actions self.set_sequences fake_rotations_full.contiguous.view len y_spl torch.zeros self.parents.__setitem__ self.linear.super.__init__ torch.save torch.nn.Dropout action.replace layer_output.append q3.q2.q1.q0.clip self.cross_product self.test_data_loader.dataset.get_parameters numpy.newaxis.self.qs.np.newaxis.self.qs.ut.matrix_multiply.sum self.orients.copy j.getChildren os.path.exists warnings.warn confidence_batch.append self.rotations.__setitem__ line.split item.split main anim.Animation.positions_global.reshape.copy numpy.arcsin ax.set_yticks numpy.multiply attr.listConnections args.stride.replace.strip.split return_tensors.append Linear self.model.D line.strip numpy.sign pre_bones.shape.parameters.repeat.parameters.unsqueeze.pre_bones.cpu.numpy projections.append self.branch_Q ax.set_aspect fake_rotations_full.detach.cpu.numpy self.model.eval pose_folder.split.split zip numpy.divide pymel.core.nodetypes.AnimCurveTU action_name.error_list.append utils.Quaternions.Quaternions.between ax.set_xlim3d image_filter.append repr object.__getattr__ numpy.argsort chain.append self.frames.append args.dilation.replace.strip.split torch.nn.MSELoss model.to.eval pymel.core.listConnections pymel.core.nodetypes.AnimCurveTA.addKeys parents.append fake_rotations_full.detach.self.fk_layer.convert_eular_to_quaternions.reshape names.append allow_cover.lower.lower torch.cat layer self.__iop__ range axis.childAtIndex.overrideEnabled.set self.get_contact numpy.append self.w2 torch.diag i.data_size.int.i.data_size.int.data_set.copy.reshape numpy.newaxis.v.np.newaxis.self.qs.sum self.poses_2d.self.poses_2d.reshape pymel.core.nodetypes.AnimCurveTA self.dropout rotations_reshape.torch.cos.view pymel.core.setAttr len.append model.to.to Animation sorted ax.w_xaxis.line.set_color pymel.core.PyNode utils.Animation.offsets_global self.branch_Q.parameters print openpose_json.np.array.reshape jmatch.group.replace rotations_reshape.torch.sin.view numpy.empty any self.drop.reshape numpy.empty.reshape fig.canvas.tostring_rgb parents.len.parents.len.np.zeros.astype torch.nn.Linear torch.nn.functional.adaptive_avg_pool1d config.trainer.checkpoint_dir.split logging.FileHandler.setLevel self.rotations.copy scipy.spatial.distance.squareform numpy.newaxis.v.np.newaxis.self.qs.sum.sum utils.Quaternions.Quaternions AssertionError VerletParticles.VerletParticles.constrain json.load numpy.reshape numpy.einsum self.fk_layer.super.__init__ ax.set_xlim self.deconv_net_2.super.__init__ ax.set_zticklabels log.items os.walk set_alphas.np.expand_dims.set_3d.reshape self.forward_S total.append super self.conv1 numpy.average poses_2d_root.np.array.torch.from_numpy.unsqueeze importlib.import_module i.x.clone self.deconv_net.super.__init__ utils.Quaternions.Quaternions.exp bones2skel ax.w_xaxis.set_pane_color model.metric.mean_points_error numpy.std.reshape torch.mean.backward self.batch_norm2 matplotlib.pyplot.figure.clear self.model.optimizer_S.step poses.reshape numpy.random.shuffle numpy.cross model.model_zoo.rotation_D matplotlib.pyplot.subplot.set_title iter fake_pose_3d.view qs.Quaternions.normalized torch.no_grad offsets_transforms_local numpy.random.seed _images.append numpy.sin sys.path.append re.match.group self.rotation_number.fake_rotations.shape.fake_rotations.shape.torch.zeros.cuda self.transforms_global torch.argmax y.view.view torch.cuda.is_available random.randint self.branch_S self.shrink_conv matplotlib.pyplot.subplot.invert_yaxis load_camera_params data.float numpy.sort self.video_name.append numpy.random.randint numpy.arange torch.sin utils.h36m_utils.dimension_reducer torch.topk ax.w_yaxis.set_pane_color fake_rotations.detach maya.mel.eval self.fk_model.super.__init__ numpy.sqrt exit utils.Quaternions.Quaternions.id s.getChildren numpy.all bone_mean.repeat joint1.positions.joint0.positions.mean item.float torch.chunk numpy.prod mpoints.append args.kernel_size.replace.strip.split transforms_blank pose_pixel.torch.from_numpy.float torch.nn.ReLU self.fk_layer.forward pymel.core.selected.getChildren Quaternions.from_angle_axis self.parameters distance rotations_bvh.append torch.nn.Sequential conv_index.self.conv_depth.stage_index.self.layers torch.nn.ReflectionPad1d self.logger.warning args.stride.replace poses_reshape.reshape.reshape z.y.x.torch.cat.cpu.numpy self.conv2 unload_joint self.train_logger.info pymel.core.connectAttr matplotlib.pyplot.figure.savefig torch.from_numpy save_joint self._valid_epoch torch.nn.ConvTranspose1d numpy.concatenate argparse.ArgumentParser.add_argument self.__sop__ self.add_noise self._prepare_data rotations.clone self.normalized c.name utils.visualization.show2Dpose layers.append self.rotations.log show3Dpose pre_bones.shape.parameters.repeat.parameters.unsqueeze.pre_bones.cpu self.data_loader.dataset.set_sequences numpy.isfinite trainer.trainer.fk_trainer utils.h36m_utils.project_2d op oqsn.repeat.repeat joints bones.shape.test_parameters.repeat.test_parameters.unsqueeze.pre_bones.cpu self.orients.log.ravel numpy.eye self.local_fc_layers.append name.config.module.getattr ax.get_xaxis.set_ticklabels fid.data.copy self.model.optimizer_Q.zero_grad c3.c1.s3.s2.s1.c2.s1.s3.c1.c3.s2.s1.torch.cat.view self.qs.repeat numpy.zeros_like numpy.empty.copy self.transforms_rotations numpy.newaxis.masses.repeat numpy.fromstring.tostring proj_facters.append utils.logger.Logger config.arch.kernel_size.str.strip video_name.split.replace numpy.arctan2 utils.h36m_utils.convert_openpose i.view logging.FileHandler.setFormatter args.kernel_size.replace items_index.self.images_path.tolist VerletParticles.VerletParticles.add_length_constraint i.rotations.euler torch.device argparse.ArgumentParser output.data.cpu.numpy.reshape self.dot torch.ones.torch.diag.cuda.repeat set_2d.reshape.reshape numpy.seterr utils.h36m_utils.load_cameras torch.autograd.Variable pre_proj.cpu sqsn.repeat.repeat x.split.split.split line.strip.split a.np.newaxis.w.np.concatenate.Quaternions.normalized
@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.