repo
stringlengths 8
116
| tasks
stringlengths 8
117
| titles
stringlengths 17
302
| dependencies
stringlengths 5
372k
| readme
stringlengths 5
4.26k
| __index_level_0__
int64 0
4.36k
|
---|---|---|---|---|---|
sagarverma/EgoActionRecognition | ['action recognition'] | ['Making Third Person Techniques Recognize First-Person Actions in Egocentric Videos'] | config/Plumbing.py rgb_cnn.py flow_cnn.py fused_lstm.py utils/create_train_test_cnn.py utils/extract_flow_cnn_features.py utils/.ipynb_checkpoints/extract_rgb_cnn_features-checkpoint.py rgb_lstm.py utils/create_train_test_lstm_sim.py flow_lstm.py utils/extract_rgb_cnn_features.py config/GTEA.py config/.ipynb_checkpoints/GTEA-checkpoint.py utils/confusion_matrix.py config/EGTEA.py utils/folder.py utils/cnf_matrix_to_res.py utils/create_train_test_lstm.py train_model ResNet50Bottom Net ResNet50Bottom train_model LSTMNet train_model RGBResNet50Bottom Net LSTMNet FlowResNet50Bottom train_model ResNet50Bottom Net ResNet50Bottom train_model LSTMNet plot_confusion_matrix Net ResNet50Bottom Net ResNet50Bottom levenshtein is_image_file SequencePreloader find_classes make_bimode_sequence_dataset rgb_sequence_loader BiModeSequencePreloader npy_seq_loader flow_sequence_loader make_dataset make_sequence_dataset BiModeNpySequencePreloader accimage_loader default_loader ImagePreloader NpySequencePreloader pil_loader data model zero_grad save max cuda str append range state_dict format load time criterion backward print Variable train step sinceview arange xticks max yticks list ylabel imshow append range asarray format product astype tight_layout print text xlabel zeros len list min append range enumerate len lower append append append append asarray load normalize center_crop convert random hflip to_tensor stack resize append randint crop open normalize convert random hflip to_tensor stack resize append randint crop open | # Code for the paper "Making Third Person Techniques Recognize First-Person Actions in Egocentric Videos" (ICIP 2018) This is the github repository containing the code for the paper ["Making Third Person Techniques Recognize First-Person Actions in Egocentric Videos"](https://sagarverma.github.io/others/icip18-ego-actions.pdf) by Sagar Verma, Pravin Nagar, Divam Gupta, and Chetan Arora. ## Requirements The code has been tested on: - Nvidia P5000 GPU - Ubuntu 16.04 LTS - [Pytorch](https://pytorch.org/) v0.4.0 - Opencv 3.0 ## Poster <img src="https://sagarverma.github.io/others/ICIP_ego.jpg"> | 3,500 |
sagarverma/FashionRecommendationST-LSTM | ['semantic parsing'] | ['Diversity in Fashion Recommendation using Semantic Parsing'] | train.py extract_features.py test.py CNN Net train STLSTMCell CNN Net train STLSTMCell model save resize cuda open transpose add load_state_dict append range asarray readlines Net load Variable convert divide numpy array zero_grad ravel BCEWithLogitsLoss FloatTensor Adam precision_recall_curve permute sum state_dict shuffle stack zero_ bmm reader backward sort print average_precision_score isnan parameters dict repeat step | # Code for the paper "Diversity in Fashion Recommendation Using Semantic Parsing" (ICIP 2018) This repository contains the code for the research paper titled ["Diversity in Fashion Recommendation Using Semantic Parsing"](https://sagarverma.github.io/others/icip18-fashion-diversity.pdf) by Sagar Verma, Sukhad Anand, Chetan Arora, and Atul Rai. ## Requirements The code has been test on: - Nvidia P5000 GPU - Ubuntu 16.04 LTS - [Pytorch](https://pytorch.org/) v0.4.0 - Opencv 3.0 ## Model architecture <img src="https://sagarverma.github.io/others/staqu_st_ten_arch.jpg"> | 3,501 |
sagieppel/Generator-evaluator-selector-net-a-modular-approach-for-panoptic-segmentation | ['panoptic segmentation', 'instance segmentation', 'semantic segmentation'] | ['Generator evaluator-selector net for panoptic image segmentation and splitting unfamiliar objects into parts'] | Refinement/Version1/ConvertLabelToOneHotEncoding.py Refinement/RefinementOriginalCode/Refinement/Evaluate.py Classification/Test.py ResizeFunction.py Run.py PointerSegmentation/TestGenerate.py PointerSegmentation/EVALUATE.py PointerSegmentation/GenerateDataAllFiles.py PointerSegmentation/Reader.py Refinement/Evaluate.py Refinement/FCN_NetModel.py Refinement/ConvertLabelToOneHotEncoding.py PointerSegmentation/TRAIN.py Refinement/Version1/TRAIN.py CocoPanoptic_Reader_Statistics.py GESModularClass.py Refinement/Version1/FCN_NetModel.py PointerSegmentation/CleanGeneratedData/RUNCleaner.py Refinement/TRAIN.py Refinement/RefinementOriginalCode/Refinement/GenerateData.py PointerSegmentation/Run_Segmentation.py Evaluation/Reader.py Refinement/Reader.py PointerSegmentation/GenerateTraininigForPointerNet/DataGeneratorForPointerSegmentation.py PointerSegmentation/CleanGeneratedData/MatcherCleanerChecker.py Classification/Evaluate.py Classification/NetModel.py PointerSegmentation/GenerateTraininigForPointerNet/RunDataGeneration.py Evaluation/TrainPOW2.py PointerSegmentation/CleanGeneratedData/MatcherCleaner.py Evaluation/NetModel.py Refinement/RefinementOriginalCode/Refinement/Reader.py Refinement/Version1/Evaluate.py Refinement/RefinementOriginalCode/Refinement/TRAIN.py Evaluation/TRAIN.py Refinement/RefinementOriginalCode/Refinement/ConvertLabelToOneHotEncoding.py Evaluation/Evaluate.py PointerSegmentation/GenerateDataClassEqual.py Classification/Reader.py Refinement/RefinementOriginalCode/Refinement/FCN_NetModel.py PointerSegmentation/FCN_NetModel.py Refinement/Version1/Reader.py Classification/Train.py PointerSegmentation/ConvertLabelToOneHotEncoding.py Refinement/Version1/GenerateData.py Refinement/FCN_NetModel101.py rgb2id Reader ModuNet ResizeProb ResizeImg ResizeMask GeneratePointerMask Net Reader Net Reader LabelConvert Net Reader rgb2id Matcher rgb2id Matcher rgb2id Generator LabelConvert Net Net Reader LabelConvert getIOU Net getIOU Reader LabelConvert getIOU Net getIOU Reader uint32 astype dtype int astype shape zeros range dtype int astype shape zeros range uint8 astype shape resize zeros float range zeros range len size cuda range | # Generator evaluator selector modular net for panoptic image segmentation
This code for the paper [Generator evaluator-selector net: a modular approach for
panoptic segmentation](https://arxiv.org/ftp/arxiv/papers/1908/1908.09108.pdf). To download the same code with trained models weights (ready to run )see these links [1](https://drive.google.com/file/d/1hOO4QLQ0NfhvNj_K5VIBJCJ7LspqG0nF/view?usp=sharing) [2](https://drive.google.com/file/d/1k0mfvLv0QoA88b5CVxq6jf5sZkQFLJd0/view?usp=sharing).

## Basic concept
The system is composed of a Generator (Pointer Net) that generate segments, evaluator (Evaluation net) that rank and select segments to create category independent segmentation map (Figure 1), and a segment classification net that classifies the selected segments. The nets and the weights were trained and tested on the COCO panoptic data set.
See the tutorial section for running/training instructions and the description section for more details on the system.
### Requirements
| 3,502 |
sagieppel/Pointer-based-segmentation-find-segment-containing-given-image-point-witin-given-ROI-mask-using-CNN | ['semantic segmentation'] | ['Class-independent sequential full image segmentation, using a convolutional net that finds a segment within an attention region, given a pointer pixel within this segment'] | FCN_NetModel.py ConvertLabelToOneHotEncoding.py CocoPanoptic_Reader.py Unused/NET_FCN_RESNET101.py TRAIN.py Evalauate_SingleSegmentPrediction.py Unused/ReaderMode1_ONLY_4_out_of_5.py Evalauate_FullImageSequentialSegmentation.py Run_Segmentation.py Unused/ReaderMode1_ONLY_1_out_of_5.py rgb2id Reader LabelConvert Net UpdateFractaleLearninRate Net rgb2id Reader rgb2id Reader uint32 astype size cuda range | ## Category independent segmentation with convolutional nets: ## Finding a segment containing a given image pixel within a given region-of-interest (ROI) mask using a convolutional net (CNN), and its application for sequential region-by-region instance-aware segmentation of images with unfamiliar categories. Category independent segmentation using pointer segmentation net. This work examines the use of fully convolutional nets (FCN) for finding a binary mask corresponding to a single image segment given a single pixel within this segment region (Figure 1). The target segment region is also limited by and given a region of interest (ROI) mask that limits the area were the segment can be found (Figure 1). The net receives an image and a single arbitrary point inside the target segment. An additional input is an ROI mask that restricts to the region of the image where the segment can be found. It returns a binary mask of the segment on which the pointer point is located (Figure 1). The method is explained in [this document](https://arxiv.org/pdf/1902.07810.pdf) [Stronger but harder to use version of this net can be found here](https://github.com/sagieppel/Generator-evaluator-selector-net-a-modular-approach-for-panoptic-segmentation/tree/master/PointerSegmentation)  Figure 1. Pointer based segmentation This net can also achieve full image segmentation by running sequentially, one segment at a time on the image and stitching the output segments into a single segmentation map (Figure 2). The net is class independent. Hence, it can segment even things corresponding to unfamiliar categories it did not encounter in the training stage. | 3,503 |
sagieppel/Splitting-unfamiliar-objects-and-stuff-in-images-into-parts-using-neural-nets | ['panoptic segmentation', 'instance segmentation', 'semantic segmentation'] | ['Generator evaluator-selector net for panoptic image segmentation and splitting unfamiliar objects into parts'] | PointerSegmentation/GenerateTrainingData/PascalPartsAnno.py PointerSegmentation/EVALUATE_Single_Segment.py PointerSegmentation/GenerateTrainingData/SplitPascalPartsToTrainAndEvalSets.py PointerSegmentation/GenerateTrainingDataForEvaluator.py OldUnused/EVALUATE_FULL_Segmentation_MODE2_WithCrop_VIZUALIZE.py PointerSegmentation/GenerateTrainingData/ConvertPascalPartsToTraining.py PointerSegmentation/TRAIN.py PointerSegmentation/ReaderParts.py Evaluator/ReaderParts.py PointerSegmentation/GenerateTrainingData/ConvertADE20kToTraining.py OldUnused/EVALUATE_FULL_Segmentation.py OldUnused/EVALUATE_FULL_Segmentation_MODE2.py PointerSegmentation/RunSegmentation.py Evaluator/Evaluate.py EVALUATE_GES.py PointerSegmentation/GenerateTrainingData/Pascal_part2ind.py OldUnused/EVALUATE_FULL_Segmentation_MODE2_WithCrop_VIzUNIQUE.py RunSegmentation.py PointerSegmentation/EVALUATE_FULL_Object_Segmentation.py SplitObjectIntoParts.py Evaluator/TRAIN.py Evaluator/NetModel.py Evaluator/Test.py PointerSegmentation/FCN_NetModel.py PointerSegmentation/ConvertLabelToOneHotEncoding.py MatchIndexses SplitObjectToParts Net Reader MatchIndexses SplitObjectToParts MatchIndexses SplitObjectToParts MatchIndexses SplitObjectToParts MatchIndexses SplitObjectToParts LabelConvert MatchIndexses Net Reader show domindx PascalBase PascalObject ImageAnnotation PascalPart get_class_names get_pimap sum unique int ones randint copy shape zeros argmax range str concatenate print append sum max uint8 imwrite astype mkdir size cuda range uint8 chr astype waitKey imshow sum unique range copy | # Generator evaluator selector (GES) net for class agnostic part segmentation
The system is a combination of two nets: a generator net and an evaluator net. The system receives an image and a mask of an object as input
and segment all the parts of this object. This is class agnostic and works even for unfamiliar objects that did not appear in the training set.
Based on two nets, one generate a proposal for object parts, and another evaluates the proposals.
For more details see this [document](https://arxiv.org/pdf/1908.09108.pdf)
Train model can be downloaded from [here](https://drive.google.com/file/d/1eA_zc9GtXbGMjqp7Ok64a7yWrZFq1RFu/view?usp=sharing)

| 3,504 |
sahan-liyanaarachchi/bcrf-detectron | ['panoptic segmentation'] | ['Bipartite Conditional Random Fields for Panoptic Segmentation'] | projects/DensePose/densepose/densepose_coco_evaluation.py crf/compatibility_transform.py detectron2/modeling/proposal_generator/build.py tests/test_checkpoint.py detectron2/evaluation/cityscapes_evaluation.py detectron2/utils/visualizer.py detectron2/utils/collect_env.py pytorch_permuto/pytorch_permuto/unit_tests/test_pytorch_bcrf.py tools/visualize_data.py crf/densecrf.py projects/TensorMask/tensormask/arch.py detectron2/modeling/anchor_generator.py detectron2/data/detection_utils.py detectron2/modeling/proposal_generator/rpn_outputs.py detectron2/modeling/proposal_generator/rpn.py detectron2/checkpoint/__init__.py projects/TridentNet/tridentnet/trident_rcnn.py tests/test_data_loader.py projects/TensorMask/tests/__init__.py detectron2/modeling/postprocessing.py detectron2/config/compat.py detectron2/utils/analysis.py projects/TensorMask/tensormask/layers/swap_align2nat.py projects/DensePose/train_net.py detectron2/model_zoo/__init__.py datasets/cityscapes_scripts/pan_city2coco.py detectron2/evaluation/sem_seg_evaluation.py detectron2/evaluation/lvis_evaluation.py detectron2/utils/registry.py detectron2/modeling/backbone/backbone.py detectron2/modeling/roi_heads/fast_rcnn.py datasets/prepare_cocofied_lvis.py tests/test_boxes.py detectron2/data/datasets/lvis.py projects/TensorMask/tensormask/layers/__init__.py projects/DensePose/densepose/modeling/test_time_augmentation.py projects/TensorMask/tests/test_swap_align2nat.py detectron2/modeling/roi_heads/mask_head.py pytorch_permuto/pytorch_permuto/compatibility_utils.py crf/params.py detectron2/data/samplers/__init__.py projects/DensePose/densepose/evaluator.py detectron2/utils/logger.py detectron2/structures/__init__.py detectron2/modeling/meta_arch/semantic_seg.py projects/DensePose/tests/common.py pytorch_permuto/pytorch_permuto/pytorch_bcrf.py detectron2/modeling/meta_arch/retinanet.py detectron2/export/caffe2_export.py detectron2/export/shared.py detectron2/data/samplers/grouped_batch_sampler.py detectron2/layers/roi_align.py setup.py detectron2/modeling/roi_heads/rotated_fast_rcnn.py detectron2/utils/events.py detectron2/layers/roi_align_rotated.py detectron2/utils/video_visualizer.py detectron2/data/samplers/distributed_sampler.py projects/DensePose/tests/test_model_e2e.py detectron2/modeling/sampling.py pytorch_permuto/pytorch_permuto/setup.py detectron2/utils/__init__.py crf/setup.py projects/DensePose/apply_net.py detectron2/structures/image_list.py projects/PointRend/point_rend/config.py crf/bipartite_crf.py tests/test_model_analysis.py detectron2/evaluation/panoptic_evaluation.py crf/util.py datasets/cityscapes_scripts/instances2dict_with_polygons.py datasets/cityscapes_scripts/cv2_util.py detectron2/layers/__init__.py detectron2/modeling/roi_heads/roi_heads.py detectron2/modeling/backbone/__init__.py docs/conf.py projects/PointRend/point_rend/point_features.py detectron2/data/transforms/transform_gen.py tools/visualize_json_results.py detectron2/utils/comm.py detectron2/evaluation/testing.py detectron2/structures/instances.py detectron2/modeling/box_regression.py detectron2/solver/lr_scheduler.py projects/TridentNet/tridentnet/trident_rpn.py tools/train_net.py detectron2/data/datasets/pascal_voc.py detectron2/export/caffe2_modeling.py detectron2/data/catalog.py detectron2/config/__init__.py detectron2/modeling/test_time_augmentation.py projects/DensePose/densepose/vis/extractor.py projects/TensorMask/tensormask/config.py detectron2/modeling/proposal_generator/rrpn_outputs.py detectron2/modeling/roi_heads/box_head.py projects/DensePose/densepose/structures.py tests/test_roi_align.py detectron2/modeling/meta_arch/__init__.py detectron2/export/c10.py detectron2/export/__init__.py projects/DensePose/densepose/utils/dbhelper.py pytorch_permuto/pytorch_permuto/unit_tests/test_compatibility_utils.py demo/demo.py detectron2/solver/build.py detectron2/export/patcher.py tools/benchmark.py projects/PointRend/point_rend/__init__.py detectron2/data/transforms/__init__.py detectron2/config/defaults.py detectron2/export/caffe2_inference.py tests/test_roi_pooler.py tests/test_model_e2e.py projects/DensePose/densepose/densepose_head.py detectron2/modeling/poolers.py detectron2/modeling/meta_arch/rcnn.py projects/DensePose/densepose/config.py detectron2/checkpoint/catalog.py detectron2/layers/batch_norm.py detectron2/data/datasets/coco.py detectron2/evaluation/__init__.py projects/DensePose/tests/test_structures.py tests/test_sampler.py projects/TensorMask/train_net.py projects/DensePose/densepose/roi_head.py detectron2/checkpoint/detection_checkpoint.py projects/DensePose/densepose/dataset.py projects/TridentNet/tridentnet/config.py projects/TridentNet/tridentnet/trident_conv.py detectron2/export/api.py detectron2/structures/keypoints.py detectron2/engine/__init__.py detectron2/utils/serialize.py detectron2/config/config.py projects/DensePose/densepose/dataset_mapper.py projects/DensePose/densepose/vis/bounding_box.py detectron2/engine/train_loop.py detectron2/modeling/matcher.py datasets/cityscapes_scripts/prepare_panoptic_fpn.py projects/DensePose/densepose/vis/base.py detectron2/data/dataset_mapper.py detectron2/data/datasets/cityscapes.py detectron2/modeling/proposal_generator/proposal_utils.py detectron2/data/datasets/builtin.py detectron2/modeling/roi_heads/cascade_rcnn.py projects/TridentNet/tridentnet/__init__.py detectron2/data/transforms/transform.py detectron2/modeling/proposal_generator/rrpn.py detectron2/engine/hooks.py detectron2/layers/mask_ops.py projects/PointRend/train_net.py projects/TridentNet/tridentnet/trident_backbone.py tests/test_roi_heads.py demo/predictor.py detectron2/data/datasets/__init__.py detectron2/data/datasets/builtin_meta.py detectron2/modeling/roi_heads/keypoint_head.py detectron2/model_zoo/model_zoo.py pytorch_permuto/pytorch_permuto/filters.py tests/test_nms_rotated.py detectron2/data/build.py detectron2/evaluation/rotated_coco_evaluation.py tests/test_anchor_generator.py tests/test_data_transform.py tests/test_rpn.py crf/pairwise.py pytorch_permuto/pytorch_permuto/unit_tests/test_pairwise_feature_calc.py detectron2/modeling/roi_heads/__init__.py detectron2/modeling/proposal_generator/__init__.py projects/TensorMask/setup.py projects/PointRend/point_rend/point_head.py tests/test_model_zoo.py detectron2/checkpoint/c2_model_loading.py projects/PointRend/point_rend/roi_heads.py tools/deploy/caffe2_converter.py detectron2/__init__.py detectron2/data/datasets/register_coco.py tests/test_mask_ops.py demo/pan_vis.py detectron2/layers/nms.py detectron2/modeling/meta_arch/build.py tests/test_rotated_boxes.py pytorch_permuto/pytorch_permuto/unit_tests/test_permuto_op.py detectron2/structures/masks.py projects/DensePose/densepose/utils/logger.py detectron2/solver/__init__.py detectron2/evaluation/coco_evaluation.py detectron2/layers/wrappers.py projects/DensePose/densepose/__init__.py detectron2/engine/defaults.py projects/DensePose/query_db.py detectron2/utils/memory.py tests/test_visualizer.py detectron2/layers/deform_conv.py tools/plain_train_net.py datasets/cityscapes_scripts/ins_city2coco.py detectron2/structures/rotated_boxes.py projects/DensePose/densepose/vis/densepose.py projects/TridentNet/train_net.py detectron2/modeling/backbone/resnet.py pytorch_permuto/pytorch_permuto/unit_tests/util.py detectron2/layers/rotated_boxes.py tests/test_box2box_transform.py detectron2/modeling/backbone/fpn.py tests/test_roi_align_rotated.py datasets/prepare_panoptic_fpn.py detectron2/utils/colormap.py detectron2/evaluation/pascal_voc_evaluation.py projects/DensePose/tests/test_setup.py projects/PointRend/point_rend/coarse_mask_head.py detectron2/modeling/backbone/build.py detectron2/modeling/__init__.py tests/test_fast_rcnn.py detectron2/modeling/meta_arch/panoptic_fpn.py detectron2/utils/env.py pytorch_permuto/pytorch_permuto/unit_tests/test_filter_gradients.py projects/TensorMask/tensormask/__init__.py tests/test_config.py tests/test_instances.py detectron2/engine/launch.py pytorch_permuto/pytorch_permuto/unit_tests/test_pairwise_filtering.py detectron2/layers/shape_spec.py detectron2/data/datasets/lvis_v0_5_categories.py detectron2/data/__init__.py tests/__init__.py detectron2/evaluation/evaluator.py detectron2/structures/boxes.py detectron2/data/common.py get_model_zoo_configs get_extensions get_version BipartiteCRF ins_to_sem_compatibility DenseCRF SpatialPairwise BilateralPairwise Pairwise NormType DenseCRFParams softmax get_label_image cocofy_lvis separate_coco_semantic_from_panoptic link_val100 _process_panoptic_to_semantic findContours instances2dict_with_polygons main convert_coco_stuff_mat xyxy_to_xywh convert_cityscapes_instance_only poly_to_box parse_args getLabelID panoptic_converter separate_coco_semantic_from_panoptic _process_panoptic_to_semantic get_parser setup_cfg VisualizationDemo get_parser setup_cfg VisualizationDemo AsyncPredictor convert_c2_detectron_names convert_basic_c2_names align_and_update_state_dicts Detectron2Handler ModelCatalogHandler ModelCatalog DetectionCheckpointer upgrade_config downgrade_config _rename _RenameConverter ConverterV2 ConverterV1 guess_version set_global_cfg get_cfg CfgNode print_instances_class_histogram build_detection_test_loader filter_images_with_few_keypoints build_detection_train_loader load_proposals_into_dataset worker_init_reset_seed get_detection_dataset_dicts trivial_batch_collator filter_images_with_only_crowd_annotations _quantize MetadataCatalog DatasetCatalog Metadata AspectRatioGroupedDataset DatasetFromList MapDataset DatasetMapper check_metadata_consistency annotations_to_instances transform_instance_annotations annotations_to_instances_rotated transform_proposals gen_crop_transform_with_instance build_transform_gen check_image_size create_keypoint_hflip_indices SizeMismatchError filter_empty_instances transform_keypoint_annotations read_image register_all_coco register_all_cityscapes register_all_lvis register_all_pascal_voc _get_cityscapes_panoptic_separated_meta _get_cityscapes_instances_meta _get_coco_instances_meta _get_builtin_metadata _get_coco_panoptic_separated_meta get_cityscapes_files cityscapes_files_to_dict load_cityscapes_semantic load_cityscapes_instances load_sem_seg convert_to_coco_json load_coco_json convert_to_coco_dict register_lvis_instances get_lvis_instances_meta _get_lvis_instances_meta_v0_5 load_lvis_json load_voc_instances register_pascal_voc merge_to_panoptic register_coco_panoptic_separated register_coco_instances RepeatFactorTrainingSampler InferenceSampler TrainingSampler GroupedBatchSampler ExtentTransform Resize_rotated_box ResizeTransform HFlip_rotated_box TransformGen RandomFlip RandomSaturation check_dtype RandomLighting apply_transform_gens RandomContrast Resize RandomCrop ResizeShortestEdge RandomExtent RandomBrightness default_setup DefaultTrainer DefaultPredictor default_argument_parser PeriodicCheckpointer LRScheduler IterationTimer PreciseBN CallbackHook PeriodicWriter AutogradProfiler EvalHook launch _distributed_worker _find_free_port SimpleTrainer HookBase TrainerBase CityscapesEvaluator instances_to_coco_json COCOEvaluator _evaluate_box_proposals _evaluate_predictions_on_coco DatasetEvaluator DatasetEvaluators inference_on_dataset inference_context _evaluate_predictions_on_lvis _evaluate_box_proposals LVISEvaluator COCOPanopticEvaluator _print_panoptic_results PascalVOCDetectionEvaluator parse_rec voc_eval voc_ap RotatedCOCOeval RotatedCOCOEvaluator SemSegEvaluator verify_results print_csv_format flatten_results_dict export_onnx_model Caffe2Model add_export_config export_caffe2_model Caffe2KeypointRCNNInference Caffe2Boxes Caffe2RPN Caffe2Compatible Caffe2FastRCNNOutputsInference Caffe2MaskRCNNInference Caffe2ROIPooler InstancesList run_and_save_graph export_onnx_model _op_stats export_caffe2_detection_model _assign_device_option ProtobufDetectionModel ProtobufModel Caffe2GeneralizedRCNN Caffe2RetinaNet set_caffe2_compatible_tensor_mode _cast_to_f32 Caffe2PanopticFPN Caffe2MetaArch assemble_rcnn_outputs_by_name convert_batched_inputs_to_c2_format GenericMixin mock_fastrcnn_outputs_inference ROIHeadsPatcher patch Caffe2CompatibleConverter patch_generalized_rcnn mock_mask_rcnn_inference mock_keypoint_rcnn_inference rename_op_input get_sub_graph_external_input_output to_device IllegalGraphTransformError mock_torch_nn_functional_interpolate save_graph_base identify_reshape_sub_graph alias remove_reshape_for_fc construct_init_net_from_params DiGraph get_params_from_init_net get_pb_arg_valstrings _modify_blob_names _rename_blob group_norm_replace_aten_with_caffe2 _rename_versioned_blob_in_proto get_pb_arg_ints ScopedWS get_pb_arg_vals save_graph get_pb_arg_floats fuse_copy_between_cpu_and_gpu get_pb_arg_vali get_pb_arg_valf _generic_status_identifier onnx_compatibale_interpolate remove_dead_end_ops get_pb_arg BilinearInterpolation check_set_pb_arg infer_device_type fetch_any_blob get_producer_map fuse_alias_placeholder rename_op_output _get_dependency_chain _updater_raise _create_const_fill_op_from_numpy create_const_fill_op get_consumer_map _create_const_fill_op_from_c2_int8_tensor NaiveSyncBatchNorm FrozenBatchNorm2d AllReduce get_norm ModulatedDeformConv DeformConv _ModulatedDeformConv _DeformConv paste_mask_in_image_old pad_masks _do_paste_mask paste_masks_in_image resize_masks scale_boxes nms_rotated batched_nms_rotated batched_nms ROIAlign _ROIAlign _ROIAlignRotated ROIAlignRotated pairwise_iou_rotated ShapeSpec _NewEmptyTensorOp interpolate cat Conv2d RotatedAnchorGenerator build_anchor_generator _create_grid_offsets BufferList DefaultAnchorGenerator Box2BoxTransformRotated Box2BoxTransform Matcher convert_boxes_to_pooler_format assign_boxes_to_levels ROIPooler detector_postprocess sem_seg_postprocess detector_resize_logits subsample_labels DatasetMapperTTA GeneralizedRCNNWithTTA Backbone build_backbone LastLevelMaxPool build_retinanet_resnet_fpn_backbone build_resnet_fpn_backbone FPN LastLevelP6P7 _assert_strides_are_log2_contiguous ResNet ResNetBlockBase BottleneckBlock build_resnet_backbone DeformBottleneckBlock make_stage BasicStem build_model combine_semantic_and_instance_outputs PanopticFPN ProposalNetwork GeneralizedRCNN permute_all_cls_and_box_to_N_HWA_K_and_concat permute_to_N_HWA_K RetinaNet RetinaNetHead SemanticSegmentor SemSegFPNHead build_sem_seg_head build_proposal_generator add_ground_truth_to_proposals add_ground_truth_to_proposals_single_image RPN StandardRPNHead build_rpn_head rpn_losses RPNOutputs find_top_rpn_proposals RRPN RRPNOutputs find_top_rrpn_proposals build_box_head FastRCNNConvFCHead _ScaleGradient CascadeROIHeads FastRCNNOutputs fast_rcnn_inference fast_rcnn_inference_single_image FastRCNNOutputLayers build_keypoint_head keypoint_rcnn_inference KRCNNConvDeconvUpsampleHead keypoint_rcnn_loss BaseKeypointRCNNHead mask_rcnn_inference MaskRCNNConvUpsampleHead build_mask_head mask_logits_from_proposals mask_rcnn_loss resize_back BaseMaskRCNNHead mask_rcnn_loss2 Res5ROIHeads build_roi_heads ROIHeads select_proposals_with_visible_keypoints select_foreground_proposals StandardROIHeads RROIHeads RotatedFastRCNNOutputs fast_rcnn_inference_single_image_rotated fast_rcnn_inference_rotated get get_checkpoint_url get_config_file _ModelZooUrls build_lr_scheduler _generate_optimizer_class_with_gradient_clipping build_optimizer _create_gradient_clipper maybe_add_gradient_clipping GradientClipType WarmupMultiStepLR WarmupCosineLR _get_warmup_factor_at_iter pairwise_iou matched_boxlist_iou BoxMode Boxes ImageList Instances Keypoints _keypoints_to_heatmap heatmaps_to_keypoints polygon_area BitMasks polygons_to_bitmask rasterize_polygons_within_box PolygonMasks pairwise_iou RotatedBoxes flop_count_operators detect_compute_compatibility get_env_module collect_torch_env collect_env_info random_color colormap get_local_size synchronize get_world_size get_local_rank reduce_dict _get_global_gloo_group shared_random_seed all_gather get_rank gather _serialize_to_tensor is_main_process _pad_to_largest_tensor setup_environment setup_custom_environment _configure_libraries _import_file seed_all_rng EventStorage TensorboardXWriter EventWriter get_event_storage JSONWriter CommonMetricPrinter _cached_log_stream log_first_n _find_caller setup_logger log_every_n create_small_table _ColorfulFormatter log_every_n_seconds retry_if_cuda_oom _ignore_torch_cuda_oom PicklableWrapper _DetectedInstance VideoVisualizer VisImage Visualizer GenericMask ColorMode _PanopticPrediction _create_text_labels url_resolver setup autodoc_skip_member ShowAction create_argument_parser register_action InferenceAction main DumpAction Action setup_dataset ShowAction create_argument_parser register_action EntrywiseAction main PrintAction Action main setup Trainer add_densepose_config get_densepose_metadata DatasetMapper Params DensePoseDataMode DensePoseCocoEval DensePoseEvalMode IIDIsotropicGaussianUVLoss DensePoseUVConfidenceType DensePoseConfidenceModelConfig DensePoseLosses densepose_inference ASPPPooling build_densepose_predictor _NonLocalBlockND ASPP DensePoseV1ConvXHead _linear_interpolation_utilities IndepAnisotropicGaussianUVLoss DensePoseDataFilter NONLocalBlock2D _resample_data DensePoseUVConfidenceConfig build_densepose_head DensePosePredictor _extract_single_tensors_from_matches _extract_single_tensors_from_matches_one_image build_densepose_losses DensePoseDeepLabHead initialize_module_params ASPPConv _grid_sampling_utilities build_densepose_data_filter _extract_at_points_packed DensePoseCOCOEvaluator _evaluate_predictions_on_coco_gpsm prediction_to_json _evaluate_predictions_on_coco_gps _evaluate_predictions_on_coco Decoder DensePoseROIHeads DensePoseResult DensePoseList normalized_coords_transform DensePoseTransformData DensePoseDataRelative DensePoseOutput DensePoseGeneralizedRCNNWithTTA AllEntrySelector EntrySelector FieldEntrySelector verbosity_to_level PointsVisualizer CompoundVisualizer RectangleVisualizer TextVisualizer MatrixVisualizer BoundingBoxVisualizer ScoredBoundingBoxVisualizer _extract_v_from_iuvarr DensePoseDataPointsVisualizer DensePoseDataPointsIVisualizer DensePoseDataPointsVVisualizer DensePoseResultsMplContourVisualizer DensePoseDataCoarseSegmentationVisualizer DensePoseResultsVVisualizer DensePoseResultsFineSegmentationVisualizer _densepose_data_i_for_cmap DensePoseOutputsFineSegmentationVisualizer _extract_u_from_iuvarr DensePoseOutputsVVisualizer DensePoseOutputsUVisualizer _densepose_data_v_for_cmap _densepose_data_u_for_cmap DensePoseDataPointsUVisualizer DensePoseResultsVisualizer DensePoseMaskedColormapResultsVisualizer DensePoseResultsCustomContourVisualizer _extract_i_from_iuvarr DensePoseResultsUVisualizer extract_boxes_xywh_from_instances BoundingBoxExtractor ScoreThresholdedExtractor CompoundExtractor ScoredBoundingBoxExtractor DensePoseResultExtractor extract_scores_from_instances NmsFilteredExtractor create_extractor get_quick_schedules_config_files _get_base_config_dir setup _collect_config_files get_config_files _get_quick_schedules_config_dir get_model _get_model_config make_empty_instances DensePoseRCNNE2ETest ModelE2ETest make_model_inputs TestSetup TestStructures main setup Trainer CoarseMaskHead add_pointrend_config get_uncertain_point_coords_on_grid point_sample get_point_coords_wrt_image point_sample_fine_grained_features generate_regular_grid_point_coords get_uncertain_point_coords_with_randomness StandardPointHead roi_mask_point_loss build_point_head PointRendROIHeads calculate_uncertainty get_extensions main setup Trainer TensorMask TensorMaskAnchorGenerator _paste_mask_lists_in_image _postprocess _assignment_rule TensorMaskHead add_tensormask_config SwapAlign2Nat _SwapAlign2Nat SwapAlign2NatTest main setup Trainer add_tridentnet_config build_trident_resnet_backbone TridentBottleneckBlock make_trident_stage TridentConv merge_branch_instances TridentStandardROIHeads TridentRes5ROIHeads TridentRPN get_compatibility initial_cross_compatibility SpatialFilter BilateralFilter PermutoFunction AbstractFilter _spatial_features _apply_compatibility_transform PyTorchBCRF TestPairwiseFeatureCalc TestGradPairwiseFiltering TestPairwiseFeatureCalc TestPairwiseFiltering TestPermutoOp TestPyTorchBCRF to_numpy to_torch TestAnchorGenerator random_rotated_boxes TestBox2BoxTransformRotated random_boxes TestBox2BoxTransform TestBoxIOU TestBoxMode TestCheckpointer TestConfigVersioning TestTransformAnnotations TestTransforms FastRCNNTest TestInstancesIndexing rasterize_polygons_with_grid_sample TestMaskCropPaste benchmark_paste iou_between_full_image_bit_masks FasterRCNNTest get_model_zoo RetinaNetTest create_model_input get_empty_instance RetinaNetE2ETest ModelE2ETest MaskRCNNE2ETest get_regular_bitmask_instances get_model_zoo TestModelZoo TestNMSRotated ROIAlignTest benchmark_roi_align ROIAlignRotatedTest ROIHeadsTest TestROIPooler TestRotatedBoxesLayer TestRotatedBoxesStructure benchmark_rotated_iou RPNTest TestGroupedBatchSampler TestVisualizer benchmark_eval benchmark_data setup benchmark_train setup get_evaluator do_train main do_test main setup Trainer parse_args output setup create_instances dataset_id_map setup_cfg join format strip readlines strftime getenv dirname abspath append get join format glob dirname abspath append join isdir glob unlink realpath rmtree islink symlink dirname exists zeros islice enumerate fromarray astype putpalette sum exp max pop deepcopy defaultdict format print set append keys asarray zeros_like save rgb2id open time format starmap partial print makedirs iter_annotations Pool enumerate join relpath print symlink makedirs startswith hasInstances uint8 format toDict print Instance findContours len astype RETR_EXTERNAL copy unique abspath append CHAIN_APPROX_NONE array flush open append instances2dict_with_polygons add_argument exit ArgumentParser print_help min max print join len load join zip print endswith len xyxy_to_xywh poly_to_box append walk open save open sorted save_json ignoreInEval append sum format IdGenerator glob mkdir unique get_id_and_color enumerate join print zeros array len merge_from_file confidence_threshold config_file get_cfg merge_from_list opts freeze add_argument ArgumentParser deepcopy deepcopy sorted format convert_basic_c2_names zip getLogger tuple shape startswith info keys cat get_missing_parameters_message getLogger tuple warning max values sorted list view tolist shape convert_c2_detectron_names format info keys enumerate error clone get_unexpected_parameters_message len VERSION upgrade clone range VERSION downgrade clone range VERSION format warning getLogger _get _del _set split clear update getLogger format info len getLogger format info len pop format getLogger set info list sorted copy list tabulate arange format chain min log_first_n extend zip_longest colored zeros sum INFO len list check_metadata_consistency thing_classes print_instances_class_histogram filter_images_with_few_keypoints from_iterable zip filter_images_with_only_crowd_annotations getLogger DataLoader SAMPLER_TRAIN BatchSampler get_detection_dataset_dicts RepeatFactorTrainingSampler TrainingSampler ASPECT_RATIO_GROUPING REPEAT_THRESHOLD AspectRatioGroupedDataset format IMS_PER_BATCH get_world_size TRAIN info DatasetMapper MapDataset DatasetFromList len DataLoader MapDataset BatchSampler get_detection_dataset_dicts DatasetMapper DatasetFromList InferenceSampler len randint seed_all_rng pop apply_box convert astype Boxes Instances nonempty XYXY_ABS as_tensor clip decode apply_segmentation isinstance convert XYXY_ABS transform_keypoint_annotations apply_coords reshape decode ndarray Keypoints isinstance BitMasks Boxes Instances stack polygons_to_bitmask append tensor PolygonMasks clip Instances tensor clip RotatedBoxes append nonempty get update check_metadata_consistency keypoint_flip_map dict keypoint_names minimum asarray convert astype maximum randint int32 XYXY_ABS str format getLogger error enumerate str RandomFlip MIN_SIZE_TRAIN_SAMPLING info getLogger MIN_SIZE_TEST MIN_SIZE_TRAIN ResizeShortestEdge MAX_SIZE_TRAIN MAX_SIZE_TEST append get join list items register_coco_instances _get_builtin_metadata register_coco_panoptic_separated register_lvis_instances list join items get_lvis_instances_meta join list format items set _get_builtin_metadata register register_coco_panoptic_separated join register_pascal_voc update _get_cityscapes_instances_meta update _get_coco_instances_meta ls join append info format partial map get_cityscapes_files info Pool len append join glob list asarray isinstance Polygon endswith bounds geoms id buffer difference is_empty nonzero unique append XYXY_ABS union chain warning Timer getCatIds sorted list append get format XYWH_ABS zip loadImgs info seconds keys enumerate join get_local_path loadCats len list sorted format zip warn set info append len get hasattr XYWH_ABS isinstance convert area len reverse_id_mapper item info append XYXY_ABS sum PolygonMasks enumerate mkdirs dirname register set Timer load_imgs get_local_path format seconds sorted list zip join get set get_lvis_instances_meta startswith info LVIS keys append len sorted join get_local_path findall text append find register set register set register set update append copy width arctan2 cos h pi w new_w sin new_h check_dtype get_transform apply_image append add_argument hash ArgumentParser str read format collect_env_info join config_file CUDNN_BENCHMARK setup_logger get_world_size get_rank mkdirs info OUTPUT_DIR seed_all_rng socket bind close AF_INET SOCK_STREAM _find_free_port spawn main_func list init_process_group new_group synchronize set_device main_func range decode XYWH_ABS has pred_keypoints convert tolist append XYXY_ABS numpy range len arange zeros_like max pairwise_iou Boxes append sum loadAnns range getAnnIds mean float proposal_boxes enumerate reshape sort min zeros as_tensor len pop deepcopy evaluate COCOeval summarize accumulate loadRes array len str format evaluate getLogger min perf_counter timedelta reset info DatasetEvaluators len eval train training get_ann_ids load_anns pop deepcopy format getLogger LVISResults warn get_results create_small_table print_results info LVISEval run append tabulate info int findall text append find arange concatenate size maximum sum max range parse_rec cumsum argmax max sum range eps format astype float minimum reshape maximum voc_ap argsort zeros bool array len join list format items getLogger info str getLogger error exit EXPECTED_RESULTS pformat info abs items list isinstance freeze defrost is_frozen CN get_caffe2_inputs C2MetaArch export_caffe2_detection_model get_caffe2_inputs deepcopy C2MetaArch property get_available_passes optimize apply get items sorted list infer_device_type _assign_op_device_option get_ssa remove_reshape_for_fc construct_init_net_from_params export_onnx_model onnx_graph_to_caffe2_net group_norm_replace_aten_with_caffe2 format fuse_copy_between_cpu_and_gpu encode_additional_info _op_stats colored info remove_dead_end_ops __name__ deepcopy fuse_alias_placeholder any get_params_from_init_net tabulate _assign_device_option format save_graph info get arange keypoint_rcnn_inference pred_classes Boxes RotatedBoxes int64 zeros to apply get from_tensors image_sizes zip append Tensor named_children isinstance ccc RPN patch ROIPooler device int upsample_filt zeros conv_transpose2d warning isinstance is_in_onnx_export FetchBlob arg get_pb_arg get_pb_arg get_pb_arg get_pb_arg get_pb_arg get_pb_arg format extend MakeArgument warning getattr setattr get_pb_arg update data type NetDef list format items isinstance extend warning append type len range enumerate defaultdict append range enumerate len get_ssa get_producer_map deepcopy get_ssa _update_i op reversed zip union deepcopy list _replace_list map output input append partial GetPydotGraph format print write_svg op GetPydotGraphMinimal dirname _modify_blob_names write_png write_pdf makedirs remove format check_set_pb_arg get_pb_arg_vals op get_pb_arg_vali info get_pb_arg decode rename_op_input rename_op_output op extend get_pb_arg_vali append bool enumerate external_output external_input output op zip input range len deepcopy get_ssa get_producer_map rename_op_output _rename_versioned_blob_in_proto get_ssa _rename_versioned_blob_in_proto get_ssa sum format get_all_paths get_producer_map min from_ssa warning get_consumer_map get_ssa op _get_dependency_chain append enumerate join get_ssa format all deepcopy remove get_sub_graph_external_input_output rename_op_output extend info append identify_reshape_sub_graph _fuse_once get_ssa list all extend reversed add set get_consumer_map enumerate isinstance int arange ones chunk _do_paste_mask device ceil tensor len arange grid_sample size expand stack device to split int arange chunk _do_paste_mask device ceil tensor to zeros len fromarray max uint8 min from_numpy resize zeros to numpy array float new_zeros zeros_like nms view size tolist new_zeros nms_rotated min clone to max _output_size tuple meshgrid reshape arange NAME clamp sqrt log2 floor epsilon cat cat pred_boxes resize_masks has Instances scale proposal_boxes image_size clip pred_boxes has Instances scale paste_masks_in_image proposal_boxes image_size clip expand int squeeze min numel NAME ShapeSpec enumerate IN_FEATURES OUT_CHANNELS FPN build_resnet_backbone FPN channels build_resnet_backbone IN_FEATURES OUT_CHANNELS append block_class range convert_frozen_batchnorm STEM_OUT_CHANNELS make_stage WIDTH_PER_GROUP max DEFORM_NUM_GROUPS FREEZE_AT RES2_OUT_CHANNELS append freeze range OUT_FEATURES DEPTH RES5_DILATION DEFORM_ON_PER_STAGE BasicStem enumerate NORM STRIDE_IN_1X1 parameters DEFORM_MODULATED NUM_GROUPS META_ARCHITECTURE zeros_like tolist argsort item append to shape reshape permute view view NAME NAME ones Instances device image_size log cat len HEAD_NAME arange Instances device tensor clip count all Boxes nonempty append cat isfinite zip batched_nms enumerate sort min image_sizes full len smooth_l1_loss to float32 binary_cross_entropy_with_logits arange RotatedBoxes Instances device tensor clip count all nonempty batched_nms_rotated append cat isfinite zip enumerate sort min image_sizes full len NAME all view reshape Boxes Instances nonzero batched_nms clip NAME put_scalar cross_entropy get_event_storage view gt_keypoints squeeze numel shape cat append tensor to to_heatmap len detach heatmaps_to_keypoints zip cat split arange size append to cat to squeeze cat device put_scalar get_event_storage size numel binary_cross_entropy_with_logits item to max put_scalar arange get_event_storage put_image size numel sigmoid stack binary_cross_entropy_with_logits item append to max cat enumerate arange sigmoid zip cat split NAME NAME append squeeze gt_classes put_scalar get_event_storage squeeze numel mean unsqueeze any append tensor all view reshape RotatedBoxes Instances batched_nms_rotated nonzero clip replace join resource_filename merge_from_file load build_model get_cfg WEIGHTS get_checkpoint_url get_config_file clone type __name__ _create_gradient_clipper type CLIP_GRADIENTS _generate_optimizer_class_with_gradient_clipping WEIGHT_DECAY_NORM isinstance WEIGHT_DECAY_BIAS SGD add named_parameters BASE_LR modules maybe_add_gradient_clipping BIAS_LR_FACTOR WEIGHT_DECAY LR_SCHEDULER_NAME min area where clamp_ prod zeros max max min area clamp long argmax arange view exp_ clamp squeeze new_zeros ceil float sum max range frPyObjects merge from_numpy deepcopy max polygons_to_bitmask train training join sorted format check_output strip set isfile append split get str list defaultdict items join format detect_compute_compatibility check_output get_env_module strip device_count is_available tabulate range append origin randint len barrier get_world_size format getLogger from_buffer dumps get_rank warning get_backend device to len get_world_size all_gather tensor max zeros cat _serialize_to_tensor _get_global_gloo_group loads zip append max _pad_to_largest_tensor max zip _get_global_gloo_group loads get_rank append _serialize_to_tensor _pad_to_largest_tensor randint all_gather get_world_size seed int set_rng_state format from_bytes get_state getLogger strftime getpid info urandom spec_from_file_location exec_module module_from_spec get int setUseOpenCL get setup_custom_environment _configure_libraries endswith setup_environment _import_file import_module setFormatter join format _cached_log_stream getLogger addHandler StreamHandler Formatter mkdirs _ColorfulFormatter dirname colored DEBUG setLevel f_back _getframe f_code _find_caller log isinstance _find_caller log get time _find_caller log tuple tabulate zip getattr replace add_transform add_config_value connect items list add_parser ArgumentParser set_defaults add_subparsers create_argument_parser setup_logger func setLevel parse_args verbosity_to_level get format timer info merge_from_file config_file add_densepose_config get_cfg setup_logger merge_from_list default_setup opts freeze verify_results setup resume_or_load build_model test WEIGHTS Trainer eval_only is_main_process CN kaiming_normal_ constant_ named_parameters NAME DensePosePredictor DensePoseDataFilter DensePoseOutput locals len clamp float min unbind _linear_interpolation_utilities unbind arange grid_sample size expand stack u gt_densepose hasattr y view list clone i unsqueeze full_like zip append v tensor range x len _extract_single_tensors_from_matches_one_image size len extend long cat enumerate DensePoseLosses append tolist range len getLogger _evaluate_predictions_on_coco_gpsm warn _evaluate_predictions_on_coco_gps create_small_table info accumulate summarize DensePoseCocoEval evaluate accumulate summarize DensePoseCocoEval evaluate device numpy clip numpy clip N_PART_LABELS numpy clip has clone has error isinstance getLogger join _get_base_config_dir relpath splitext append listdir merge_from_file join _get_base_config_dir add_densepose_config get_cfg _get_model_config _get_model_config BitMasks rand Boxes Instances to add_pointrend_config CN squeeze unsqueeze grid_sample Size tensor affine_grid int arange view rand point_sample uncertainty_func cat float min shape zeros to transpose get_point_coords_wrt_image append tensor enumerate cat split put_scalar arange size numel binary_cross_entropy_with_logits to cat NAME unsqueeze clone add_tensormask_config new_full int all zeros_like size min max cat tolist empty_like paste_masks_in_image unique append tensor cat clip pred_boxes Instances nonempty _paste_mask_lists_in_image image_size CN add_tridentnet_config CN append block_class range convert_frozen_batchnorm STEM_OUT_CHANNELS BRANCH_DILATIONS WIDTH_PER_GROUP max TRIDENT_STAGE DEFORM_NUM_GROUPS FREEZE_AT RES2_OUT_CHANNELS append freeze range OUT_FEATURES DEPTH RES5_DILATION DEFORM_ON_PER_STAGE BasicStem enumerate pop NORM STRIDE_IN_1X1 TEST_BRANCH_IDX parameters DEFORM_MODULATED NUM_BRANCH NUM_GROUPS scores pred_classes append tensor batched_nms range cat len zeros arange view size repeat float shape sum arange grid_sample from_numpy shape meshgrid to append randn clamp rand Boxes benchmark manual_seed is_available cat merge_from_file get_cfg get_config_file BitMasks rand Boxes Instances to BitMasks rand Boxes Instances to benchmark is_available stack benchmark append Timer format setup IMS_PER_BATCH build_detection_train_loader total reset available iter info seconds trange next range virtual_memory load list format setup build_model build_optimizer islice f WEIGHTS build_detection_train_loader DetectionCheckpointer DistributedDataParallel defrost register_hooks info SimpleTrainer train load Timer list format setup build_model model islice build_detection_test_loader WEIGHTS eval defrost info seconds range evaluator_type join COCOPanopticEvaluator COCOEvaluator SemSegEvaluator append OUTPUT_DIR join format print_csv_format get_evaluator inference_on_dataset build_detection_test_loader OrderedDict info OUTPUT_DIR TEST is_main_process get PeriodicCheckpointer build_lr_scheduler CHECKPOINT_PERIOD format MAX_ITER build_optimizer build_detection_train_loader DetectionCheckpointer info train OUTPUT_DIR format DistributedDataParallel do_train info update test_with_TTA ENABLED register_hooks show join format print waitKey imshow save asarray XYWH_ABS convert Boxes Instances XYXY_ABS add_export_config | # BCRF - Detectron bcrf-detectron is an integration of the bcrf model on top of the panoptic-fpn model of Facebook AI [Detectron2](https://github.com/facebookresearch/detectron2). The detectron2 repo was cloned and our bcrf model was added to it for end to end training of the bcrf model. <div align="center"> <img src="https://user-images.githubusercontent.com/1381301/66535560-d3422200-eace-11e9-9123-5535d469db19.png"/> </div> ## Installation See [INSTALL.md](INSTALL.md). ## Quick Start See [GETTING_STARTED.md](GETTING_STARTED.md), for training, evaluation and inference | 3,505 |
sahandha/eif | ['anomaly detection'] | ['Extended Isolation Forest'] | setup.py eif_old.py version.py PathFactor c_factor iForest iTree Node all_branches read append right left | <a href="https://github.com/sahandha/eif/releases/tag/v2.0.2"> <img src="https://img.shields.io/badge/release-v2.0.2-green.svg" alt="latest release" /></a><a href="https://pypi.org/project/eif/2.0.2/"><img src="https://img.shields.io/badge/pypi-v2.0.2-orange.svg" alt="pypi version"/></a><a href="https://doi.org/10.1109/TKDE.2019.2947676"><img src="https://img.shields.io/badge/DOI-10.1109%2FTKDE.2019.2947676-blue.svg"></a> ## Table of contents - [Extended Isolation Forest](#Extended-Isolation-Forest) - [Summary](#Summary) - [Motivation](#Motivation) - [Isolation Forest](#Isolation-Forest) - [Extension](#Extension) - [The Code](#The-Code) - [Installation](#Installation) - [Requirements](#Requirements) | 3,506 |
saic-vul/adaptis | ['panoptic segmentation', 'instance segmentation', 'semantic segmentation'] | ['AdaptIS: Adaptive Instance Selection Network'] | adaptis/model/toy/models.py adaptis/model/metrics.py adaptis/model/adaptis.py adaptis/utils/args.py adaptis/data/toy.py adaptis/inference/prediction_model.py adaptis/data/base.py adaptis/model/toy/unet.py adaptis/coco/utils.py adaptis/utils/log.py adaptis/model/ops.py adaptis/model/cityscapes/resnet.py train_toy_v2.py adaptis/utils/block.py adaptis/utils/exp.py adaptis/utils/misc.py adaptis/engine/trainer.py adaptis/data/coco.py adaptis/inference/adaptis_sampling.py adaptis/inference/cython_utils/setup.py train_cityscapes.py adaptis/data/cityscapes.py adaptis/model/losses.py adaptis/model/cityscapes/resnet_fpn.py adaptis/model/cityscapes/models.py adaptis/coco/panoptic_metric.py train_toy.py adaptis/model/cityscapes/deeplab_v3.py adaptis/model/basic_blocks.py adaptis/utils/vis.py init_model train add_exp_args init_model train add_exp_args init_model train add_exp_args PQStat PQStatCat print_pq_stat pq_compute rgb2id IdGenerator id2rgb AdaptISDataset get_unique_labels CityscapesDataset CocoDataset ToyDataset init_proposals_head AdaptISTrainer predict_instances_random predict_instances_with_proposals get_offsets get_panoptic_segmentation cut_prob_with_radius get_map_score sample_points_with_mask get_random_points AdaptISPrediction AdaptIS SepConvHead SimpleConvController SeparableConv2D ConvHead FCController SoftmaxCrossEntropyLoss SigmoidBinaryCrossEntropyLoss AdaptISProposalsLossIoU NormalizedFocalLossSoftmax FocalLoss NormalizedFocalLossSigmoid TrainMetric _compute_iou AdaptiveIoU AdaIN AppendCoordFeatures ExtractQueryFeatures AverageMaskedFeatures DeepLabV3Plus _ASPPConv _SkipProject _ASPP _AsppPooling _DeepLabHead get_fpn_model CityscapesAdaptISHead get_cityscapes_model ResNetBackbone ResNetFPN _FPNHead SemanticFPNHead ConvBlock ToyAdaptISHead get_unet_model down_block up_block ConvBlock UNet get_common_arguments get_train_arguments NamedHybridBlock init_experiment find_last_exp_indx TqdmToLogger ScalarAccumulator SummaryWriterAvg dict_batchify_fn save_checkpoint get_dict_batchify_fn get_unique_labels draw_instance_map blend_mask get_boundaries draw_probmap visualize_instances draw_points visualize_mask get_palette visualize_proposals add_argument initialize partial Xavier Compose load_pretrained_weights get_cityscapes_model BatchNorm edict SyncBatchNorm validation partial CityscapesDataset AdaptISTrainer batch_size Compose training dataset_path crop_size input_normalization AdaptISProposalsLossIoU info NormalizedFocalLossSoftmax edict range NormalizedFocalLossSigmoid get_unet_model ToyDataset get items remove uint64 list astype set add unique zip rgb2id print pq_average format astype int32 list ndarray isinstance tuple copy shape append zeros range bincount flatten tolist add_proposals_head setattr hybridize zeros_like get_offsets get_semantic_segmentation flatten get_features argmax shape array append sum range predict_instances_random unique zip int predict_instances_with_proposals isinstance zeros full len uint8 blur find_local_maxima ones get_point_invariant_states dilate astype copy cut_prob_with_radius append zeros sum range sum get_random_points get_instance_masks get_point_invariant_states copy cut_prob_with_radius sample_points_with_mask argmax full range append poisson_disc_samples shuffle list where sample array range append zeros_like ceil int range append zeros_like asnumpy where full_like HybridSequential AdaptIS AdaptIS HybridSequential ConvBlock add norm_layer add HybridSequential Conv2D Activation add_argument ArgumentParser get_common_arguments add_argument Path exp_name str addHandler stem strftime parse_args setFormatter ctx today add_exp_args copy mkdir logs_path info get_train_arguments FileHandler gpus Formatter find_last_exp_indx len isnumeric int stem iterdir max str save_parameters mkdir info append items list isinstance uint8 get_boundaries astype float32 get_palette max zeros range get_palette draw_probmap circle circle copy max get_palette draw_instance_map uint8 astype copy getStructuringElement astype logical_and flatten logical_or logical_xor MORPH_ELLIPSE unique zeros bool | saic-vul/adaptis | 3,507 |
saic-vul/fbrs_interactive_segmentation | ['interactive segmentation'] | ['f-BRS: Rethinking Backpropagating Refinement for Interactive Segmentation'] | isegm/data/berkeley.py isegm/model/losses.py isegm/data/davis.py isegm/utils/exp.py isegm/data/lvis.py isegm/model/modeling/resnet.py isegm/inference/predictors/brs_functors.py isegm/inference/clicker.py isegm/utils/vis.py isegm/data/points_sampler.py isegm/model/is_deeplab_model.py models/sbd/r50_dh128.py isegm/model/modeling/deeplab_v3.py train.py isegm/model/metrics.py isegm/data/zoom_in.py isegm/inference/predictors/brs.py isegm/model/syncbn/modules/nn/syncbn.py models/sbd/r101_dh256.py isegm/utils/misc.py isegm/model/syncbn/modules/functional/__init__.py isegm/data/sbd.py isegm/model/initializer.py isegm/utils/cython/dist_maps.py isegm/model/syncbn/modules/nn/__init__.py scripts/evaluate_model.py interactive_demo/wrappers.py models/sbd/r34_dh128.py isegm/utils/log.py isegm/inference/transforms/base.py isegm/model/syncbn/modules/functional/syncbn.py isegm/inference/predictors/base.py isegm/inference/transforms/flip.py isegm/model/is_hrnet_model.py models/sbd/hrnet48_ocr128.py isegm/data/base.py isegm/utils/cython/__init__.py isegm/model/syncbn/modules/functional/_csrc.py isegm/inference/evaluation.py isegm/inference/transforms/zoom_in.py isegm/inference/transforms/limit_longest_side.py isegm/model/ops.py isegm/model/modeling/ocr.py isegm/model/modeling/hrnet_ocr.py isegm/model/modeling/resnetv1b.py isegm/inference/utils.py isegm/model/modeling/basic_blocks.py isegm/data/grabcut.py isegm/inference/transforms/crops.py demo.py interactive_demo/controller.py models/sbd/hrnet32_ocr128.py isegm/inference/predictors/brs_losses.py interactive_demo/app.py isegm/inference/transforms/__init__.py isegm/engine/trainer.py models/sbd/hrnet18_ocr64.py scripts/convert_weights_mx2pt.py isegm/inference/predictors/__init__.py interactive_demo/canvas.py main parse_args main load_module parse_args InteractiveDemoApp AutoScrollbar handle_exception CanvasImage InteractiveController FocusLabelFrame FocusHorizontalScale FocusButton FocusCheckButton BoundedNumericalEntry ISDataset get_unique_labels BerkeleyDataset DavisDataset GrabCutDataset LvisDataset BasePointSampler SinglePointSampler MultiPointSampler SBDEvaluationDataset SBDDataset ZoomIn fit_bbox_ratio _CustomDP ISTrainer Clicker evaluate_sample evaluate_dataset load_hrnet_is_model load_is_model compute_noc_metric get_results_table get_dataset find_checkpoint get_iou load_deeplab_is_model get_time_metrics BasePredictor InputBRSPredictor BRSBasePredictor HRNetFeatureBRSPredictor FeatureBRSPredictor InputOptimizer ScaleBiasOptimizer BaseOptimizer BRSMaskLoss OracleMaskLoss get_predictor BaseTransform SigmoidForPred get_offsets Crops AddHorizontalFlip LimitLongestSide get_object_roi ZoomIn get_roi_image_nd check_object_roi Bilinear Initializer XavierGluon DistMapsModel get_deeplab_model DistMapsHRNetModel get_hrnet_model SigmoidBinaryCrossEntropyLoss FocalLoss NormalizedFocalLossSigmoid TrainMetric _compute_iou AdaptiveIoU select_activation_function BilinearConvTranspose2d DistMaps SepConvHead ConvHead SeparableConv2d DeepLabV3Plus _ASPPConv _SkipProject _ASPP _AsppPooling _DeepLabHead HighResolutionNet HighResolutionModule SpatialGather_Module ObjectAttentionBlock2D SpatialOCR_Module ResNetBackbone BasicBlockV1b _safe_state_dict_filtering resnet34_v1b BottleneckV1b resnet101_v1s resnet50_v1s ResNetV1b resnet152_v1s _count_samples BatchNorm2dSyncFunc _load_C_extensions BatchNorm2dNoSync BatchNorm2dSync _BatchNorm init_experiment find_resume_exp find_last_exp_indx get_model_family_tree load_config_file update_config load_config add_logging ScalarAccumulator TqdmToLogger SummaryWriterAvg expand_bbox get_dims_with_exclusion get_bbox_iou get_segments_iou save_checkpoint get_unique_labels get_bbox_from_mask clamp_bbox draw_instance_map blend_mask get_boundaries draw_probmap visualize_instances draw_with_blend_and_clicks draw_points visualize_mask get_palette visualize_proposals init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train main parse_args convert_mx2pt main parse_args get_eval_exp_name save_results INTERACTIVE_MODELS_PATH mainloop load_is_model deiconify Tk InteractiveDemoApp find_checkpoint device parse_args minsize checkpoint add_argument cfg load_config_file ArgumentParser device cpu init_experiment set_sharing_strategy load_module model_path spec_from_file_location exec_module module_from_spec bincount flatten tolist get_sample time list tqdm evaluate_sample unsqueeze append tensor range set_gt_mask len zeros_like Clicker sum map len load list keys isinstance parameters eval load_state_dict get_hrnet_model to len to size get_deeplab_model parameters eval load_state_dict float numpy len COCO_MVAL_PATH SBDEvaluationDataset DAVIS_PATH SBD_PATH GRABCUT_PATH BerkeleyDataset GrabCutDataset BERKELEY_PATH DavisDataset sum mean sum array append list endswith Path rglob exists split str timedelta len update InputOptimizer isinstance dict BasePredictor startswith FeaturePredictor InputBRSPredictor ZoomIn ScaleBiasOptimizer ceil int range append expand_bbox copy get_bbox_from_mask clamp_bbox is_positive int round max isinstance is_positive DistMapsModel DistMapsHRNetModel get_dims_with_exclusion zeros_like where full_like numpy dim Module isinstance norm_layer Sequential ReLU Conv2d print items list update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict size enumerate join glob extend dirname abspath Path device update_config load_config exp_name resume_exp list multi_gpu stem exit strftime LOGS_PATH device_count get_model_family_tree range EXPS_PATH today copy mkdir pformat info model_path join gpus print find_resume_exp ngpus find_last_exp_indx add_logging len append stem parents isnumeric int stem iterdir max glob sorted print exit items list update parent stem cwd absolute dict load_config_file exists update str setFormatter addHandler today strftime Formatter FileHandler list range remove str mkdir save info any int round max get_segments_iou min max uint8 get_boundaries astype float32 get_palette max zeros range get_palette draw_probmap circle circle copy max get_palette draw_instance_map uint8 astype copy getStructuringElement astype logical_and flatten logical_or logical_xor MORPH_ELLIPSE unique zeros bool uint8 astype copy draw_points get_palette max init_model train Compose apply get_hrnet_model XavierGluon load_pretrained_weights HRNETV2_W18 device to edict validation partial MultiPointSampler batch_size ISTrainer Compose SBD_PATH SBDDataset training crop_size MultiStepLR input_normalization info SigmoidBinaryCrossEntropyLoss num_max_points edict range NormalizedFocalLossSigmoid HRNETV2_W32 get_deeplab_model load items list parent convert_mx2pt print stem OrderedDict Path tensor asnumpy replace logs_path EXPS_PATH target_iou config_path Path max logs_path n_clicks save_results get_predictor get_eval_exp_name evaluate_dataset get_dataset split mkdir mode split int compute_noc_metric n_clicks target_iou print tolist get_results_table mkdir get_time_metrics exists mode | ## f-BRS: Rethinking Backpropagating Refinement for Interactive Segmentation [[Paper]](https://arxiv.org/abs/2001.10331) [[PyTorch]](https://github.com/saic-vul/fbrs_interactive_segmentation/tree/master) [[MXNet]](https://github.com/saic-vul/fbrs_interactive_segmentation/tree/mxnet) [[Video]](https://youtu.be/ArcZ5xtyMCk) This repository provides code for training and testing state-of-the-art models for interactive segmentation with the official PyTorch implementation of the following paper: > **f-BRS: Rethinking Backpropagating Refinement for Interactive Segmentation**<br> > [Konstantin Sofiiuk](https://github.com/ksofiyuk), [Ilia Petrov](https://github.com/ptrvilya), [Olga Barinova](https://github.com/OlgaBarinova), [Anton Konushin](https://scholar.google.com/citations?user=ZT_k-wMAAAAJ)<br> > Samsung AI Center Moscow <br> > https://arxiv.org/abs/2001.10331 Please see [the video](https://youtu.be/ArcZ5xtyMCk) below explaining how our algorithm works: <p align="center"> <a href="https://youtu.be/ArcZ5xtyMCk"> <img src="./images/fbrs_video_preview.gif" alt="drawing" width="70%"/> | 3,508 |
saic-vul/ritm_interactive_segmentation | ['interactive segmentation'] | ['Reviving Iterative Training with Mask Guidance for Interactive Segmentation'] | scripts/annotations_conversion/openimages.py models/noniterative_baselines/r34_dh128_lvis.py isegm/inference/predictors/brs_functors.py isegm/data/datasets/openimages.py models/noniterative_baselines/r34_dh128_openimages.py isegm/model/is_deeplab_model.py isegm/data/datasets/berkeley.py isegm/inference/predictors/brs.py models/noniterative_baselines/hrnet18_ocr64_coco.py isegm/model/initializer.py isegm/data/datasets/davis.py models/noniterative_baselines/r34_dh128_coco.py models/iter_mask/hrnet32_cocolvis_itermask_3p.py isegm/inference/transforms/base.py models/noniterative_baselines/r34_dh128_vocsbd.py isegm/data/datasets/__init__.py isegm/inference/transforms/zoom_in.py isegm/data/compose.py isegm/data/transforms.py isegm/inference/transforms/crops.py demo.py interactive_demo/controller.py isegm/model/is_model.py models/iter_mask/hrnet18s_cocolvis_itermask_3p.py isegm/engine/optimizer.py isegm/engine/trainer.py models/noniterative_baselines/hrnet18_ocr64_sbd.py models/noniterative_baselines/r34_dh128_sbd.py isegm/inference/predictors/__init__.py isegm/data/datasets/coco_lvis.py isegm/utils/serialization.py models/noniterative_baselines/hrnet18_ocr64_openimages.py isegm/model/losses.py models/noniterative_baselines/hrnet18_ocr64_cocolvis.py isegm/data/datasets/images_dir.py models/cocolvis_loss_ablation/hrnet18_ocr64_bce.py isegm/data/points_sampler.py isegm/data/datasets/sbd.py isegm/model/modeling/deeplab_v3.py isegm/model/metrics.py isegm/utils/misc.py scripts/annotations_conversion/common.py scripts/evaluate_model.py isegm/inference/transforms/flip.py isegm/data/datasets/ade20k.py scripts/convert_annotations.py models/iter_mask/hrnet18_sbd_itermask_3p.py isegm/inference/evaluation.py isegm/inference/transforms/limit_longest_side.py isegm/model/modeling/ocr.py isegm/data/datasets/pascalvoc.py models/cocolvis_loss_ablation/hrnet18_ocr64_nfl.py isegm/inference/predictors/brs_losses.py interactive_demo/app.py isegm/utils/exp.py isegm/model/modeling/resnet.py isegm/inference/clicker.py isegm/utils/vis.py isegm/data/datasets/coco.py isegm/utils/cython/dist_maps.py interactive_demo/wrappers.py isegm/inference/predictors/base.py isegm/model/is_hrnet_model.py isegm/data/base.py isegm/model/modeling/hrnet_ocr.py isegm/model/modeling/basic_blocks.py interactive_demo/canvas.py isegm/model/modifiers.py isegm/data/sample.py isegm/data/datasets/grabcut.py scripts/annotations_conversion/coco_lvis.py models/cocolvis_loss_ablation/hrnet18_ocr64_fl.py train.py models/cocolvis_loss_ablation/hrnet18_ocr64_softiou.py isegm/utils/log.py models/noniterative_baselines/hrnet18_ocr64_ade20k.py models/noniterative_baselines/r34_dh128_cocolvis.py isegm/utils/cython/__init__.py isegm/data/datasets/lvis.py models/noniterative_baselines/hrnet18_ocr64_lvis.py isegm/model/ops.py models/noniterative_baselines/hrnet18_ocr64_vocsbd.py isegm/model/modeling/resnetv1b.py isegm/inference/utils.py isegm/utils/distributed.py models/noniterative_baselines/r34_dh128_ade20k.py scripts/plot_ious_analysis.py models/iter_mask/hrnet18_cocolvis_itermask_3p.py isegm/inference/transforms/__init__.py isegm/utils/exp_imports/default.py scripts/annotations_conversion/ade20k.py main parse_args main load_module parse_args InteractiveDemoApp AutoScrollbar handle_exception CanvasImage InteractiveController FocusLabelFrame FocusHorizontalScale FocusButton FocusCheckButton BoundedNumericalEntry ISDataset ProportionalComposeDataset ComposeDataset get_point_candidates BasePointSampler MultiPointSampler generate_probs DSample ZoomIn UniformRandomResize remove_image_only_transforms ADE20kDataset BerkeleyDataset CocoDataset CocoLvisDataset DavisDataset GrabCutDataset ImagesDirDataset LvisDataset OpenImagesDataset PascalVocDataset SBDEvaluationDataset SBDDataset get_optimizer get_next_points load_weights ISTrainer Click Clicker evaluate_sample evaluate_dataset load_is_model compute_noc_metric get_results_table load_single_is_model get_dataset find_checkpoint get_iou get_time_metrics BasePredictor InputBRSPredictor BRSBasePredictor HRNetFeatureBRSPredictor FeatureBRSPredictor InputOptimizer ScaleBiasOptimizer BaseOptimizer BRSMaskLoss OracleMaskLoss get_predictor BaseTransform SigmoidForPred get_offsets Crops AddHorizontalFlip LimitLongestSide get_object_roi ZoomIn get_roi_image_nd check_object_roi Bilinear Initializer XavierGluon DeeplabModel HRNetModel ISModel split_points_by_order SigmoidBinaryCrossEntropyLoss FocalLoss SoftIoU NormalizedFocalLossSigmoid TrainMetric _compute_iou AdaptiveIoU LRMult DistMaps BatchImageNormalize ScaleLayer select_activation_function BilinearConvTranspose2d SepConvHead ConvHead SeparableConv2d DeepLabV3Plus _ASPPConv _SkipProject _ASPP _AsppPooling _DeepLabHead HighResolutionNet HighResolutionModule SpatialGather_Module ObjectAttentionBlock2D SpatialOCR_Module ResNetBackbone BasicBlockV1b _safe_state_dict_filtering resnet34_v1b BottleneckV1b resnet101_v1s resnet50_v1s ResNetV1b resnet152_v1s get_sampler get_dp_wrapper synchronize get_world_size get_rank reduce_loss_dict init_experiment find_resume_exp find_last_exp_indx get_model_family_tree load_config_file update_config load_config add_logging ScalarAccumulator TqdmToLogger SummaryWriterAvg expand_bbox get_dims_with_exclusion get_bbox_iou get_segments_iou get_labels_with_sizes save_checkpoint get_bbox_from_mask clamp_bbox serialize get_class_from_str load_model get_classname get_default_params get_config_repr draw_instance_map blend_mask get_boundaries draw_probmap visualize_instances draw_with_blend_and_clicks draw_points visualize_mask get_palette visualize_proposals init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train init_model main train main parse_args get_prediction_vis_callback save_iou_analysis_data save_results get_predictor_and_zoomin_params get_checkpoints_list_and_logs_path main parse_args main parse_args get_target_file_path get_files_list create_annotations worker_annotations_loader load_and_parse_annotations create_annotations get_coco_sample encode_masks decode_masks get_segments_intersection get_bbox_intersection get_masks_hierarchy get_iou get_bbox_area parallel_map create_annotations INTERACTIVE_MODELS_PATH mainloop load_is_model deiconify Tk InteractiveDemoApp find_checkpoint device parse_args minsize checkpoint add_argument cfg load_config_file ArgumentParser device cpu init_experiment model_path set_sharing_strategy getattr load_module temp_model_path spec_from_file_location exec_module module_from_spec append array range choice flatten shape pad unravel_index len append get lr_mult named_parameters info append uint8 size logical_and astype logical_not clone argwhere float max range update load_state_dict state_dict get_sample time list tqdm evaluate_sample image append gt_mask range len zeros_like Clicker sum map len load isinstance load_single_is_model load_model parameters eval load_state_dict to COCO_MVAL_PATH SBDEvaluationDataset PascalVocDataset DAVIS_PATH SBD_PATH GRABCUT_PATH BerkeleyDataset GrabCutDataset BERKELEY_PATH DavisDataset PASCALVOC_PATH sum mean sum array append list endswith Path rglob exists split str timedelta len update InputOptimizer isinstance dict BasePredictor startswith FeaturePredictor InputBRSPredictor ZoomIn ScaleBiasOptimizer ceil int range append expand_bbox copy get_bbox_from_mask clamp_bbox is_positive int round max isinstance is_positive int len zeros numpy range enumerate get_dims_with_exclusion zeros_like where full_like numpy dim Module isinstance norm_layer Sequential ReLU Conv2d print items list update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict update list _safe_state_dict_filtering load_state_dict ResNetV1b keys state_dict barrier get_world_size set_start_method Path device update_config max load_config exp_name resume_exp list multi_gpu stem set_device exit strftime LOGS_PATH device_count get_model_family_tree temp_model_path range EXPS_PATH init_process_group synchronize get_world_size today copy distributed mkdir pformat info model_path join remove gpus print find_resume_exp ngpus find_last_exp_indx add_logging local_rank len append stem parents isnumeric int stem iterdir max glob sorted print exit items list update parent stem cwd absolute dict load_config_file exists update str setFormatter addHandler today strftime Formatter FileHandler list range remove str mkdir save info any int round max get_segments_iou min max bincount flatten tolist parameters list update items list get_class_from_str dict get_default_params items list items list mro dict parameters __qualname__ __module__ join getattr __import__ split uint8 get_boundaries astype float32 get_palette max zeros range get_palette draw_probmap circle circle copy max get_palette draw_instance_map uint8 astype copy getStructuringElement astype logical_and flatten logical_or logical_xor MORPH_ELLIPSE unique zeros bool uint8 astype copy draw_points get_palette max init_model train HRNetModel apply XavierGluon load_pretrained_weights HRNETV2_W18 device to edict partial MultiPointSampler batch_size ISTrainer Compose CocoLvisDataset crop_size MultiStepLR LVIS_PATH SigmoidBinaryCrossEntropyLoss edict num_max_points run FocalLoss NormalizedFocalLossSigmoid SoftIoU HRNETV2_W18_SMALL LVIS_v1_PATH SBD_PATH SBDDataset HRNETV2_W32 ADE20kDataset ADE20K_PATH CocoDataset COCO_PATH LvisDataset OpenImagesDataset OPENIMAGES_PATH ComposeDataset DeeplabModel config_path ADE20K_PATH set_start_method create_annotations OPENIMAGES_PATH Path LVIS_PATH COCO_PATH split logs_path EXPS_PATH target_iou add_mutually_exclusive_group Path max save_iou_analysis_data save_results get_predictor_and_zoomin_params get_predictor evaluate_dataset get_dataset iou_analysis get_checkpoints_list_and_logs_path mkdir mode clicks_limit startswith int n_clicks list sorted EXPS_PATH glob exp_path stem relative_to logs_path split int join compute_noc_metric n_clicks target_iou print tolist get_results_table min mean print_ious mkdir get_time_metrics exists mkdir mkdir print plots_path mkdir split arange grid xticks max yticks str list defaultdict title savefig legend get_target_file_path plot get_files_list mean plots_path join items print figure len glob int sorted list sorted EXPS_PATH glob stem exp_models extend files Path model_dirs split glob list len list loadmat parallel_map zip enumerate load_and_parse_annotations logical_not get_bbox_from_mask max list get_bbox_iou logical_and annotations append get get_coco_sample dataset_samples LvisDataset mkdir zip keys get_mask_from_polygon items CocoDataset get_masks_hierarchy dict tqdm zeros len labels_path str COLOR_BGR2RGB astype images_path dict int32 full_like imread get_image_name cvtColor append result enumerate defaultdict get_root_indx append zeros range len get_segments_intersection all len zip append enumerate append Path | ## Reviving Iterative Training with Mask Guidance for Interactive Segmentation <p align="center"> <a href="https://paperswithcode.com/sota/interactive-segmentation-on-grabcut?p=reviving-iterative-training-with-mask"> <img src="https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/reviving-iterative-training-with-mask/interactive-segmentation-on-grabcut"/> </a> <a href="https://paperswithcode.com/sota/interactive-segmentation-on-berkeley?p=reviving-iterative-training-with-mask"> <img src="https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/reviving-iterative-training-with-mask/interactive-segmentation-on-berkeley"/> </a> </p> <p align="center"> | 3,509 |
saidbm24/CNN-for-BIRADS | ['breast cancer detection', 'medical diagnosis'] | ['High-Resolution Breast Cancer Screening with Multi-View Deep Convolutional Neural Networks'] | birads_prediction_torch.py layers_torch.py test_inference.py layers_tf.py models_torch.py utils.py models_tf.py birads_prediction_tf.py convert_model.py inference inference tf_to_torch fc_layer all_views_global_avg_pool all_views_gaussian_noise_layer all_views_max_pool all_views_flattening_layer dropout_layer gaussian_noise_layer softmax_layer all_views_conv_layer AllViewsMaxPool AllViewsPad AllViewsAvgPool AllViewsGaussianNoise AllViewsConvLayer baseline BaselineBreastModel BaselineBreastModel get_torch_gpu test_torch_golden_equal test_tf_cpu_gpu_equal get_tf_cpu get_torch_cpu get_tf_gpu test_torch_cpu_gpu_equal test_tf_golden_equal load_images normalize_single_image set_random_seed load str print load_images load_state_dict device to Graph BaselineBreastModel device max_pool get_shape avg_pool get_shape concat int reshape fully_connected dropout shape add_n random_normal gaussian_noise_layer fc_layer all_views_global_avg_pool all_views_gaussian_noise_layer all_views_max_pool all_views_flattening_layer dropout_layer softmax_layer all_views_conv_layer astype float32 normalize_single_image expand_dims imread | # High-resolution breast cancer screening with multi-view deep convolutional neural networks ## Introduction This is an implementation of the model used for [BI-RADS](https://breast-cancer.ca/bi-rads/) classification as described in our paper ["High-resolution breast cancer screening with multi-view deep convolutional neural networks"](https://arxiv.org/abs/1703.07047). The implementation allows users to get the BI-RADS prediction by applying our pretrained CNN model on standard screening mammogram exam with four views. As a part of this repository, we provide a sample exam (in `images` directory). The model is implemented in both TensorFlow and PyTorch. ## Prerequisites * Python (3.6) * TensorFlow (1.5.0) or PyTorch (0.4.0) * NumPy (1.14.3) * SciPy (1.0.0) * Pillow (5.1.0) ## Data | 3,510 |
saikatbsk/Vincent-AI-Artist | ['style transfer'] | ['A Neural Algorithm of Artistic Style'] | main.py combine_loss_and_gradient get_total_loss prepare_image Evaluator gram_matrix preprocess load_weights eval_loss_and_grads content_loss deprocess total_variation_loss strToBool style_loss expand_dims imread astype imresize transpose astype print File close range set_weights dot transpose batch_flatten reshape astype f_outputs gram_matrix square variable style_loss append function preprocess uniform num_iter | # Vincent : AI Artist Style transfer is the technique of recomposing images in the style of other images. ### Requirements * Python (https://www.python.org/downloads/) * Numpy (http://www.numpy.org/) * Keras (http://keras.io/) * Scipy (https://www.scipy.org/) * Pillow (https://python-pillow.org/) * Theano (http://deeplearning.net/software/theano/) * h5py (http://h5py.org/) | 3,511 |
sainikmahata/FIRE-Dravidian-sentiment_analysis | ['sentiment analysis'] | ['JUNLP@Dravidian-CodeMix-FIRE2020: Sentiment Classification of Code-Mixed Tweets using Bi-Directional RNN and Language Tags'] | Sentiment Analysis of English-Tamil Code-mixed Data/Train/preprocess.py Sentiment Analysis of English-Tamil Code-mixed Data/Test/test.py Sentiment Analysis of English-Tamil Code-mixed Data/Train/dict_creation.py Sentiment Analysis of English-Tamil Code-mixed Data/Train/train_bi.py Sentiment Analysis of English-Tamil Code-mixed Data/Test/preprocess.py | sainikmahata/FIRE-Dravidian-sentiment_analysis | 3,512 |
saitcakmak/gp-sampling | ['gaussian processes'] | ['Efficiently Sampling Functions from Gaussian Process Posteriors'] | gp_sampling/utils/random_gp.py test/test_decoupled.py gp_sampling/utils/__init__.py gp_sampling/basis_functions.py gp_sampling/thompson_samplers.py setup.py test/test_base.py gp_sampling/base.py gp_sampling/__init__.py gp_sampling/decoupled_samplers.py gp_sampling/utils/layer.py test/test_thompson_samplers.py test/utils.py BayesianLinearSampler Sampler CompositeSampler Basis KernelBasis RandomFourierBasis decoupled_sampler exact_ts decoupled_ts continuous_decoupled_ts Layer generate_random_gp TestBase TestDecoupledSampler TestDecoupledTS BotorchTestCase list _create_prior_fn warn _input_batch_shape _create_update_fn squeeze argmax to argmax max exp gen_candidates_scipy sample_shape warn gather mean any batched_multinomial permute posterior_sampler argmax std Standardize fit_gpytorch_model rand ExactMarginalLogLikelihood likelihood SingleTaskGP device | # GP Sampling Update: This functionality is now available in BoTorch, [see here.](https://github.com/pytorch/botorch/blob/main/botorch/utils/gp_sampling.py) It is recommended to use the BoTorch version since it will be better maintained going forward. A minimal implementation of decoupled samplers from "Efficiently Sampling Functions from Gaussian Process Posteriors" (https://arxiv.org/abs/2002.09309) on BoTorch / GPyTorch. Original implementation by the author (based on GPflow) is found at https://github.com/j-wilson/GPflowSampling . Supports decoupled sampling from BoTorch `SingleTaskGP` models. It is set to work with the default Matern kernel (`ScaleKernel(MaternKernel(...))`), and also supports the Squared Exponential kernel (`ScaleKernel(RBFKernel(...))`). | 3,513 |
sajadn/QHAdam | ['stochastic optimization'] | ['Quasi-hyperbolic momentum and Adam for deep learning'] | QHAdam.py QHAdam | # QHAdam Keras implementation of Quasi-Hyperbolic Adam [https://arxiv.org/pdf/1810.06801.pdf] You can import QHAdam easily and use it for training your models. | 3,514 |
saleiro/Financial-Sentiment-Analysis | ['sentiment analysis', 'word embeddings'] | ['FEUP at SemEval-2017 Task 5: Predicting Sentiment Polarity and Intensity with Financial Word Embeddings'] | Code/sentiment_analysis.py Code/preprocess.py normalize_news news_crawled any2utf8 replace_numbers first_pass create_sentences process_crawled normalize MeanEmbeddingVectorizer getLexicon loadmpqa loadmpqas train_predict loadl main get_parser readfile isinstance str join replace any2utf8 replace_numbers words sub range len findall replace join punctuation replace first_pass translate tokenize join punctuation replace any2utf8 first_pass translate tokenize join punctuation replace print first_pass write close translate listdir tokenize open normalize_news join replace write close listdir open load replace len write range open add_argument ArgumentParser transform print loadmpqa len fit set loadmpqas DictVectorizer intersection loadl float append split MeanEmbeddingVectorizer mean_absolute_error list index2word shape predict concatenate CountVectorizer zip load toarray cosine_similarity getLexicon print fit dict ExtraTreesRegressor transform syn0 array len train_predict parse_args train get_parser readfile | # Financial-Sentiment-Analysis This repository contains the code and resources developed for participating at SemEval 2017 Task 5: Fine-Grained Sentiment Analysis on Financial Microblogs and News. For details, have a look to the paper on [arxiv](https://arxiv.org/pdf/1704.05091.pdf). | 3,515 |
saleiro/SemEval2017-Task5 | ['sentiment analysis', 'word embeddings'] | ['FEUP at SemEval-2017 Task 5: Predicting Sentiment Polarity and Intensity with Financial Word Embeddings'] | Code/sentiment_analysis.py Code/preprocess.py normalize_news news_crawled any2utf8 replace_numbers first_pass create_sentences process_crawled normalize MeanEmbeddingVectorizer getLexicon loadmpqa loadmpqas train_predict loadl main get_parser readfile isinstance str join replace any2utf8 replace_numbers words sub range len findall replace join punctuation replace first_pass translate tokenize join punctuation replace any2utf8 first_pass translate tokenize join punctuation replace print first_pass write close translate listdir tokenize open normalize_news join replace write close listdir open load replace len write range open add_argument ArgumentParser transform print loadmpqa len fit set loadmpqas DictVectorizer intersection loadl float append split MeanEmbeddingVectorizer mean_absolute_error list index2word shape predict concatenate CountVectorizer zip load toarray cosine_similarity getLexicon print fit dict ExtraTreesRegressor transform syn0 array len train_predict parse_args train get_parser readfile | # Financial-Sentiment-Analysis This repository contains the code and resources developed for participating at SemEval 2017 Task 5: Fine-Grained Sentiment Analysis on Financial Microblogs and News. For details, have a look to the paper on [arxiv](https://arxiv.org/pdf/1704.05091.pdf). | 3,516 |
salesforce/cos-e | ['common sense reasoning'] | ['Explain Yourself! Leveraging Language Models for Commonsense Reasoning'] | code/generation/train_commonsenseqa_v1.1.py code/parse-commonsenseQA.py code/classification/run_commonsenseQA_expl_v1.1.py code/classification/run_commonsenseQA_expl_v1.0.py code/generation/train_commonsenseqa_v1.0.py read_cqa_examples InputFeatures CQAExample accuracy _truncate_seq_pair convert_examples_to_features select_field main read_cqa_examples InputFeatures CQAExample accuracy _truncate_seq_pair convert_examples_to_features select_field main top_k_logits sample_sequence parse_cqa CommonsenseExample download_cqa run_model sample download pre_process_datasets computeBLEU top_k_logits sample_sequence parse_cqa CommonsenseExample download_cqa run_model sample download pre_process_datasets computeBLEU explanation info InputFeatures convert_tokens_to_ids question _truncate_seq_pair choices append label tokenize enumerate len pop len argmax gradient_accumulation_steps from_pretrained BertAdam model tuple zero_grad DataParallel DataLoader numpy ArgumentParser device output_dir do_train do_flip tensor FP16_Optimizer save seed read_cqa_examples list eval_batch_size DDP data_dir set_device len max_seq_length DistributedSampler do_select half device_count FusedAdam TensorDataset convert_examples_to_features warmup_linear parse_args to SequentialSampler state_dict manual_seed_all format init_process_group param_groups get_world_size mean eval num_train_epochs info manual_seed fp16 train trange enumerate load join int learning_rate warmup_proportion loss_scale bert_model backward add_argument accuracy named_parameters RandomSampler tqdm select_field bool step local_rank train_batch_size makedirs text len natural_tensor append enumerate format print dirname download_from_url makedirs join basename getcwd append download makedirs append join topk repeat full from_pretrained data do_eval config model train_batch_size DataLoader ArgumentParser device output_dir do_train save pre_process_datasets computeBLEU OpenAIGPTLMHeadModel seed list exp len device_count TensorDataset load_state_dict parse_args to SequentialSampler range detok_batch state_dict format num_eval_print parse_cqa size eval num_train_epochs info manual_seed n_train_print enumerate load join int backward print add_argument min OpenAIAdam extend RandomSampler named_parameters tqdm do_test_train setting model_name train step do_test makedirs do_eval_train | # Commonsense Explanations (CoS-E) Dataset This repository contains human commonsense explanations for the [Commonsense Question Answering (CQA)](https://www.tau-nlp.org/commonsenseqa) dataset. We collected explanations for the train and dev sets for v1.0 and v1.11 of CQA. The instance ids correspond to ids in the CQA datasets. Each file has two types of explanations: 1. Selected: the highlighted text span in the question that serves as justification for the answer choice. 2. Open-ended: free-form natural language explanation. Along with the raw files, we also included the post-processed files for each of the categories. However, note that we used the original raw files (even though noisy) for all our experiments in our paper. ### Update on June 15, 2020 We have included the original training, dev and test (without answers) from CQA v1.0 so that the results from our ACL paper is reproducible. Note that this earlier version only has 3 answer choices and is also smaller in size compared to v1.11. #### Ethical concerns We observed substantial gender disparity and bias in the CQA dataset with higher proportion of female pronouns used in negative contexts. | 3,517 |
salesforce/fast-influence-functions | ['data augmentation'] | ['FastIF: Scalable Influence Functions for Efficient Model Interpretation and Debugging'] | influence_utils/parallel.py influence_utils/glue_utils.py experiments/influence_helpers.py experiments/visualization.py influence_utils/multiprocessing_utils.py influence_utils/nn_influence_utils.py experiments/__init__.py influence_utils/__init__.py influence_utils/faiss_utils.py experiments/visualization_utils.py experiments/mnli_utils.py run_glue.py experiments/mnli.py experiments/data_utils.py experiments/constants.py experiments/hans_utils.py experiments/s_test_speedup.py experiments/misc_utils.py run_experiments.py experiments/hans.py MNLI_retraining_experiments s_test_speed_quality_tradeoff_experiments imitator_experiments visualization_experiments prepare_data_for_retraining anli_augmentation_experiments amazon_augmentation_experiments hans_augmentation_experiments KNN_recall_experiments main _mp_fn ModelArguments glue_compute_metrics write_amazon_dataset_to_disk CustomGlueDataset TwoLabelMnliMismatchedProcessor TwoLabelMnliProcessor HansProcessor ANLIProcessor WILDSAmazonProcessor pseudo_gradient_step one_experiment evaluate_heuristic main create_FAISS_index SubsetDataset HansHelper SimpleHelper AmazonHelper save_amazon_metadata select_s_test_config load_faiss_index compute_influences_simplified get_dataloader create_tokenizer_and_model sort_dict_keys_by_vals_with_conditions get_helpful_harmful_indices_from_influences_dict move_inputs_to_device create_datasets sort_dict_keys_by_vals is_prediction_correct remove_file_if_exists predict compute_BERT_CLS_feature run_full_influence_functions run_one_retraining plot_Xs_and_Ys_dict imitator_main run_retraining_main _make_imitator_inputs run_one_imitator_experiment compute_new_imitator_losses get_label_to_indices_map_2 decode_one_example get_data_from_features_or_inputs create_one_set_of_data_for_retraining get_label_to_indices_map visualize one_experiment main get_recall_plot plot_Xs_and_Ys_dict run_experiments get_graph get_datapoints_map main collect_edges_from_graph distance_to_points_on_circle get_within_circle_constraint distance_to_points_within_circle_vectorized distance_to_points_within_circle plot_influences_distribution get_circle_coordinates FAISSIndex freeze_BERT_parameters spawn start_processes compute_hessian_vector_products count_parameters compute_s_test get_loss_with_weight_decay compute_influences convert_ids_to_string compute_grad_zs compute_gradients _compute_influences SimpleDataset prepare_small_dataloaders scatter_inputs_and_indices compute_influences_parallel InfluenceHelper prepare_scattered_inputs_and_indices compute_s_test_and_influence flatten_and_concat _compute_s_test print run_full_influence_functions print main print run_retraining_main print main DEFAULT_HANS_EVAL_HEURISTICS main print main DEFAULT_HANS_EVAL_HEURISTICS print main DEFAULT_Amazon_EVAL_HEURISTICS print main DEFAULT_ANLI_EVAL_HEURISTICS print imitator_main from_pretrained do_eval save_model Trainer warning do_train device output_dir build_compute_metrics_fn do_predict predictions argmax seed basicConfig set_seed append parse_json_file is_world_master update replace CustomGlueDataset save_pretrained info fp16 parse_args_into_dataclasses train task_name join n_gpu evaluate model_name_or_path freeze_BERT_parameters bool HfArgumentParser local_rank main AmazonDataset join list print get_subset to_csv append trange keys len AmazonHelper create_tokenizer_and_model Amazon_MODEL_PATH load_faiss_index MNLI_MODEL_PATH create_datasets HansHelper MNLI2_MODEL_PATH SimpleHelper save select_s_test_config len len get_helpful_harmful_indices_from_influences_dict choice compute_influences_simplified evaluate_heuristic pseudo_gradient_step default_data_collator compute_gradients deepcopy get_dataset_and_dataloader_of_heuristic predict enumerate get_dataloader create_tokenizer_and_model Amazon_MODEL_PATH list items MNLI_MODEL_PATH HANS_MODEL_PATH FAISSIndex create_datasets add tqdm MNLI2_MODEL_PATH device to numpy cuda compute_BERT_CLS_feature AmazonDataset list metadata_array print get_subset save keys load HANS_MNLI2_FAISS_INDEX_PATH MNLI2_FAISS_INDEX_PATH MNLI_ANLI_FAISS_INDEX_PATH HANS_FAISS_INDEX_PATH MNLI2_HANS_FAISS_INDEX_PATH Amazon_FAISS_INDEX_PATH FAISSIndex MNLI_FAISS_INDEX_PATH get_dataloader compute_influences_parallel search compute_influences mean numpy cuda compute_BERT_CLS_feature list items sorted list items sorted sort_dict_keys_by_vals_with_conditions bert from_pretrained freeze_BERT_parameters eval ANLI_DATA_DIR GlueDataTrainingArguments GLUE_DATA_DIR HANS_DATA_DIR CustomGlueDataset Amazon_DATA_DIR items list isinstance any item device Tensor to numpy detach SequentialSampler DataLoader RandomSampler print remove exists predict items list isinstance Tensor to load join run_one_retraining MNLI_RETRAINING_INFLUENCE_OUTPUT_BASE_DIR list items MNLI_RETRAINING_INFLUENCE_OUTPUT_BASE_DIR2 get_helpful_harmful_indices_from_influences_dict shuffle range get_label_to_indices_map join create_one_set_of_data_for_retraining check_call get_dataloader create_tokenizer_and_model MNLI_MODEL_PATH Trainer create_datasets is_prediction_correct cuda enumerate get_dataloader create_tokenizer_and_model MNLI_IMITATOR_MODEL_PATH load time print MNLI_MODEL_PATH create_datasets Trainer MNLI_TRAIN_INPUT_COLLECTIONS_PATH save append run_one_imitator_experiment cuda range enumerate len load_faiss_index tolist compute_influences_simplified logspace _make_imitator_inputs select_s_test_config compute_new_imitator_losses _make_imitator_inputs defaultdict zip tqdm pseudo_gradient_step append predict deepcopy tensor argmax predict yscale list plot xlabel min xscale ylabel keys mean title array legend append fill_between max decode item print decode_one_example decode_one_example default_data_collator MNLI_EVAL_MISMATCHED_FILE_NAME join copyfile MNLI_EVAL_MATCHED_FILE_NAME makedirs DataFrame load MNLI_TRAIN_INPUT_COLLECTIONS_PATH append enumerate get_dataloader compute_s_test get_dataloader items save_and_mirror_scp_to_remote isinstance print is_prediction_correct Tensor to cuda range enumerate get_dataset_and_dataloader_of_heuristic HANS_MODEL_PATH compute_influences_simplified predict append main sorted list extend set dict keys normal Graph new_vertex_property add_edges extend tqdm train_vertex_color_map_fn _calculate_position get_datapoints_map append trange new_edge_property get_circle_coordinates train_vertex_radius_map_fn enumerate add_vertex len subplots search abs sorted set_title set_xlabel tolist legend append plot set zip enumerate compute_BERT_CLS_feature set_xscale tqdm argsort set_ylabel numpy len set_xscale set_title set_yscale set_xlabel set_ylabel savefig items list target tqdm edges append source cos pi sin sqrt square zip sqrt square zip sqrt sum array list hist extend values join print named_parameters any sum _python_version_check Process get_context SimpleQueue start ProcessContext append range warn convert_ids_to_tokens items list model mean to sum zero_grad get_loss_with_weight_decay zero_grad get_loss_with_weight_decay grad compute_gradients copy compute_gradients tqdm compute_gradients item compute_s_test range enumerate get_world_size all_reduce compute_s_test float range len wrapped_model enumerate InfluenceHelper item _compute_influences join init_process_group __stderr__ __stdout__ mkdir save to _compute_s_test open load items prepare_small_dataloaders list get spawn print name choice prepare_scattered_inputs_and_indices len SimpleDataset get_dataloader list choice append range len get_dataloader scatter_inputs_and_indices tqdm append enumerate deepcopy int _map_to_device zip ceil enumerate append len | # FastIF: Scalable Influence Functions for Efficient Model Interpretation and Debugging [Link to the Paper](https://arxiv.org/abs/2012.15781)  # Requirements Please see `requirements.txt` and `Dockerfile` for detailed dependencies. The major ones include - `python 3.6 or later` (for type annotations and f-string) - `pytorch==1.5.1` - `transformers==3.0.2` # Setup ### Docker Setup | 3,518 |
saltudelft/type4py | ['type prediction'] | ['Type4Py: Practical Deep Similarity Learning-Based Type Inference for Python'] | type4py/eval.py type4py/server/wsgi.py type4py/server/db/manager.py type4py/server/tests/test_server.py type4py/server/response.py type4py/predict.py type4py/server/tests/resources/test_file3.py type4py/server/error_handlers.py type4py/vectorize.py type4py/server/tests/resources/test_file1.py type4py/utils.py type4py/type_check.py type4py/data_loaders.py type4py/__init__.py type4py/server/benchmark.py type4py/server/app.py type4py/server/tests/conftest.py type4py/server/tests/resources/test_file2.py type4py/learn.py type4py/infer.py type4py/preprocess.py type4py/to_onnx.py type4py/__main__.py setup.py type4py/server/api.py load_combined_test_data load_test_data_per_model load_combined_train_data load_var_valid_data load_combined_valid_data_woi load_combined_test_data_wov TripletDataset load_ret_labels load_data_tensors_TW load_ret_test_data load_ret_valid_data load_ret_train_data load_var_test_data load_flat_labels_tensors load_combined_train_data_woc load_combined_test_data_woi load_combined_train_data_woi load_combined_valid_data_wov load_combined_valid_data load_param_test_data load_var_labels load_combined_labels load_param_train_data load_training_data_per_model load_combined_test_data_woc load_param_labels select_data load_param_valid_data load_combined_valid_data_woc load_combined_train_data_wov load_var_train_data to_numpy eval_pred_dsl eval_parametric_match evaluate eval_type_embed get_dps_single_file analyze_src_f type_check_json_pred infer_json_pred ret2vec infer_main type_check_pred type_annotate_file var2vec get_type_checked_preds get_type_preds_single_file report_type_check_preds type_embed_single_dp infer_single_dp type_check_inferred_types PredictionType apply_inferred_types predict_types_src_code PretrainedType4Py param2vec create_knn_index load_model TripletModel Type4Py Type4PyWOV compute_validation_loss_dsl train_loop_dsl load_model_params train Type4PyWOI Type4PyWOC build_type_clusters predict_type_embed_task test compute_types_score compute_type_embed_batch predict_type_embed format_df preprocess_ext_fns preprocess_parametric_types make_types_consistent filter_return_dp gen_most_frequent_avl_types filter_variables resolve_type_aliasing encode_aval_types gen_argument_df filter_functions encode_all_types filter_var_wo_type type4py_to_onnx FailToTypeCheck CustomError OutputParseError CustomWarning MypyManager TCManager type_check_single_file TypeCheckingTooLong create_tmp_file filter_directory mk_dir_not_exist text_progessbar list_files ParallelExecutor read_file find_repos_list load_json setup_logs_file TokenSequence gen_labels_vector process_datapoints gen_aval_types_datapoints TokenIterator type_vector W2VEmbedding vectorize_sequence IdentifierSequence vectorize_args_ret extract learn infer preprocess eval main vectorize predict predict_fetch load_type4py_model submit_accepted_types predict_type4py_model hello_world before_request_f predict run_benchmark exception_handler ratelimit_handler syntax_err_handler PredictResponse TelemetryResponse is_session_id_valid AcceptTypeResponse AcceptedTypes PredictReqs pytest_addoption TestPredictEndpoint AnnotationCollector find_taint_models_directory find_typeshed_search_paths get_relative_local_root find_parent_directory_containing_directory find_legacy_typeshed_search_paths find_global_root FoundRoot find_new_typeshed_search_paths find_parent_directory_containing_file find_typeshed _find_parent_directory_containing find_global_and_local_root find_plugin join load_data_tensors_TW join load_data_tensors_TW join load_data_tensors_TW join load_data_tensors_TW tensor numpy Counter enumerate time select_data DataLoader info TripletDataset TripletDataset time info array enumerate len match tqdm enumerate pred_types_fix tqdm info append is_param_correct load join list set eval_pred_dsl info load_json inverse_transform open TypeAnnotationRemover MetadataWrapper visit parse_module Visitor get_nns_by_vector stack DataFrame apply stack DataFrame apply stack DataFrame apply visit code write_file TypeApplier var2vec concatenate tuple infer_preds_score ret2vec param2vec type4py_model w2v_model type_embed_single_dp enumerate list process_identifier NLPreprocessor zip append values enumerate apply_inferred_types type_check_single_file items list MypyManager info append type_check_pred enumerate items create_tmp_file remove list name MypyManager tqdm unlink type_check_pred enumerate info join get_type_preds_single_file read_file save_json dirname info to_dict load_pretrained_model join read_file dirname load_json append get_dps_single_file get_type_preds_single_file read_file info to_dict get_type_preds_single_file to_dict info print type_check_pred get_type_slots_preds_file info info AnnoyIndex add_item tqdm build enumerate len time criterion backward model zero_grad tqdm compute_validation_loss_dsl info train step range enumerate DataParallel save open load_model Adam Counter to set train_loop_dsl info load_model_params load_training_data_per_model load join time parameters TripletMarginLoss transform numpy len defaultdict array zip tqdm get_nns_by_vector compute_types_score append enumerate tqdm get_nns_by_vector compute_types_score append enumerate AnnoyIndex output_size tqdm build eval enumerate eval tqdm enumerate load join build_type_clusters load_test_data_per_model inverse_transform model predict_type_embed_task set compute_type_embed_batch save_json save info transform load_model_params load_training_data_per_model head values open progress_apply progress_apply progress_apply info info len info len info len join iterrows strip literal_eval tqdm append enumerate invert dropna info apply join concatenate to_csv LabelEncoder unique info transform values fit join from_records to_csv Counter most_common tolist progress_apply create_dataframe_vars drop filter_variables DataFrame exists gen_most_frequent_avl_types apply create_dataframe_fns encode_aval_types gen_argument_df train_test_split head encode_all_types format_df filter_return_dp concatenate merge_jsons_to_dict list_files unique info filter_functions join preprocess_parametric_types make_types_consistent to_csv resolve_type_aliasing read_csv filter_var_wo_type load join model check_model InferenceSession eval export info to_numpy o type4py_model assert_allclose run heavy_assess walk append join walk append join listdir isdir mkdir print time join setFormatter addHandler mk_dir_not_exist Formatter level setLevel FileHandler zeros split enumerate join progress_apply warn apply stack save zeros join progress_apply warn stack save join save values load join train_token_model mk_dir_not_exist gen_labels_vector warn process_datapoints gen_aval_types_datapoints info W2VEmbedding read_csv d w c find_repos_list o Pipeline run preprocess_ext_fns o setup_logs_file l o setup_logs_file vectorize_args_ret woc p train v setup_logs_file wov o woi woc l test c setup_logs_file wov o woi woc evaluate mrr tp setup_logs_file wov o woi m f infer_main setup_logs_file add_argument add_parser func ArgumentParser parse_args set_defaults add_subparsers load_pretrained_model PretrainedType4Py token_urlsafe now info get int bool decode predict_type4py_model jsonify add loads get is_session_id_valid info print time f read_file str str str print_exc JSON String DateTime Column Integer Boolean String DateTime Enum Column Integer addoption chain parents predicate find_parent_directory_containing_file find_parent_directory_containing_directory append sorted append is_dir chain is_dir enumerate | # Type4Py: Deep Similarity Learning-Based Type Inference for Python   This repository contains the implementation of Type4Py and instructions for re-producing the results of the paper. - [Dataset](#dataset) - [Installation Guide](#installation-guide) - [Usage Guide](#usage-guide) - [Converting Type4Py to ONNX](#converting-type4py-to-onnx) - [VSCode Extension](#vscode-extension) - [Using Local Pre-trained Model](#using-local-pre-trained-model) | 3,519 |
samaonline/spatial-transformer-for-3d-point-clouds | ['semantic segmentation'] | ['Spatial Transformer for 3D Point Clouds'] | sampling-based/data/shapenet_prepare.py point_based/part_seg/provider.py sampling-based/splatnet/partseg3d/train.py point_based/utils/data_prep_util.py point_based/part_seg/transform_nets.py sampling-based/splatnet/plot_log.py sampling-based/splatnet/dataset/indoor3d_util.py sampling-based/splatnet/partseg3d/train_sense.py point_based/part_seg/train_deform.py sampling-based/splatnet/create_solver.py sampling-based/splatnet/utils.py point_based/utils/plyfile.py sampling-based/splatnet/semseg3d/models.py sampling-based/splatnet/dataset/dataset_facade.py sampling-based/splatnet/dataset/dataset_modelnet.py sampling-based/splatnet/semseg3d/eval_seg.py point_based/utils/.ipynb_checkpoints/tf_util-checkpoint.py point_based/utils/eulerangles.py sampling-based/splatnet/dataset/dataset_lidar.py sampling-based/splatnet/dataset/dataset_shapenet.py sampling-based/splatnet/semseg3d/train.py sampling-based/splatnet/partseg3d/test2.py sampling-based/splatnet/semseg3d/test.py sampling-based/splatnet/configs.py sampling-based/splatnet/partseg3d/models.py point_based/part_seg/test_deform.py sampling-based/splatnet/partseg3d/test.py sampling-based/splatnet/custom_layers.py point_based/utils/tf_util.py point_based/part_seg/part_seg_model_deform.py point_based/utils/pc_util.py sampling-based/tools/pick_best_model.py get_model get_loss rotate_point_cloud load_h5_data_label_seg loadDataFile getDataFiles load_h5 rotate_point_cloud_by_angle shuffle_data jitter_point_cloud rotate_perturbation_point_cloud shift_point_cloud random_scale_point_cloud pc_normalize convert_label_to_one_hot printout load_pts_seg_files output_color_point_cloud_red_blue placeholder_inputs pc_augment_to_point_num predict output_color_point_cloud average_gradients train convert_label_to_one_hot printout input_transform_net load_ply_normal pad_arr_rows batch_mkdir save_h5_data_label_normal load_h5_data_label_normal load_h5_data_label_seg get_sampling_command load_h5 get_category_names save_h5 load_ply_data get_obj_filenames export_ply quat2euler euler2quat mat2euler angle_axis2euler euler2angle_axis euler2mat write_ply pyplot_draw_point_cloud draw_point_cloud read_ply point_cloud_three_views_demo point_cloud_to_volume pyplot_draw_volume point_cloud_to_volume_batch point_cloud_three_views volume_to_point_cloud _open_stream _lookup_type PlyData _split_line PlyProperty PlyParseError make2d PlyListProperty PlyElement conv2d_transpose pairwise_distance fully_connected conv3d get_edge_feature max_pool3d batch_norm_template conv2d conv1d _variable_with_weight_decay batch_norm_for_conv1d caleymap dropout offset_deform batch_norm_for_conv2d knn avg_pool3d max_pool2d _variable_on_cpu avg_pool2d batch_norm_dist_template batch_norm_for_fc batch_norm_for_conv3d conv2d_transpose offsetaffine offset2d2 offset_affine conv3d fully_connected pairwise_distance get_edge_feature max_pool3d batch_norm_template offset_proj offsetxplusb offset_deform2 conv2d conv1d offset2d _variable_with_weight_decay batch_norm_for_conv1d caleymap dropout offset_deform batch_norm_for_conv2d offset_deform_cls offset_affine_cls knn offsetAx max_pool2d avg_pool3d _variable_on_cpu offset_proj_cls avg_pool2d batch_norm_dist_template batch_norm_for_fc batch_norm_for_conv3d get_prototxt standard_solver PickAndScale_noback PickAndScale Permute ProbRenorm NormAndScale GraphFeature GlobalPooling LogLoss LossHelper parse_and_plot modify_blob_shape parse_channel_scale pairwise_distance knn TimedBlock get_prototxt map_channel_scale rotate_3d seg_scores InputFacade ordered_points points InputShapenet points_test_single_area InputShapenetAllCategories category_mask points_all_categories InputShapenet points_test_single_area InputShapenetAllCategories category_mask points_all_categories InputShapenet points_single_category InputShapenetAllCategories category_mask points_all_categories room2blocks_plus_normalized sample_data room2blocks room2blocks_wrapper_normalized sample_data_label partseg_seq_combined_categories partseg_seq partseg_test extract_feat_shapes partseg_test extract_feat_shapes partseg_train_single_model partseg_train partseg_train_single_model partseg_train get_label compute_scores semseg_seq semseg_test extract_feat_scene semseg_train parse_and_plot copy_best_model value dropout pairwise_distance offset_deform concat reduce_max reshape matmul knn conv2d reduce_mean get_edge_feature tile max_pool2d expand_dims reduce_mean argmax sparse_softmax_cross_entropy_with_logits arange shuffle len reshape cos pi dot shape uniform sin zeros array range reshape cos dot shape sin zeros array range randn reshape dot shape zeros range array clip shape clip randn shape uniform range shape uniform range File File print write mean sqrt sum max float32 placeholder array concatenate zeros range ConfigProto Saver concat reduce_mean zip append expand_dims value reshape fully_connected reduce_max conv2d max_pool2d zeros PlyData write range join print join len join mkdir File close create_dataset File close create_dataset File read array read array append array cos sin eps asarray atan2 sqrt flat cos sin angle_axis2mat squeeze point_cloud_to_volume flatten append expand_dims range zeros float astype append vstack array range data read array write array describe int exp abs transpose min mean sqrt argsort round argwhere zeros sum max range euler2mat concatenate draw_point_cloud fromarray uint8 read_ply save point_cloud_three_views set_xlabel add_subplot scatter set_ylabel figure set_zlabel pyplot_draw_point_cloud volume_to_point_cloud append split dtype len property hasattr property property property multiply add_to_collection xavier_initializer _variable_on_cpu l2_loss truncated_normal_initializer transpose rand eye inv squeeze transpose square reduce_sum matmul expand_dims top_k get_shape value reshape squeeze concat tile gather expand_dims range conv2d conv2d concat conv2d concat reduce_mean conv2d concat conv2d str close write NamedTemporaryFile open extend SGD ADAM get_prototxt SolverParameter GPU show join subplot plot switch_backend __file__ loadtxt savefig dirname figure run sum enumerate split append split parse_channel_scale T copy dot any eye array str NetParameter write close NamedTemporaryFile concatenate print mean unique zip append zeros save sum len sum join list int loadtxt len dict argsort zip append float range split join list int permutation loadtxt sort len dict zip append float range split index sum zeros startswith load join sorted format list permutation len dict split zip append range makedirs join list format permutation len extend dict split points_test_single_area zip range enumerate makedirs File join sorted format list permutation loadtxt len index dict split zip append range makedirs points_single_category choice sample_data int uniform ceil expand_dims sample_data_label range append len zeros room2blocks_plus_normalized zip concatenate uint8 min astype room2blocks zeros max range Python data SoftmaxWithLoss Softmax reduce ReLU get_prototxt Input data_feat list BatchNorm sum to_proto update Convolution copy Concat eval startswith Eltwise label float map_channel_scale Permutohedral join int NetSpec dict Accuracy Python data SoftmaxWithLoss Softmax prob reduce label_mask ReLU get_prototxt Input data_feat list BatchNorm sum to_proto update Convolution copy Concat eval startswith Eltwise prob_raw label float map_channel_scale Permutohedral join int NetSpec dict Accuracy bool modify_blob_shape list int concatenate slice forward transpose min reshape copy ceil Net shape append range keys TEST len points_single_category seg_scores set_device len savetxt SN_CMAP sum update format startswith zip set_mode_cpu join time index set_mode_gpu dict array makedirs points_test_single_area save asarray g_label2color extract_feat_shapes join str format Process gpus print standard_solver init_log start prefix partseg_seq append new_uid range log len join restore format partseg_seq_combined_categories init_state print init_model set_device standard_solver endswith solve set_mode_gpu cpu copy_from set_mode_cpu get_solver restore init_state init_model mpi_init endswith solve set_mode_gpu mpi_fin cpu copy_from set_mode_cpu get_solver loadtxt confusion_matrix dict unique append sum len Python data SoftmaxWithLoss FACADE_CATEGORIES Softmax reduce ReLU get_prototxt Input data_feat list BatchNorm sum to_proto update Convolution copy Concat eval startswith Eltwise label float map_channel_scale Permutohedral join int NetSpec dict Accuracy len modify_blob_shape list int slice transpose min copy range ceil Net shape append forward keys TEST update join time format float set_device squeeze len set_mode_gpu dict savetxt points FACADE_CMAP set_mode_cpu array extract_feat_scene join restore format print semseg_seq set_device standard_solver init_model endswith solve set_mode_gpu cpu copy_from set_mode_cpu get_solver join isdigit int format print copyfile dict zip parse_and_plot max exists | # Spatial Transformer for 3D Point Clouds [[Project]](http://pwang.pw/spn.html) [[Paper]](https://arxiv.org/abs/1906.10887) ## Quick Start For quick addition of the spatial transformer to your network, refer to [network architecture file](point_based/part_seg/part_seg_model_deform.py#L53) of how transformer can be added, and [offset_deform](point_based/utils/tf_util.py#L120-L160) for the transformer implementation. ## Overview This is the author's re-implementation of "[Spatial Transformer for 3D Point Clouds](https://arxiv.org/abs/1906.10887)", by [Jiayun Wang](http://pwang.pw/), [Rudrasis Chakraborty](https://rudra1988.github.io/), [Stella X. Yu](https://www1.icsi.berkeley.edu/~stellayu/) (UC Berkeley / ICSI) in IEEE Transactions on Pattern Analysis and Machine Intelligence. <img src='./assets/intro.png' width=800> | 3,520 |
sambaranban/ONE | ['network embedding'] | ['Outlier Aware Network Embedding for Attributed Networks'] | Src/ONE.py calc_lossValues reciprocal T format print multiply matmul sum log | sambaranban/ONE | 3,521 |
samcohen16/Aligning-Time-Series | ['imitation learning', 'time series', 'dynamic time warping'] | ['Aligning Time Series on Incomparable Spaces'] | Code/GDTW.py Code/DTW.py _SoftDTW compute_softdtw_backward compute_softdtw dtw gromov_dtw inf argmin min zeros range exp inf ones range max log zeros exp range | ## ALIGNING TIME SERIES ON INCOMPARABLE SPACES This repository consists of an implementation of the Gromov-DTW metric for time series living on incomparable spaces ## Dependencies Please download dependencies by running pip install -r requirements.txt ## Demonstration A demonstration of Gromov-DTW in a toy imitation learning task is provided in the notebook Imitatiion_learning_2d.ipynb ## Paper This repository implements the method of our paper 'Aligning time series across incomparable spaces', Samuel Cohen, Giulia Luise, Alexander Terenin, Brandon Amos, Marc Peter Deisenroth, recently submitted | 3,522 |
samet-akcay/ganomaly | ['semi supervised anomaly detection', 'anomaly detection'] | ['GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training'] | train.py lib/model.py lib/evaluate.py lib/loss.py lib/networks.py options.py lib/visualizer.py lib/data.py Options train get_mnist_anomaly_dataset get_cifar_anomaly_dataset load_data get_mnist2_anomaly_dataset roc auprc evaluate l2_loss l1_loss BaseModel Ganomaly Decoder Encoder NetD NetG weights_init Visualizer Ganomaly parse load_data MNIST int get_cifar_anomaly_dataset format Compose abnormal_class get_mnist2_anomaly_dataset CIFAR10 dataset get_mnist_anomaly_dataset seed int arange concatenate shuffle copy array len seed int arange clone shuffle from_numpy cat len from_numpy clone cat manual_seed join plot xlabel roc_curve close ylabel dict ylim title savefig figure brentq legend cpu xlim auc cpu average_precision_score normal_ __name__ fill_ | # UPDATE: This repo is no longer maintained. [GANomaly](https://github.com/openvinotoolkit/anomalib/tree/development/anomalib/models/ganomaly) implementation has been added to [anomalib](https://github.com/openvinotoolkit/anomalib), the largest public collection of ready-to-use deep learning anomaly detection algorithms and benchmark datasets. # GANomaly This repository contains PyTorch implementation of the following paper: GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training [[1]](#reference) ## 1. Table of Contents - [GANomaly](#ganomaly) - [Table of Contents](#table-of-contents) - [Installation](#installation) - [Experiment](#experiment) - [Training](#training) | 3,523 |
samgregoost/Spectral-GAN | ['point cloud generation'] | ['Spectral-GANs for High-Resolution 3D Point-cloud Generation'] | GAN_B.py GAN_F.py spatial_train.py point_utils.py Utils/utils.py main.py point_net.py GAN_B GAN_F main inference train point_branch batch_norm_template batch_norm_for_conv1d conv2d_transpose dropout fully_connected conv3d batch_norm_for_conv2d batch_norm_for_fc avg_pool2d conv2d conv1d avg_pool3d max_pool3d max_pool2d _variable_with_weight_decay batch_norm_for_conv3d _variable_on_cpu generator sample_Z inference train sph2cart get_tensor_size local_response_norm leaky_relu max_pool_2x2 add_to_regularization_and_summary batch_norm bottleneck_unit add_activation_summary conv2d_basic conv2d_strided get_variable conv2d_transpose_strided bias_variable avg_pool_2x2 add_gradient_summary weight_variable inference train value dropout reshape fully_connected conv2d max_pool2d expand_dims multiply add_to_collection xavier_initializer _variable_on_cpu l2_loss truncated_normal_initializer shape empty cos sin load sample_Z save randint range run restore sample_Z save run constant_initializer truncated_normal constant conv2d conv2d as_list conv2d_transpose name add_to_collection histogram l2_loss name zero_fraction histogram scalar name histogram | # Spectral-GAN Tensorflow implementation of [Spectral-GANs for High-Resolution 3D Point-cloud Generation](https://arxiv.org/pdf/1912.01800.pdf) (IROS 2020) ## Introduction Point-clouds are a popular choice for vision and graphics tasks due to their accurate shape description and direct acquisition from range-scanners. This demands the ability to synthesize and reconstruct high-quality point-clouds. Current deep generative models for 3D data generally work on simplified representations (e.g., voxelized objects) and cannot deal with the inherent redundancy and irregularity in point-clouds. A few recent efforts on 3D point-cloud generation offer limited resolution and their complexity grows with the increase in output resolution. In this work, we develop a principled approach to synthesize 3D point-clouds using a spectral-domain Generative Adversarial Network (GAN). This is the Tensorflow code of our paper. ## Usage 1. Set the input path to the ground truth spherical harmonics in main.py 2. Give the ground truth point cloud path in spatial_train.py as a single numpy array (num_clouds, num_points, 3) 3. Train: > python main.py --mode=train 4. Evaluate: | 3,524 |
samottaghi/adversarial-representation-active-learning | ['active learning'] | ['Adversarial Representation Active Learning'] | cifar_trainer.py svhn_trainer.py mnist_trainer.py data.py mnist_model.py config.py svhn_model.py cifar_model.py main.py utils.py WN_Linear WN_ConvTranspose2d Generator Encoder Discriminative WN_Conv2d Expression Sampler GaussianNoise Trainer svhn_config cifar_config mnist_config DataLoader get_cifar_loaders get_svhn_loaders get_mnist_loaders WN_Linear BatchNorm1d Generator Encoder Discriminative Expression Sampler GaussianNoise Trainer WN_Linear WN_ConvTranspose2d Generator Encoder Discriminative WN_Conv2d Expression Sampler GaussianNoise Trainer log_sum_exp_0 entropy one_hot querry log_sum_exp SumCELoss grad_norm check_folder schedule save_model_by_name sample_z load_model_by_name numpy_to_variable gaussian_nll MNIST load arange hasattr print train_batch_size Compose mask_file DataLoader data_root dev_batch_size zeros array range len load arange hasattr print train_batch_size Compose mask_file preprocess DataLoader data_root dev_batch_size SVHN zeros array range train_batch_size_2 len load arange hasattr print train_batch_size Compose mask_file DataLoader data_root dev_batch_size CIFAR10 zeros array range train_batch_size_2 len exp sum max log_sum_exp squeeze softmax Variable log_sum_exp cuda Variable cuda view scatter_ float list max norm cuda makedirs join format print makedirs save save_dir state_dict load join format print load_state_dict list zeros_like flatnonzero | # Adversarial Representation Active Learning Pytoch implementation of ['Adversarial Representation Active Learning'](https://arxiv.org/pdf/1912.09720.pdf). by Ali Mottaghi and Serena Yeung. ## Abstract Active learning aims to develop label-efficient algorithms by querying the most informative samples to be labeled by an oracle. The design of efficient training methods that require fewer labels is an important research direction which allows a more effective use of computational and human resources for labeling and training the deep neural networks. In this work, we demonstrate how we can use the recent advances in deep generative models, to outperform the state-of-the-art in achieving the highest classification accuracy using as few labels as possible. Unlike previous approaches, our approach uses not only labeled images to train the classifier, but also unlabeled images and generated images for co-training the whole model. Our experiments show that the proposed method significantly outperforms existing approaches in active learning on a wide range of datasets (MNIST, CIFAR-10, SVHN, CelebA, and ImageNet). ## Requirements 1. Python 3 2. Pytorch 1 3. Torchvision 0.3 4. NVIDIA GPU with CUDA CuDNN | 3,525 |
samueltin/tf-crnn_backup20180808 | ['optical character recognition', 'scene text recognition'] | ['An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition'] | train.py src/config.py valid_csv_file.py src/decoding.py export_model.py train_zh.py src/loader.py src/model.py src/data_handler.py predict_zh.py hlp/csv_helpers.py hlp/numbers_mnist_generator.py src/read_dict.py checkCSVFile checkCSVFile csv_filtering_chars_from_labels csv_rel2abs_path_convertor generate_random_image_numbers Alphabet CONST Params import_params_from_json random_padding padding_inputs_width augment_data image_reading preprocess_image_for_prediction data_loader random_rotation get_words_from_chars PredictionModel _signature_def_to_tensors biasVar conv2d deep_bidirectional_lstm deep_cnn crnn_fn weightVar dict_as_str read print close open enumerate split str join list format tqdm abspath split list validation join list next_batch format imsave reshape hstack map test tqdm mkdir append randint train range read_data_sets list dict_as_str print range len pop list format print keys resize_images constant augment_data read_file cond equal randint list case divide shape cast int32 round get_default_graph truncated_normal constant learning_decay_rate deep_bidirectional_lstm RMSPropOptimizer exponential_decay get_collection apply deep_cnn DIMENSION_REDUCTION_W_POOLING cast bincount get get_or_create_global_step learning_decay_steps alphabet_codes learning_rate minimize divide average AdamOptimizer UPDATE_OPS int32 ExponentialMovingAverage AdadeltaOptimizer scalar read split close open | # Convolutional Recurrent Neural Network in Tensorflow (tf.crnn) CRNN model in Tensorflow using Estimators Implementation of the Convolutional Recurrent Neural Network (CRNN) for image-based sequence recognition tasks, such as scene text recognition and OCR. Original paper http://arxiv.org/abs/1507.05717 and code https://github.com/bgshih/crnn This version uses the `tf.estimator.Estimator` to build the model. ### Contents * `src/model.py` : definition of the model * `src/data_handler.py` : functions for data loading, preprocessing and data augmentation * `src/config.py` : `class Params` manages parameters of model and experiments * `src/decoding.py` : helper fucntion to transform characters to words | 3,526 |
sandeepreddy06/fashion-mnist | ['data augmentation'] | ['DENSER: Deep Evolutionary Network Structured Representation'] | utils/helper.py configs.py app.py utils/argparser.py utils/mnist_reader.py visualization/project_zalando.py start_s3_sync get_json_logger touch touch_dir _get_logger get_args_request parse_arg get_args_cli now_int upload_result_s3 get_sprite_image invert_grayscale create_sprite_image vector_to_matrix_mnist UploadS3Thread load_mnist UploadS3Thread start Event dirname makedirs makedirs setFormatter touch_dir DEBUG getLogger addHandler StreamHandler Formatter touch setLevel INFO FileHandler setFormatter getLogger addHandler Formatter touch setLevel INFO FileHandler int append items list defaultdict utcfromtimestamp info int isinstance ones sqrt ceil array range vector_to_matrix_mnist invert_grayscale join | # Fashion-MNIST [](https://github.com/zalandoresearch/fashion-mnist/) [](https://gitter.im/fashion-mnist/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link) [](README.zh-CN.md) [](README.ja.md) [](https://opensource.org/licenses/MIT) [](https://hanxiao.github.io/2018/09/28/Fashion-MNIST-Year-In-Review/) <details><summary>Table of Contents</summary><p> * [Why we made Fashion-MNIST](#why-we-made-fashion-mnist) * [Get the Data](#get-the-data) | 3,527 |
sandysa/Interpretable_Clustering | ['graph clustering'] | ['Balancing the Tradeoff Between Clustering Value and Interpretability'] | testBetaIC.py PatternMining.py LoadData.py Kcenter.py SupportFunctions.py betaStrong.py testCluster.py betaStrong K_center arreq_in_list LoadData frequent_pattern_mining calculate_composition clean main test_Kcenter test_Kcenter find_interpretable_partition find_best_config raw_Interpretability getDistance getAccidentSubGraph baseline_partition clean test_IKC1 getAdultSubGraph test_sanitation_IC1 main test_adult_IC1 test_accident_IC1 test_crime_IC1 int print append find_frequent_patterns len print get_node_attributes nodes frequent_pattern_mining append zeros range len K_center time print interpretabilityScore calculate_composition getAffiliationArray fit int readFile isfile test_Kcenter print beta_IC betaStrong calculate_composition LoadData float remove isfile K_center time getCentroids print fit getDistance interpretabilityScore calculate_composition interpretable_baseline_graph getClasses getAffiliationArray append get_node_attributes K_center ObjValue print strip getAccidentSubGraph fit len getAdultSubGraph getV zeros float range max getSubGraph_rangeValue split Graph get_node_attributes nodes set_node_attributes add_node Graph get_node_attributes nodes set_node_attributes add_node K_center int time getCentroids find_best_config print subGraph_accident_support fit getAccidentSubGraph len getAffiliation nodes frequent_pattern_mining append zeros range get_node_attributes K_center int time find_best_config print strip fit get_node_attributes len getAffiliation nodes frequent_pattern_mining append zeros range getSubGraph_rangeValue split K_center int time find_best_config print strip get_node_attributes fit len getAffiliation nodes append zeros range getSubGraph_rangeValue split K_center int time getCentroids find_best_config print fit len getAffiliation nodes frequent_pattern_mining getAdultSubGraph append zeros range get_node_attributes print test_sanitation_IC1 test_adult_IC1 test_accident_IC1 test_crime_IC1 K_center int print strip len getAccidentSubGraph fit getAdultSubGraph ObjValue range getSubGraph_rangeValue split print time find_interpretable_partition get_node_attributes raw_Interpretability baseline_partition test_IKC1 | # Interpretable_Clustering Python codebase for "Balancing the Tradeoff Between Clustering Value and Interpretability", published at AIES 2020. Authors: Sandhya Saisubramanian*, Sainyam Galhotra*, and Shlomo Zilberstein Link to paper: https://arxiv.org/pdf/1912.07820.pdf ----------------------------------------------------------------------------------------------------------- File Description: Kcenter.py - Implements K-center algorithm LoadData.py - Loads data files and returns a graph used for clustering PatternMining.py - Contains functions related to pattern mining for generating explanations betaStrong.py - Implementation of Algorithm 4 in the paper | 3,528 |
sangwoomo/gold | ['active learning'] | ['Mining GOLD Samples for Conditional GANs'] | data/data.py network/acgan.py data/__init__.py evals/__init__.py query/query.py train/__init__.py utils/logger.py utils/utils.py utils/__init__.py evals/evals.py train/train_acgan_full.py network/gan_loss.py utils/drs.py train/train_acgan_semi.py query/__init__.py network/__init__.py main.py network/lenet.py main BaseModel add_parser generate_synthetic_dataset split_dataset get_transform pick_samples load_base_dataset train_classifier adjust_learning_rate eval_classifier get_base_message ACGAN_Toy_Generator ACGAN_CIFAR10_Discriminator ACGAN_Toy_Discriminator ACGAN_MNIST_Discriminator onehot ACGAN_CIFAR10_Generator weights_init weights_init_3channel ACGAN_MNIST_Generator get_norm GANLoss LeNet LeNet_32 gold_acquistiion score_based_acquisition train_acgan_full train_acgan_semi get_score_stats gold drs eval_classifier fitting_capacity adjust_learning_rate sample_scores Logger to_numpy_image entropy gold_score accuracy make_fixed_y save_to_logger count_classes normalize_info make_y make_z make_fixed_z add_argument seed manual_seed_all add_parser BaseModel ArgumentParser manual_seed parse_args run int MNIST LSUN generate_synthetic_dataset test_transform get_transform FashionMNIST SVHN STL10 CIFAR10 train_transform image_size n_samples_test LongTensor FloatTensor make_blobs n_samples_base TensorDataset list permutation set pick_samples len append range format param_groups netC_lr_period criterionCE zero_grad DataLoader adjust_learning_rate netC_per_epoch netC_lr list Adam to netC_epochs range format eval_classifier netC normalize_info enumerate backward print accuracy parameters train step to eval DataLoader enumerate isinstance Conv2d normal_ modules zero_ ConvTranspose2d Linear normal_ __name__ fill_ float type_as score_based_acquisition DataLoader enumerate criterionCE per_epoch detach ConcatDataset lambda_C_fake backward zero_grad criterionGAN mean netG DataLoader netD normalize_info to step enumerate len criterionCE zero_grad DataLoader ConcatDataset criterionGAN netD to detach mean normalize_info long enumerate deepcopy per_epoch lambda_C_fake backward netG step len exp std square mean sqrt sample_scores max append cuda range concatenate view hist softmax numpy log minimum percentile get_score_stats cpu astype stack binomial range cuda log append criterionCE zero_grad DataLoader adjust_learning_rate cuda LeNet Adam range CrossEntropyLoss format eval_classifier netC normalize_info enumerate backward print parameters train step cuda make_z items list ndarray isinstance image_summary scalar_summary pop items list netD softmax log softmax len max item transpose astype clip uint8 | sangwoomo/gold | 3,529 |
sangyx/BiasedPUlearnig | ['selection bias'] | ['Learning from Positive and Unlabeled Data with a Selection Bias'] | src/train_pu.py src/pu.py src/dataset.py src/test_mnist.py get_cifar10 binarize_cifar10_class get_mnist make_dataset conv_data2image load_dataset binarize_mnist_class unpickle PUNNLoss main train_model train_epoch test_pu train_pn train_pu data asarray fetch_openml reshape target ones len load close open join basename format urlretrieve print hstack urlcleanup astype float32 vstack mkdir empty array range unpickle ones len format make_PN_dataset_from_binary_dataset print make_PU_dataset_from_binary_dataset shape get_cifar10 binarize_mnist_class binarize_cifar10_class get_mnist seed train_model BatchNorm1d print Sequential ReLU Adam mean parameters load_dataset is_available zeros std range Linear backward model reshape zero_grad loss_func step list concatenate close train_epoch tqdm eval set_postfix train cuda range mean zeros sum len list close train_epoch tqdm eval test_pu array set_postfix append train PUNNLoss cuda range permutation concatenate ones mean DataLoader uniform TensorDataset train_pn tensor train_pu zeros len | # BiasedPUlearnig: Positive and Unlabeled Data with a Selection Bias (ICLR 2019) * Paper link: https://openreview.net/pdf?id=rJzLciCqKm * Author's code repo: https://github.com/MasaKat0/PUlearning. Note that it is implemented by Chainer. I implemented the [nnPUSB: Model with neural Networks](https://github.com/MasaKat0/PUlearning/tree/master/BiasedPUlearning/nnPUSB) by PyTorch and got a better performance. Comparison of average results obtained by running experiment on the mnist dataset 10 times.  You can refer to the code of [test_mnist.py](src/test_mnist.py) to train your own model. | 3,530 |
sanjayss34/corr-clust-query-esa2019 | ['graph clustering'] | ['Correlation Clustering with Same-Cluster Queries Bounded by Optimal Cost'] | algorithms.py realdata_experiments.py experiments.py delta_good _bocker_remove_cliques cautious _bocker_min_cut query_pivot lp_rounding count_mistakes three_approx _lp_pivot_weighted random_query_pivot bocker_alg _lp_pivot _bocker_partition_set _bocker_caseB _bocker_path lp_rounding_weighted frozenset add frozenset add zeros max frozenset zeros_like add max append inf range len get deepcopy int min set put add Queue zeros len combinations frozenset add set union range len pop deepcopy append add _bocker_min_cut newton _bocker_partition_set abs max _bocker_remove_cliques count_mistakes list exit add append _bocker_caseB _bocker_path range inf frozenset set pop deepcopy remove print min len add set pop delta_good remove set add union frozenset add update optimize obj addVar ones addLConstr query_pivot setObjective set Model _lp_pivot setParam append MINIMIZE range x len frozenset add update optimize obj addVar ones addLConstr query_pivot setObjective _lp_pivot_weighted set Model setParam append MINIMIZE range x len ones range len | # Correlation Clustering with Same-Cluster Queries Bounded by Optimal Cost This repository contains the code and data for reproducing the experiments in the paper ["Correlation Clustering with Same-Cluster Queries Bounded by Optimal Cost"](https://arxiv.org/abs/1908.04976) by Barna Saha and Sanjay Subramanian. ## Citation If you use this work in your research, please cite our paper: ``` @inproceedings{SahaSubramanian19, author = {Barna Saha and Sanjay Subramanian}, title = {{Correlation Clustering with Same-Cluster Queries Bounded by Optimal Cost}}, booktitle = {European Symposium on Algorithms ({ESA})}, year = {2019} | 3,531 |
santi-pdp/segan | ['speech enhancement'] | ['SEGAN: Speech Enhancement Generative Adversarial Network'] | discriminator.py make_tfrecords.py generator.py ops.py bnorm.py main.py data_loader.py model.py VBN pre_emph de_emph read_and_decode discriminator AEGenerator Generator pre_emph_test main _int64_feature encoder_proc read_and_slice _bytes_feature slice_signal main Model SEAE SEGAN leakyrelu minmax_normalize minmax_denormalize tensor_summary prelu repeat_elements average_gradients batch_to_time atrous_conv1d nn_deconv conv1d conv2d gaussian_noise_layer highway time_to_batch deconv downconv histogram_summary sample_random_walk audio_summary residual_block variables_on_gpu0 scalar_summary reshape concat zeros range read TFRecordReader decode_raw float32 pre_emph set_shape int32 cast parse_single_example as_list int expand_dims pre_emph float32 placeholder seed print save_path name append synthesis_path ConfigProto makedirs int list zip append range read slice_signal join write SerializeToString tostring Example read_and_slice zip split join unlink out_file splitext random_normal zeros range reshape randn scalar histogram audio xavier_initializer expand_dims format _linear f sigmoid range as_list get_shape xavier_initializer as_list print as_list split conv1d repeat_elements xavier_initializer get_shape expand_dims get_variable concat reduce_mean zip append expand_dims | ## SEGAN: Speech Enhancement Generative Adversarial Network ### Introduction This is the repository of the SEGAN project. Our original paper can be found [here](https://arxiv.org/abs/1703.09452), and test samples are available [here](http://veu.talp.cat/segan/). In this work a Generative Adversarial approach has been taken to do speech enhancement (i.e. removing noise from corrupted speech signals) with a fully convolutional architecture schematized as follows:  This model deals with raw speech waveforms on many noise conditions at different SNRs (40 at training time and 20 during test). It also models the speech characteristics from many speakers mixed within the same structure (without any supervision of identities), which makes the generative structure generalizable in the noise and speaker dimensions. **All the project is developed with TensorFlow**. There are two repositories that were good references on how GANs are defined and deployed: * [improved-gan](https://github.com/openai/improved-gan): implementing improvements to train GANs in a more stable way * [DCGAN-tensorflow](https://github.com/carpedm20/DCGAN-tensorflow): implementation of the DCGAN in tensorflow ### Dependencies | 3,532 |
santi-pdp/segan_pytorch | ['speech enhancement'] | ['SEGAN: Speech Enhancement Generative Adversarial Network', 'Whispered-to-voiced Alaryngeal Speech Conversion with Generative Adversarial Networks', 'Language and Noise Transfer in Speech Enhancement Generative Adversarial Network'] | clean.py select_speakers.py segan/models/modules.py segan/models/generator.py segan/datasets/vc_dataset.py segan/models/discriminator.py train.py segan/models/ops.py segan/datasets/__init__.py segan/models/__init__.py segan/__init__.py segan/utils.py segan/datasets/se_dataset.py segan/models/spectral_norm.py eval_noisy_performance.py purge_ckpts.py segan/models/core.py segan/models/model.py weightG_fmt_converter.py main ArgParser main clean txt_clean_file main CompositeEval wss llr uttname2spkid SSNR composite_helper eval_composite Additive lpcoeff ComposeAdditive denormalize_wave_minmax make_divN PESQ pre_emphasize abs_normalize_wave_minmax slice_index_helper abs_short_normalize_wave_minmax de_emphasize slice_signal_index SEDataset RandomChunkSEF0Dataset collate_fn SEH5Dataset slice_signal dynamic_normalize_wave_minmax normalize_wave_minmax RandomChunkSEDataset varlen_wav_collate VCDataset Conv1DResBlock pos_code LayerNorm Model Saver Discriminator Generator GSkip Generator1D wsegan_weights_init weights_init SEGAN AEWSEGAN WSEGAN z_dropout GConv1DBlock CombFilter sinc PostProcessingCombNet SincConv ResARModule GDeconv1DBlock ResBlock1D flip build_norm_layer make_optimizer F0Evaluator compute_MAE KLD select_voiced get_grads compute_accuracy convert_wav SpectralNorm l2normalize soundfile load_pretrained synthesis_path cuda pre_emphasize basename view default_timer test_files generate WSEGAN format glob eval normalize_wave_minmax g_pretrained_ckpt enumerate h5 join read preemph print write SEGAN len load clean_wavs CompositeEval test_wavs sum close mean append logfile open glob join ckpt_dir print DataLoader SEH5Dataset l1_dec_step noisy_trainset l1_dec_epoch seed aewsegan h5_data_root SEDataset MSELoss save_freq AEWSEGAN to manual_seed_all wsegan l1_weight clean_trainset manual_seed clean_valset noisy_valset d_pretrained_ckpt train zeros size transpose CompositeEval reshape name getcwd write NamedTemporaryFile split run int min cos pi log10 linspace round append sum max range wss sorted llr min SSNR PESQ trim_mos mean float round len cos pi floor linspace abs round log max fft list exp ones log10 ceil append sum range concatenate int reshape zeros array int T squeeze cos pi range dot lpcoeff floor linspace append round log list ones append zeros sum array range append default_collate append int array range load int range append max abs astype int32 min astype int32 float max reshape concatenate zeros range zeros FloatTensor enumerate len exp arange size transpose cos is_cuda unsqueeze item zeros to range sin data fill_ print named_parameters xavier_uniform_ normal_ __name__ data print named_parameters xavier_uniform_ __name__ eval train __name__ spectral_norm size view contiguous ones pi sin to flip cat items format view print cat enumerate StepLR Adam RMSprop print exp size abs read_aco_file int16 name interpolation min iinfo astype write NamedTemporaryFile wav2aco exists | # Speech Enhancement Generative Adversarial Network in PyTorch ### Requirements ``` SoundFile==0.10.2 scipy==1.1.0 librosa==0.6.1 h5py==2.8.0 numba==0.38.0 torch==0.4.1 matplotlib==2.2.2 | 3,533 |
santiagxf/ContrastiveLearning | ['semi supervised anomaly detection', 'anomaly detection'] | ['An overview of deep learning based methods for unsupervised and semi-supervised anomaly detection in videos'] | helper.py autoencoders.py Autoencoder plot_precision_recall_curves plot_loss_by_epoch plot_reconstructuion_err_by_class plot_confusion_matrix show plot xlabel ylabel title figure legend show groupby list subplots plot print xlabel ylabel index reconstruction_error mean title group_fn legend hlines power DataFrame predict show plot xlabel roc_curve true_class ylabel reconstruction_error mean precision_recall_curve title ylim figure legend power xlim DataFrame predict auc show xlabel confusion_matrix true_class ylabel mean title figure power DataFrame heatmap predict | # Contrastive Learning This repo demostrates how to use the concept of contrastive learning in an anommaly detection setting with autoencoders (also know as discriminative autoencoders). The code is explained in my post https://medium.com/@santiagof/contrastive-learning-effective-anomaly-detection-with-auto-encoders-98c6e1a78ada Discriminative autoencoders aim at learning low-dimensional discriminative representations for positive (X+) and negative (X−) classes of data. The discriminative autoencoders build a latent space representation under the constraint that the positive data should be better reconstructed than the negative data. This is done by minimizing the reconstruction error for positive examples while ensuring that those of the negative class are pushed away from the manifold. This implementation is based on S. Razakarivony and F. Jurie, "Discriminative autoencoders for small targets detection," in Pattern Recognition (ICPR), 2014 ref: https://arxiv.org/pdf/1801.03149.pdf | 3,534 |
sarahmfrost/manumorph | ['style transfer'] | ['A Neural Algorithm of Artistic Style'] | main.py second_pass first_pass gram_matrix dilate_mask content_loss tv_loss load_image save_image style_loss reshape asarray open reshape astype imsave transpose matmul batch_flatten gram_matrix get_shape value slice l2_loss reshape GaussianBlur concat random_uniform save_image ScipyOptimizerInterface run str add content_loss variables range style_loss VGG16 format GaussianBlur get_session minimize Variable reshape print dict len concat save_image ScipyOptimizerInterface run str add content_loss variables range style_loss VGG16 format tv_loss GaussianBlur get_session minimize Variable reshape print dict len | # Manumorph - A Tensorflow implementation of Deep Painterly Harmonization Sarah Frost, David Abramov, and Manu Mathew Thomas [Link to our paper](https://github.com/sarahmfrost/manumorph/blob/master/Manumorph.pdf) # Overview of Project:  Style transfer, the technique by which the style of one image is applied to the content of another, is one of the most popular and well-known uses of neural network algorithms. Deep Painterly Harmonization is an extension of style transfer, but includes a content object which is placed on the style image. The network then harmonizes the style and the content. We build on Deep Painterly Harmonization, originally implemented in Torch, and re-implement the paper in Tensorflow. We extend the uses of the algorithm to explore different categories of visual media modification. We discuss the ramifications of style harmonization and style transfer on societal concepts of art, and we compare the results of the Tensorflow and Torch algorithms. Finally, we propose a design for a web application that will allow casual creators to create new art using the algorithm, without a strong technical background. #### Table of Contents * [Installation](#installation) * [Running](#running) * [Hyperparameters](#hyperparameter) | 3,535 |
sarathismg/gsne | ['network embedding'] | ['Boosting House Price Predictions using Geo-Spatial Network Embedding'] | tf/train.py tf/utils.py tf/model.py GSNE sparse_feeder score_node_classification train_test_split_sampled check_performance main train determine_type train_val_test_split score_link_prediction edges_to_sparse AliasSampling _train_val_test_split_adjacency DataUtils edge_cover coo_matrix concatenate min delete array linspace train_test_split max RandomForestRegressor mean_squared_error fit mean_absolute_error ShuffleSplit append normalize next range predict split str score_node_classification print read_pickle array read_csv values parse_args train add_argument ArgumentParser is_all GSNE model train_test_split_sampled name FileWriter savetxt Saver DataUtils read_csv proximity node_negative_distribution_temp permutation arange eliminate_zeros edges_to_sparse warn row_stack nnz column_stack seed tocsr map append edge_cover set nonzero int A1 symmetrize minimum_spanning_tree T maximum any randint array len A1 list setdiff1d arange map set flatten add row_stack nonzero append column_stack ones | # Geo-Spatial Network Embedding(GSNE) This is the official implementation for "Boosting House Price Predictions using Geo-Spatial Network Embedding". ## Requirements ``` CUDA version 10.2 Python version 3.7 scikit-learn version 0.22.1 TensorFlow 1.15 ``` ## Code | 3,536 |
sarthaksharma13/Earth-ain-t-Flat_IROS18 | ['object localization', 'autonomous driving'] | ["The Earth ain't Flat: Monocular Reconstruction of Vehicles on Steep and Graded Roads from a Moving Camera"] | deepmatching_1.0.2_c++/viz.py deepmatching_1.0.2_c++/rescore.py BBox-Label-Tool/main.py LabelTool score_from_autocorr show_correspondences max exp gaussian_filter1d abs astype maximum square sqrt convolve1d sum array append show subplot plot print mpl_disconnect mpl_connect subplots_adjust set imshow noticks clf figure | # The Earth ain't Flat: Monocular Reconstruction of Vehicles on Steep and Graded Roads from a Moving Camera Published in IROS 2018 Paper link : https://arxiv.org/abs/1803.02057 ### Results Some results on KITTI and SYNTHIA-SF  Pipeline  | 3,537 |
sarthaksharma13/IROS18 | ['object localization', 'autonomous driving'] | ["The Earth ain't Flat: Monocular Reconstruction of Vehicles on Steep and Graded Roads from a Moving Camera"] | deepmatching_1.0.2_c++/viz.py deepmatching_1.0.2_c++/rescore.py BBox-Label-Tool/main.py LabelTool score_from_autocorr show_correspondences max exp gaussian_filter1d abs astype maximum square sqrt convolve1d sum array append show subplot plot print mpl_disconnect mpl_connect subplots_adjust set imshow noticks clf figure | # The Earth ain't Flat: Monocular Reconstruction of Vehicles on Steep and Graded Roads from a Moving Camera Published in IROS 2018 Paper link : https://arxiv.org/abs/1803.02057 ### Results Some results on KITTI and SYNTHIA-SF  Pipeline  | 3,538 |
sasha-kap/CV-to-Maps | ['depth estimation', 'autonomous navigation', 'monocular depth estimation'] | ['Automatic Discovery and Geotagging of Objects from Street View Imagery'] | Mask_RCNN/mrcnn/model.py object_mapping.py Mask_RCNN/samples/water_towers/save_splash_imgs.py Mask_RCNN/mrcnn/visualize.py Mask_RCNN/samples/water_towers/balloon.py Mask_RCNN/setup.py Mask_RCNN/mrcnn/parallel_model.py Mask_RCNN/samples/water_towers/tower.py AWS_Rekognition_OCR.py Mask_RCNN/samples/water_towers/get_pixels_of_detections.py Mask_RCNN/mrcnn/utils.py Video_Processing.py Image_Processing.py Mask_RCNN/mrcnn/config.py key_gen txt_crops haversine MyClust LatLonToMeters CalcEnergyObject CalcAvrgObject main MetersToLatLon Intersect _parse_requirements Config fpn_classifier_graph MaskRCNN compose_image_meta rpn_bbox_loss_graph norm_boxes_graph compute_backbone_shapes rpn_class_loss_graph log DetectionTargetLayer trim_zeros_graph log2_graph parse_image_meta parse_image_meta_graph data_generator rpn_graph identity_block BatchNorm build_fpn_mask_graph load_image_gt build_rpn_targets resnet_graph unmold_image PyramidROIAlign apply_box_deltas_graph denorm_boxes_graph generate_random_rois detection_targets_graph build_detection_targets overlaps_graph mrcnn_bbox_loss_graph conv_block batch_pack_graph ProposalLayer smooth_l1_loss clip_boxes_graph mrcnn_class_loss_graph mrcnn_mask_loss_graph mold_image build_rpn_model DetectionLayer refine_detections_graph ParallelModel build_model compute_ap norm_boxes compute_recall apply_box_deltas compute_overlaps compute_iou resize resize_image box_refinement_graph generate_pyramid_anchors mold_mask generate_anchors compute_ap_range compute_overlaps_masks denorm_boxes unmold_mask download_trained_weights non_max_suppression minimize_mask resize_mask extract_bboxes trim_zeros compute_matches batch_slice expand_mask box_refinement Dataset display_differences draw_box display_images draw_rois draw_boxes apply_mask random_colors display_instances display_table display_weight_stats plot_overlaps plot_precision_recall display_top_masks detect_and_color_splash TowerConfig color_splash TowerDataset train get_mask_pixels load_and_color_splash color_splash size tan log exp atan list asin print cos map sqrt sin print append count_nonzero abs range len zeros range asarray linkage fcluster zeros max range len LatLonToMeters open count_nonzero haversine seed CalcAvrgObject append range format close mean zeros Intersect MetersToLatLon int time remove MyClust print CalcEnergyObject isfile randint len list map version parse_requirements array ljust size print BACKBONE callable str str conv_block identity_block range stack minimum concat maximum set_shape split minimum reshape maximum tile expand_dims split concat reduce_max boolean_mask MASK_SHAPE crop_and_resize gather box_refinement_graph round trim_zeros_graph ROI_POSITIVE_RATIO transpose squeeze pad cast expand_dims range USE_MINI_MASK overlaps_graph cond int TRAIN_ROIS_PER_IMAGE float32 greater maximum int32 split minimum apply_box_deltas_graph reshape clip_boxes_graph concat gather map_fn DETECTION_MAX_INSTANCES stack gather_nd DETECTION_MIN_CONFIDENCE pad set_intersection expand_dims argmax BBOX_STD_DEV Input rpn_graph int_shape less abs cast switch constant not_equal squeeze where mean sparse_categorical_crossentropy gather_nd cast int32 equal IMAGES_PER_GPU batch_pack_graph switch constant smooth_l1_loss squeeze where mean gather_nd cast int32 sum equal reduce_sum sparse_softmax_cross_entropy_with_logits cast gather argmax switch constant reshape smooth_l1_loss mean int64 stack cast gather_nd gather switch constant reshape transpose mean shape int64 stack cast gather_nd gather binary_crossentropy uint8 minimize_mask compose_image_meta extract_bboxes load_mask zeros astype randint resize_image shape warning resize_mask MINI_MASK_SHAPE load_image bool fliplr augment_image to_deterministic int ROI_POSITIVE_RATIO concatenate resize astype TRAIN_ROIS_PER_IMAGE compute_iou choice MASK_SHAPE int32 box_refinement USE_MINI_MASK zeros argmax range sum zip ones compute_overlaps choice RPN_TRAIN_ANCHORS_PER_IMAGE zeros argmax amax len int sort min hstack randint zeros max range split image_ids arange IMAGE_SHAPE compute_backbone_shapes RPN_ANCHOR_RATIOS generate_pyramid_anchors BACKBONE_STRIDES MAX_GT_INSTANCES shape expand_dims load_image_gt build_rpn_targets astype shuffle copy choice generate_random_rois build_detection_targets RPN_ANCHOR_SCALES mold_image RPN_ANCHOR_STRIDE float32 extend zeros len list array boolean_mask reduce_sum cast bool abs append range constant concat float32 cast split constant concat float32 cast split reset_default_graph Input zeros array range minimum maximum zeros range compute_iou T astype float32 dot sum astype delete float32 compute_iou append astype float32 stack cast float32 log astype float32 log dtype min pad resize randint max pad astype resize zeros bool range astype resize zeros bool range zeros bool astype resize arange concatenate reshape flatten sqrt meshgrid array append generate_anchors range len ones trim_zeros compute_overlaps_masks range len arange concatenate cumsum compute_matches astype float32 maximum sum range len compute_ap format print mean append compute_overlaps set argmax max len list graph_fn zip append range len print array array show subplot uint8 axis astype imshow title figure zip len list shuffle range where subplots axis show set_title apply_mask imshow find_contours range set_xlim astype copy uint8 Polygon print text add_patch Rectangle zeros fliplr set_ylim compute_matches display_instances concatenate len subplots arange rand axis Line2D unmold_mask shape title apply_mask imshow format set_xlim astype copy enumerate add_line print text add_patch Rectangle int32 set_ylim len format arange display_images unique append sum range format subplots set_title plot set_xlim set_ylim list format arange product yticks text xlabel tight_layout ylabel imshow figure xticks max range len subplots axis Line2D random_colors set_title apply_mask imshow find_contours range set_xlim astype copy add_line uint8 Polygon text add_patch Rectangle int32 zeros fliplr set_ylim HTML display get_trainable_layers name weights display_table append get_weights enumerate print prepare load_tower TowerDataset dataset rgb2gray gray2rgb uint8 astype get VideoCapture int format read CAP_PROP_FRAME_HEIGHT imsave print write now color_splash image VideoWriter CAP_PROP_FPS imread VideoWriter_fourcc CAP_PROP_FRAME_WIDTH release replace index join format path scandir color_splash abspath imread imsave makedirs | sasha-kap/CV-to-Maps | 3,539 |
saurabhdash/GCN_Partitioning | ['graph partitioning'] | ['GAP: Generalizable Approximate Graph Partitioning Framework'] | TrialModel.py utils.py models.py GraphConvolution CutLoss GCN main Test Train check_grad sparse_mx_to_torch_sparse_tensor custom_loss test_backward test_partition Train_dense symnormalise custom_loss_sparse normalize RandLargeGraph input_matrix SparseMM GCN to_sparse list format model print backward apply save item step range state_dict load format model print load_state_dict item test_partition randn print Adam Train parameters symnormalise eye manual_seed to input_matrix Test ones array csr_matrix model print backward custom_loss register_hook apply mm t div unsqueeze float sum t getattr nonzero sparse _indices t div to_dense tensor float mm range ones int random_ sum list zeros_like zip print _values _indices t pow unsqueeze nonzero to_dense append mm range enumerate diags flatten dot sum array flatten sum array diags data Size astype float32 from_numpy shape int64 max format model print backward custom_loss save item step range state_dict | # GCN Partitioning Graph Partitoning Using Graph Convolutional Networks as described in [GAP: Generalizable Approximate Graph Partitioning Framework](https://arxiv.org/abs/1903.00614) ## Loss Backward Equations To handle large graphs, the loss function is implemented using sparse torch tensors using a custom loss class. If (1%20-%20Y)%5E%7BT%7D%20%5Ccirc%20A%20) where Y_{ij} is the probability of node i being in partition j.  Then the gradients can be calculated by the equations: %20-%20y_%7Bij%7D(1%20-%20y_%7B%5Calpha%20j%7D)D_%7Bi%7D%7D%7B%5CGamma_%7Bj%7D%5E%7B2%7D%7D%5Cright)) %20-%20y_%7B%5Calpha%20j%7D(1%20-%20y_%7Bij%7D)D_%7Bi%7D%7D%7B%5CGamma_%7Bj%7D%5E%7B2%7D%7D%5Cright)) | 3,540 |
sauradip/night_image_semantic_segmentation | ['autonomous driving', 'scene parsing', 'semantic segmentation'] | ["What's There in the Dark", "What's There in the Dark"] | adapt/AdaptSegNet/dataset/cityscapes_dataset.py metrics/stream_metrics.py real/DeepLabV3Plus-Pytorch/network/utils.py utils/utils.py real/DeepLabV3Plus-Pytorch/metrics/stream_metrics.py main_model.py data_night.py config/cityscapes_config.py network/utils.py preprocessing/gamma.py real/DeepLabV3Plus-Pytorch/network/_deeplab.py adapt/AdaptSegNet/model/deeplab_vgg.py real/DeepLabV3Plus-Pytorch/network/modeling.py real/DeepLabV3Plus-Pytorch/network/backbone/__init__.py real/DeepLabV3Plus-Pytorch/main.py real/DeepLabV3Plus-Pytorch/network/backbone/mobilenetv2.py adapt/AdaptSegNet/pytorch_0.4/train_gta2cityscapes_multi.py adapt/AdaptSegNet/train_gta2cityscapes_multi.py adapt/AdaptSegNet/evaluate_cityscapes.py real/DeepLabV3Plus-Pytorch/datasets/cityscapes.py multiscale_fusion_model.py adapt/AdaptSegNet/model/deeplab.py network/__init__.py network/backbone/mobilenetv2.py utils/ext_transforms.py adapt/AdaptSegNet/dataset/gta5_dataset.py utils/__init__.py utils/scheduler.py adapt/AdaptSegNet/model/deeplab_multi.py fusion.py real/DeepLabV3Plus-Pytorch/datasets/utils.py adapt/AdaptSegNet/utils/loss.py real/DeepLabV3Plus-Pytorch/network/__init__.py metrics/__init__.py real/DeepLabV3Plus-Pytorch/network/backbone/resnet.py real/DeepLabV3Plus-Pytorch/datasets/voc.py config/__init__.py adapt/AdaptSegNet/compute_iou.py cityscapes_dataloader_v2.py network/backbone/__init__.py real/DeepLabV3Plus-Pytorch/datasets/__init__.py network/_deeplab.py network/backbone/resnet.py adapt/AdaptSegNet/model/discriminator.py network/modeling.py adapt/AdaptSegNet/evaluate_cityscapes_p2.py real/DeepLabV3Plus-Pytorch/metrics/__init__.py utils/loss.py cityscapes_dataloader.py utils/visualizer.py adapt/AdaptSegNet/pytorch_0.4/evaluate_cityscapes.py cityscapesDataSet cityscapesDataSet MultiScaleFusion lr_poly adaptive_channel loss_calc save_model_ckpt adjust_learning_rate JaccardLoss Nisenet FusionLoss real_channel adjust_learning_rate_D save_ckpt per_class_iu fast_hist label_mapping main compute_mIoU main colorize_mask get_arguments main colorize_mask get_arguments lr_poly loss_calc adjust_learning_rate main adjust_learning_rate_D get_arguments cityscapesDataSet GTA5DataSet Classifier_Module ResNet Bottleneck conv3x3 BasicBlock Res_Deeplab outS Classifier_Module Bottleneck conv3x3 ResNetMulti DeeplabMulti BasicBlock outS Classifier_Module DeeplabVGG FCDiscriminator main colorize_mask get_arguments lr_poly adjust_learning_rate main adjust_learning_rate_D get_arguments CrossEntropy2d Config AverageMeter StreamSegMetrics _StreamMetrics deeplabv3_resnet101 deeplabv3plus_mobilenet deeplabv3_mobilenet deeplabv3_resnet50 _segm_resnet _load_model _segm_mobilenet deeplabv3plus_resnet50 deeplabv3plus_resnet101 _SimpleSegmentationModel IntermediateLayerGetter DeepLabHead AtrousSeparableConvolution convert_to_separable_conv ASPPPooling DeepLabV3 ASPPConv DeepLabHeadV3Plus ASPP InvertedResidual _make_divisible ConvBNReLU fixed_padding mobilenet_v2 MobileNetV2 conv1x1 resnext50_32x4d wide_resnet50_2 ResNet resnet50 resnext101_32x8d Bottleneck resnet152 wide_resnet101_2 conv3x3 _resnet resnet34 resnet18 BasicBlock resnet101 adjust_gamma main validate get_argparser get_dataset Cityscapes list_files download_url check_integrity gen_bar_updater list_dir makedir_exist_ok download_extract VOCSegmentation voc_cmap AverageMeter StreamSegMetrics _StreamMetrics deeplabv3_resnet101 deeplabv3plus_mobilenet deeplabv3_mobilenet deeplabv3_resnet50 _segm_resnet _load_model _segm_mobilenet deeplabv3plus_resnet50 deeplabv3plus_resnet101 _SimpleSegmentationModel IntermediateLayerGetter DeepLabHead AtrousSeparableConvolution convert_to_separable_conv ASPPPooling DeepLabV3 ASPPConv DeepLabHeadV3Plus ASPP InvertedResidual _make_divisible ConvBNReLU fixed_padding mobilenet_v2 MobileNetV2 conv1x1 resnext50_32x4d wide_resnet50_2 ResNet resnet50 resnext101_32x8d Bottleneck resnet152 wide_resnet101_2 conv3x3 _resnet resnet34 resnet18 BasicBlock resnet101 ExtColorJitter ExtRandomRotation ExtCompose ExtScale ExtRandomHorizontalFlip Lambda Compose ExtCenterCrop ExtNormalize ExtPad ExtToTensor ExtRandomVerticalFlip ExtResize ExtRandomCrop ExtRandomScale FocalLoss PolyLR set_bn_momentum fix_bn denormalize Denormalize mkdir Visualizer cityscapesDataSet MultiScaleFusion lr_poly adaptive_channel loss_calc save_model_ckpt adjust_learning_rate JaccardLoss Nisenet FusionLoss real_channel adjust_learning_rate_D save_ckpt per_class_iu fast_hist label_mapping main compute_mIoU colorize_mask get_arguments lr_poly loss_calc adjust_learning_rate adjust_learning_rate_D cityscapesDataSet GTA5DataSet Classifier_Module ResNet Bottleneck conv3x3 BasicBlock Res_Deeplab outS ResNetMulti DeeplabMulti DeeplabVGG FCDiscriminator main colorize_mask get_arguments lr_poly adjust_learning_rate adjust_learning_rate_D CrossEntropy2d Config AverageMeter StreamSegMetrics _StreamMetrics deeplabv3_resnet101 deeplabv3plus_mobilenet deeplabv3_mobilenet deeplabv3_resnet50 _segm_resnet _load_model _segm_mobilenet deeplabv3plus_resnet50 deeplabv3plus_resnet101 _SimpleSegmentationModel IntermediateLayerGetter DeepLabHead AtrousSeparableConvolution convert_to_separable_conv ASPPPooling DeepLabV3 ASPPConv DeepLabHeadV3Plus ASPP InvertedResidual _make_divisible ConvBNReLU fixed_padding mobilenet_v2 MobileNetV2 conv1x1 resnext50_32x4d wide_resnet50_2 ResNet resnet50 resnext101_32x8d Bottleneck resnet152 wide_resnet101_2 conv3x3 _resnet resnet34 resnet18 BasicBlock resnet101 adjust_gamma main validate get_argparser get_dataset Cityscapes list_files download_url check_integrity gen_bar_updater list_dir makedir_exist_ok download_extract VOCSegmentation voc_cmap AverageMeter StreamSegMetrics _StreamMetrics deeplabv3_resnet101 deeplabv3plus_mobilenet deeplabv3_mobilenet deeplabv3_resnet50 _segm_resnet _load_model _segm_mobilenet deeplabv3plus_resnet50 deeplabv3plus_resnet101 _SimpleSegmentationModel IntermediateLayerGetter DeepLabHead AtrousSeparableConvolution convert_to_separable_conv ASPPPooling DeepLabV3 ASPPConv DeepLabHeadV3Plus ASPP InvertedResidual _make_divisible ConvBNReLU fixed_padding mobilenet_v2 MobileNetV2 conv1x1 resnext50_32x4d wide_resnet50_2 ResNet resnet50 resnext101_32x8d Bottleneck resnet152 wide_resnet101_2 conv3x3 _resnet resnet34 resnet18 BasicBlock resnet101 ExtColorJitter ExtRandomRotation ExtCompose ExtScale ExtRandomHorizontalFlip Lambda Compose ExtCenterCrop ExtNormalize ExtPad ExtToTensor ExtRandomVerticalFlip ExtResize ExtRandomCrop ExtRandomScale FocalLoss PolyLR set_bn_momentum fix_bn denormalize Denormalize mkdir Visualizer append array namedtuple set_bn_momentum step_size StepLR l_r lr_policy SGD total_iter real_loss PolyLR weight_decay FocalLoss backbone CrossEntropyLoss print save print save cuda num_steps power learning_rate lr_poly learning_rate_D power lr_poly num_steps DeeplabVGG range copy len int join format per_class_iu str print len flatten mean nanmean splitlines label_mapping zeros round array range open devkit_dir pred_dir gt_dir compute_mIoU convert putpalette add_argument ArgumentParser model DataLoader save device DeeplabMulti argmax DeeplabVGG Res_Deeplab fromarray data_dir transpose load_state_dict restore_from to get_arguments state_dict update asarray load_url eval enumerate load cityscapesDataSet colorize_mask data_list print Upsample numpy makedirs cuda gpu interp_target iter_size lambda_seg GTA5DataSet zero_grad SGD data_dir_target adjust_learning_rate BCEWithLogitsLoss str list model_D1 step map Adam MSELoss next range detach num_steps format optim_parameters num_steps_stop FCDiscriminator copy loss_calc model_D2 softmax interp bce_loss lambda_adv_target1 join backward snapshot_dir lambda_adv_target2 parameters data_list_target split train adjust_learning_rate_D ceil int ResNet ResNetMulti __next__ seg_loss tensorboard CrossEntropyLoss SummaryWriter close items log_dir add_scalar DeepLabHead DeepLabV3 DeepLabHeadV3Plus IntermediateLayerGetter DeepLabHead IntermediateLayerGetter DeepLabV3 mobilenet_v2 DeepLabHeadV3Plus _segm_mobilenet _segm_resnet startswith AtrousSeparableConvolution named_children kernel_size padding out_channels in_channels stride dilation bias add_module int max load load_state_dict MobileNetV2 ResNet load_state_dict load_state_dict_from_url astype add_argument ArgumentParser Cityscapes crop_val VOCSegmentation ExtCompose mkdir Denormalize reset save_val_results validate ckpt continue_training Denormalize PolyLR gpu_id DataParallel classifier vis_scalar backbone seed StepLR num_classes vis_table get_dataset total_itrs parse_args FocalLoss save_ckpt set_bn_momentum concatenate astype mkdir manual_seed to_str random_seed vars vis_image uint8 convert_to_separable_conv criterion StreamSegMetrics append array namedtuple md5 hexdigest makedirs join basename urlretrieve print expanduser makedir_exist_ok expanduser list expanduser list zeros bitget array range voc_cmap download_url array BatchNorm2d modules isinstance BatchNorm2d eval modules isinstance | sauradip/night_image_semantic_segmentation | 3,541 |
sauravcsvt/Dis2Vec_supplementary | ['word embeddings'] | ['Characterizing Diseases from Unstructured Text: A Vocabulary Driven Word2vec Approach'] | Dis2Vec_code/run_Dis2Vec.py main parse_args Dis2Vec add_argument ArgumentParser load inputcorpus int neg spm opm float smoothing run_Dis2Vec parse_args win domainvocab dim open | # Dis2Vec_supplementary Supplementary information for Dis2Vec This repository contains the source codes associated with the manuscript entitled ``Characterizing Diseases from Unstructured Text: A Vocabulary Driven Word2vec Approach`` published in CIKM 2016. The manuscript can be accessed at [Dis2Vec-pdf](http://people.cs.vt.edu/~naren/papers/disease_vec_16.pdf) and the source code can be accessed at [Dis2Vec-code](./Dis2Vec_code/). | 3,542 |
saya1984/MonsterCarlo2 | ['unity'] | ['Unity: A General Platform for Intelligent Agents'] | ml-agents/mlagents/envs/communicator_objects/environment_parameters_proto_pb2.py ml-agents/tests/trainers/test_trainer_controller.py ml-agents/mlagents/trainers/buffer.py ml-agents/mlagents/envs/communicator_objects/unity_rl_initialization_input_pb2.py ml-agents/mlagents/envs/communicator_objects/brain_parameters_proto_pb2.py ml-agents/tests/envs/test_envs.py UnitySDK/gym-unity/tests/test_gym.py ml-agents/mlagents/envs/communicator_objects/__init__.py UnitySDK/gym-unity/setup.py ml-agents/mlagents/envs/rpc_communicator.py UnitySDK/gym-unity/gym_unity/__init__.py ml-agents/mlagents/trainers/ppo/__init__.py UnitySDK/gym-unity/gym_unity/envs/__init__.py ml-agents/mlagents/envs/communicator_objects/agent_action_proto_pb2.py ml-agents/mlagents/trainers/learn.py training2.py ml-agents/mlagents/trainers/policy.py ml-agents/mlagents/trainers/bc/trainer.py ml-agents/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.py ml-agents/tests/trainers/test_curriculum.py ml-agents/mlagents/trainers/meta_curriculum.py ml-agents/mlagents/trainers/curriculum.py ml-agents/mlagents/trainers/ppo/models.py ml-agents/mlagents/envs/communicator_objects/space_type_proto_pb2.py ml-agents/mlagents/envs/communicator_objects/unity_output_pb2.py ml-agents/mlagents/envs/communicator_objects/unity_input_pb2.py MonsterCarlo_alive.py ml-agents/mlagents/envs/communicator_objects/engine_configuration_proto_pb2.py ml-agents/mlagents/trainers/ppo/policy.py ml-agents/mlagents/envs/communicator_objects/brain_type_proto_pb2.py ml-agents/mlagents/envs/socket_communicator.py ml-agents/mlagents/trainers/trainer_controller.py ml-agents/mlagents/envs/communicator_objects/agent_info_proto_pb2.py ml-agents/mlagents/envs/communicator_objects/unity_to_external_pb2_grpc.py ml-agents/tests/trainers/test_ppo.py ml-agents/mlagents/envs/brain.py ml-agents/mlagents/trainers/bc/policy.py ml-agents/tests/trainers/test_bc.py ml-agents/tests/mock_communicator.py ml-agents/mlagents/envs/communicator_objects/unity_message_pb2.py ml-agents/mlagents/trainers/models.py ml-agents/mlagents/trainers/__init__.py ml-agents/mlagents/envs/communicator_objects/resolution_proto_pb2.py experiment_example.py ml-agents/mlagents/envs/communicator_objects/unity_to_external_pb2.py ml-agents/mlagents/envs/communicator_objects/unity_rl_input_pb2.py experiment_example_alive.py ml-agents/tests/trainers/test_buffer.py UnitySDK/gym-unity/gym_unity/envs/unity_env.py MonsterCarlo.py ml-agents/mlagents/trainers/trainer.py ml-agents/mlagents/envs/communicator.py ml-agents/setup.py ml-agents/mlagents/envs/communicator_objects/unity_rl_output_pb2.py ml-agents/mlagents/envs/__init__.py ml-agents/mlagents/trainers/bc/__init__.py ml-agents/mlagents/envs/exception.py ml-agents/mlagents/trainers/bc/models.py ml-agents/mlagents/envs/environment.py ml-agents/mlagents/envs/communicator_objects/command_proto_pb2.py ml-agents/mlagents/trainers/exception.py ml-agents/tests/trainers/test_meta_curriculum.py ml-agents/mlagents/trainers/ppo/trainer.py ml-agents/mlagents/envs/communicator_objects/header_pb2.py make_factory on_progress_1 make_factory on_progress_1 TerminalTreatment Node Tree run TerminalTreatment Node Tree run BrainInfo BrainParameters Communicator UnityEnvironment UnityException UnityTimeOutException UnityEnvironmentException UnityActionException RpcCommunicator UnityToExternalServicerImplementation SocketCommunicator UnityToExternalServicer UnityToExternalStub add_UnityToExternalServicer_to_server BufferException Buffer Curriculum CurriculumError MetaCurriculumError TrainerError main run_training MetaCurriculum LearningModel Policy UnityPolicyException UnityTrainerException Trainer TrainerController BehavioralCloningModel BCPolicy BehavioralCloningTrainer PPOModel PPOPolicy PPOTrainer get_gae discount_rewards MockCommunicator test_initialization test_reset test_close test_step test_handles_bad_filename test_dc_bc_model test_cc_bc_model test_visual_cc_bc_model test_bc_policy_evaluate dummy_config test_visual_dc_bc_model assert_array test_buffer location default_reset_parameters test_init_curriculum_bad_curriculum_raises_error test_init_curriculum_happy_path test_increment_lesson test_get_config test_init_meta_curriculum_happy_path test_increment_lessons_with_reward_buff_sizes default_reset_parameters MetaCurriculumTest test_increment_lessons measure_vals reward_buff_sizes test_set_all_curriculums_to_lesson_num test_get_config test_set_lesson_nums test_init_meta_curriculum_bad_curriculum_folder_raises_error more_reset_parameters test_rl_functions test_ppo_model_dc_vector_curio test_ppo_model_dc_vector_rnn test_ppo_model_cc_vector_rnn test_ppo_policy_evaluate test_ppo_model_cc_visual dummy_config test_ppo_model_dc_vector test_ppo_model_dc_visual test_ppo_model_cc_visual_curio test_ppo_model_dc_visual_curio test_ppo_model_cc_vector_curio test_ppo_model_cc_vector test_initialization test_initialize_trainers dummy_bc_config dummy_bad_config dummy_config dummy_start test_load_config UnityGymException UnityEnv test_gym_wrapper test_multi_agent print join print GameWorker Tree start CUT_OFF append range Lock method_handlers_generic_handler add_generic_rpc_handlers start_learning int str TrainerController int Process getLogger print start info append randint docopt range list zeros_like size reversed range asarray tolist discount_rewards UnityEnvironment close MockCommunicator UnityEnvironment close MockCommunicator reset str local_done print agents step close reset MockCommunicator UnityEnvironment len UnityEnvironment close MockCommunicator reset_default_graph close reset_default_graph reset_default_graph reset_default_graph reset_default_graph flatten list range len get_batch Buffer assert_array append_update_buffer make_mini_batch append reset_agent array range Curriculum Curriculum Curriculum MetaCurriculum assert_has_calls MetaCurriculumTest increment_lessons assert_called_with MetaCurriculumTest increment_lessons assert_called_with assert_not_called MetaCurriculumTest set_all_curriculums_to_lesson_num MetaCurriculumTest dict update MetaCurriculumTest reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph reset_default_graph assert_array_almost_equal array discount_rewards TrainerController sample step MockCommunicator UnityEnv step MockCommunicator UnityEnv | <img src="docs/images/unity-wide.png" align="middle" width="3000"/> <img src="docs/images/image-banner.png" align="middle" width="3000"/> ############################################# This repo will eventually have my implementation of Alpha-Go inspired MCTS+NN(via Unity's ML Agents) framework for playtesting games made in Unity. I got it working and all, but I'm still cleaning up the code and writing documentation, so the current code here is hardly useable. Please check in in a month or so orz. ############################################## | 3,543 |
sayaendo/document-set-expansion-pu | ['information retrieval'] | ['Scalable Evaluation and Improvement of Document Set Expansion via Neural Positive-Unlabeled Learning'] | dse/dataset_readers/pubmed_expansion_dataset_reader.py dse/models/losses/nnpu.py dse/models/academic_document_classifier.py dse/elasticsearch_dse/query_pubmed_es_index.py dse/elasticsearch_dse/build_pubmed_es_index.py dse/iterators/proportional_iterator.py PubmedExpansionDatasetReader get_articles_data_from_pubmed_xml build_es_pubmed_index get_mlt_query dump_jsonl scroll_search get_pmid_query build_datasets get_conjunction_match_query query_pubmed_index shuffle_combined combine_datasets ProportionalIterator AcademicDocumentClassifier NonNegativePULoss get_articles_data_from_pubmed_xml create print delete store_record append scroll search len list shuffle zip get_mlt_query print scroll_search get_conjunction_match_query shuffle_combined shuffle copy append range len update int print issubset shuffle set split append len | sayaendo/document-set-expansion-pu | 3,544 |
sayred1/CNN | ['stochastic optimization'] | ['Adam: A Method for Stochastic Optimization'] | .ipynb_checkpoints/CNN w Numpy-checkpoint.py .ipynb_checkpoints/utilz-checkpoint.py cnn/utils.py cnn/backward.py .ipynb_checkpoints/backward-checkpoint.py cnn/forward.py get_mask maxpool_gradient fc_grad_second fc_grad_first convolution_gradient loss get_output get_parameters get_parameter_dict relu get_forward_dict gradRelu softmax pool convolve loss softmax initPool initConv relu zeros shape range zeros get_mask shape range zeros dot T sum dot sum gradRelu shape int randn shape sum range initConv shape range max initPool shape int shape int | # To run, first clone the cnn directory #### As of now, the number of layers are held static, as are the dimensions of parameters. CNN with Numpy.ipynb is composed of the network layout, while backward.py, forward.py, and utils.py hold functions used in the model. #### The current setup is composed of input --> conv + relu --> pool --> conv + relu --> pool --> flatten --> fc1 -- fc2 (prediction). #### To run: ```python # load the data (train_images, train_labels), (test_images, test_labels) = datasets.mnist.load_data() train_images = train_images.reshape((1, 28, 28, 60000)) # (channels, rows, cols, imgs) test_images = test_images.reshape((1, 28, 28, 10000)) # (channels, rows, cols, imgs) ``` | 3,545 |
sbos/AdaGram.jl | ['word sense induction'] | ['Breaking Sticks and Ambiguities with Adaptive Skip-gram'] | test-all.py get_pairs compute_metrics read_answers compute_fscore append combinations unique get_pairs float intersection len v_measure_score list print adjusted_rand_score compute_fscore keys argsort mean append float sum array len | sbos/AdaGram.jl | 3,546 |
scarletcho/KoG2P | ['speech synthesis'] | ['Learning pronunciation from a foreign language in speech synthesis networks'] | g2p.py isHangul addSpace phone2prono graph2prono runTest checkCharType readfileUTF8 writefile addPhoneBoundary graph2phone readRules runKoG2P testG2P readline close sub encode append open format write close open str readline close sub split encode append open append isHangul range len decode int ord checkCharType floor sub append range len sub zip str phone2prono print addPhoneBoundary sub graph2phone str addSpace graph2prono print writefile sub graph2phone readRules append range len print str graph2prono readRules print testG2P now | scarletcho/KoG2P | 3,547 |
schatzkara/cross-view-video | ['action recognition'] | ['A Recurrent Transformer Network for Novel View Action Synthesis'] | utils/modelIOFuncs.py networks/convGRU.py networks/transformer.py testModel.py networks/discriminator.py networks/modifiedI3D.py networks/vpp.py networks/kpp.py networks/model.py trainModel.py data/NTUDataLoader.py networks/expander.py networks/perceptualLossFeatures.py networks/modifiedVGG.py networks/generator.py test_model test print_params panoptic_config ntu_config train_model pretrained_weights_config print_params panoptic_config ntu_config NTUDataset ConvGRU ConvGRUCell InceptionI3d MaxPool3dSamePadding load_layer_weights InceptionModule Discriminator Unit3D Expander Generator KPPredictor FullNetwork InceptionI3d MaxPool3dSamePadding load_layer_weights InceptionModule Unit3D vgg19 VGG vgg16_bn _vgg vgg19_bn vgg11_bn vgg13 vgg11 make_layers vgg13_bn vgg16 vgg19 VGG vgg16_bn _vgg vgg19_bn vgg11_bn vgg13 vgg11 make_layers vgg13_bn vgg16 Transformer VPPredictor convert_outputs_4 convert_outputs_8 get_first_frame convert_outputs_10 export_vps make_vid_path make_frame_name convert_outputs save_frames denormalize_frame convert_outputs_6 from_tensor convert_to_vid format format mkdir format print eval to enumerate len print time format test print format print print mkdir generator zero_grad save perceptual_loss fill_ discriminator adversarial_loss append to range detach state_dict format mean enumerate criterion backward Variable reshape print step len load items list extend Conv2d make_layers VGG zeros range convert_outputs_10 convert_outputs_4 convert_outputs_6 convert_outputs_8 convert_to_vid convert_to_vid convert_to_vid convert_to_vid size range save_frames join imwrite size make_vid_path make_frame_name denormalize_frame numpy range from_tensor join mkdir astype float32 transpose join | # A Recurrent Transformer Network for Novel View Action Synthesis, ECCV 2020 | 3,548 |
schmiflo/crf-generation | ['text generation'] | ['Autoregressive Text Generation Beyond Feedback Loops'] | train.py models/iid.py models/transitions.py models/emb_crf.py models/tf_crf.py models/tf_utils.py toy_language.py models/contextual_crf.py get_toy_dataset _generate main _run_test CrfBackwardsRnnCell sample_from_crf crf_log_likelihood get_forwards_probabilities crf_log_norm CrfForwardRnnCell get_backwards_probabilities crf_binary_score crf_sequence_score ForwardSamplingCell ContextualEmbCRF IIDModel TFCRF get_positional_states reverse_and_repad load_asymmetric_glove_embedding tfprint get_position_encoding add_optimizer_graph get_fn SingleMatrixTransitions TransitionManager EmbStateTransformation MultiMatrixTransitions list RandomState range len list islice _generate print format mean get_positional_states ContextualEmbCRF set_random_seed get_next model_dir string embedding_method model_seed vocab_size max_grad_norm from_string_handle seed initial_learning_rate make_initializable_iterator crf_emb_size placeholder build Model add_optimizer_graph cast state_size crf_transitions crf crf_d load_asymmetric_glove_embedding FileWriter crf_pretrained_embedding fill output_shapes merge max_sequence_length S_fn ll nr_s_layers output_types float32 summaries slice reduce_sum sequence_mask get_pairwise_at_indices get_forwards_probabilities dynamic_rnn constant reduce_logsumexp zeros_like slice squeeze concat less_equal maximum where pack_to_parameter_sequence CrfForwardRnnCell dynamic_rnn reverse_and_repad constant reduce_logsumexp zeros_like CrfBackwardsRnnCell slice concat less_equal maximum where pack_to_parameter_sequence num_tags zeros dynamic_rnn constant reshape concat to_int32 log_softmax maximum squeeze get_backwards_probabilities pack_to_parameter_sequence multinomial gather_nd num_tags set_shape range ForwardSamplingCell split crf_unary_score crf_binary_score crf_log_norm crf_sequence_score reshape embedding_lookup range tile exp concat float32 log expand_dims cast float range less constant random_uniform embedding_lookup ones_like sequence_mask isinstance reshape concat boolean_mask shape tile range items list print float32 placeholder uniform load_word2vec_format zeros trainable_variables join format list gradients print name clip_by_global_norm AdamOptimizer apply_gradients int32 zip get_variable | # Embedding-based Contextual CRF Output and code for the paper [Autoregressive Text Generation Beyond Feedback Loops](https://arxiv.org/abs/1908.11658) _Florian Schmidt, Stephan Mandt, Thomas Hofmann_ presented at EMNLP 2019. ## Evaluation n-gram models The n-gram models estimated on the SNLI corpus [1] used for evaluation were created using the [SRILM](http://www.speech.sri.com/projects/srilm) [2] language modeling toolbox. The Kneser–Ney smoothed 2-gram and 3-gram models used in the paper can be found under [n-gram-models](n-gram-models/). With SRILM installed, one can evaluate generated output on the console like ```console ngram -lm n-gram-models/snli.2gram.lm -ppl generated-text/ssm-crf | 3,549 |
schmit/optimal-testing-experiment-rich-regime | ['experimental design'] | ['Optimal Testing in the Experiment-rich Regime'] | src/experiments.py src/create_baseball_plot.py src/boundary_test.py src/solvers.py src/sprt.py src/run_experiments.py src/util.py src/summarize_experiments.py src/distribution.py src/create_boundary_plot.py src/fixed_test.py boundary_test plot_results normal_kldiv plogpq binomial_kldiv Binomial Beta hazard conditional_expectation Gaussian posterior cum_posterior load_baseball_data run_fixed_test_early_stopping_experiment save_experiment run_experiment run_bayesian_test summarize run_msprt_experiment run_optimal_boundary_experiment run_heuristic_boundary_experiment run_fixed_test_experiment fixed_test fixed_test_early_stopping run_experiment binomial_adaptive_backtrack martingale normal_acceptance save_boundary normal_rejection bisection_search load_boundary normal_adaptive_backtrack solve_binomial solve_normal normal_value binomial_value binomial_heuristic normal_heuristic binomial_acceptance binomial_rejection nonadaptive stepsize normal_backtrack binomial_fast_update binomial_backtrack msprt_pval beta_binomial_lr logBeta binomial_bayesian_test normal_msprt Beta normal_msprt_test binomial_msprt_test open_files parse_data create_df beta_mom sample n plot semilogy print mask legend fill_between pdf fn condition sample append read_csv sum max len list append Beta time run_experiment fixed_test Beta time run_experiment fixed_test_early_stopping Beta time run_experiment get time run_experiment binomial_bayesian_test Beta cdf time run_experiment print Beta solve_binomial get time run_experiment print Beta binomial_heuristic binomial_acceptance load_baseball_data time format save_experiment print beta_mom print format backtracker tau ppf sigma reject accept len martingale cdf values n reject normal_value accept normal_acceptance normal_rejection linspace n min max log boundary normal_value stepsize normal_backtrack reverse normal_acceptance append n posterior int Binomial accept n reject accept Binomial mean posterior cdf n binomial_acceptance binomial_rejection n boundary sample_update binomial_value binomial_backtrack binomial_acceptance reverse append n bisection_search bisection_search boundary ppf Gaussian sqrt normal_acceptance range append sigma boundary ppf Binomial binomial_acceptance append range dump load sqrt sigma normal_msprt_pval normal_msprt Binomial Gaussian range logBeta log beta_binomial_lr msprt_pval Binomial b a range print format walk len DataFrame fillna format create_df print to_csv open_files head mean var | # Optimal testing in the experiment-rich regime Code to replicate results in "Optimal Testing in the Experiment-rich Regime" paper ## Requirements - Python 3 - pandas - dpfly - matplotlib - numpy - scipy - toolz | 3,550 |
schmitzmelissa/unity-ml-penguins | ['unity'] | ['Unity: A General Platform for Intelligent Agents'] | ml-agents/mlagents/trainers/components/reward_signals/curiosity/model.py ml-agents-envs/mlagents_envs/communicator_objects/command_pb2.py ml-agents/mlagents/trainers/run_experiment.py ml-agents-envs/mlagents_envs/mock_communicator.py ml-agents/mlagents/trainers/policy/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/unity_to_external_pb2.py ml-agents-envs/mlagents_envs/communicator.py gym-unity/gym_unity/envs/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.py ml-agents/mlagents/trainers/learn.py ml-agents/mlagents/trainers/tests/test_sampler_class.py ml-agents/mlagents/logging_util.py ml-agents/mlagents/trainers/meta_curriculum.py ml-agents/mlagents/trainers/tests/test_barracuda_converter.py ml-agents-envs/mlagents_envs/side_channel/raw_bytes_channel.py ml-agents/mlagents/trainers/trainer/trainer.py gym-unity/gym_unity/__init__.py ml-agents-envs/mlagents_envs/side_channel/__init__.py utils/validate_meta_files.py ml-agents/mlagents/trainers/trainer_controller.py ml-agents/mlagents/trainers/components/bc/model.py ml-agents/mlagents/trainers/tests/test_curriculum.py ml-agents/mlagents/trainers/action_info.py ml-agents/mlagents/trainers/tests/test_ppo.py ml-penguins/Library/PackageCache/[email protected]/Tools/barracuda.py ml-agents/mlagents/tf_utils/__init__.py ml-agents/mlagents/trainers/components/reward_signals/__init__.py ml-agents-envs/setup.py ml-agents-envs/mlagents_envs/side_channel/engine_configuration_channel.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.py ml-agents/mlagents/trainers/tests/mock_brain.py ml-agents/mlagents/trainers/tests/test_bcmodule.py ml-agents/mlagents/trainers/tests/test_trainer_controller.py ml-agents-envs/mlagents_envs/side_channel/incoming_message.py ml-agents/mlagents/trainers/components/reward_signals/reward_signal_factory.py ml-agents-envs/mlagents_envs/rpc_utils.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_output_pb2.py ml-agents/setup.py ml-agents/mlagents/trainers/barracuda.py ml-agents/mlagents/trainers/optimizer/tf_optimizer.py ml-agents/mlagents/trainers/env_manager.py ml-agents/mlagents/trainers/ppo/trainer.py ml-agents/mlagents/trainers/policy/policy.py ml-agents-envs/mlagents_envs/communicator_objects/agent_action_pb2.py ml-agents/mlagents/model_serialization.py ml-agents-envs/mlagents_envs/tests/test_rpc_communicator.py ml-agents-envs/mlagents_envs/tests/test_envs.py ml-agents/mlagents/trainers/brain.py ml-penguins/Library/PackageCache/[email protected]/Tools/onnx_to_barracuda.py ml-agents-envs/mlagents_envs/side_channel/float_properties_channel.py utils/validate_inits.py ml-agents/mlagents/trainers/tests/test_meta_curriculum.py ml-agents/mlagents/trainers/components/reward_signals/curiosity/signal.py ml-agents/mlagents/trainers/simple_env_manager.py ml-agents-envs/mlagents_envs/side_channel/outgoing_message.py ml-agents-envs/mlagents_envs/exception.py ml-agents/mlagents/trainers/curriculum.py ml-agents/mlagents/trainers/tests/test_policy.py ml-agents/mlagents/trainers/trainer/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/unity_message_pb2.py ml-agents/mlagents/trainers/tests/test_learn.py ml-agents/mlagents/trainers/policy/nn_policy.py ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.py ml-agents/mlagents/trainers/tests/test_demo_loader.py ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.py utils/validate_versions.py ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py ml-agents/mlagents/trainers/models.py ml-agents-envs/mlagents_envs/tests/test_timers.py ml-agents/mlagents/trainers/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/custom_reset_parameters_pb2.py ml-agents-envs/mlagents_envs/communicator_objects/agent_info_action_pair_pb2.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.py ml-agents/mlagents/trainers/tests/test_nn_policy.py ml-agents-envs/mlagents_envs/timers.py ml-agents/mlagents/trainers/tests/test_simple_rl.py ml-agents/mlagents/trainers/exception.py ml-agents/mlagents/trainers/tests/test_distributions.py gym-unity/gym_unity/tests/test_gym.py utils/make_readme_table.py ml-agents/mlagents/tf_utils/tf.py ml-agents/mlagents/trainers/tests/test_ghost.py ml-agents/mlagents/trainers/buffer.py ml-agents-envs/mlagents_envs/side_channel/side_channel.py ml-agents/mlagents/trainers/tests/test_subprocess_env_manager.py ml-agents/mlagents/trainers/subprocess_env_manager.py ml-agents/mlagents/trainers/tensorflow_to_barracuda.py ml-agents/mlagents/trainers/agent_processor.py ml-agents-envs/mlagents_envs/communicator_objects/engine_configuration_pb2.py ml-agents/mlagents/trainers/tests/test_rl_trainer.py ml-agents-envs/mlagents_envs/rpc_communicator.py ml-agents-envs/mlagents_envs/communicator_objects/demonstration_meta_pb2.py ml-agents-envs/mlagents_envs/__init__.py gym-unity/setup.py ml-agents/mlagents/trainers/behavior_id_utils.py ml-agents/mlagents/trainers/sac/network.py ml-agents/mlagents/trainers/distributions.py ml-agents/mlagents/trainers/policy/tf_policy.py ml-agents/mlagents/trainers/optimizer/__init__.py ml-agents/mlagents/trainers/tests/simple_test_envs.py ml-agents/mlagents/trainers/tests/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/unity_output_pb2.py ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.py ml-agents/mlagents/trainers/trainer_util.py ml-agents/mlagents/trainers/tests/test_trainer_util.py ml-agents/mlagents/trainers/components/reward_signals/extrinsic/signal.py ml-agents/mlagents/trainers/sac/trainer.py ml-agents/mlagents/trainers/sampler_class.py ml-agents/tests/yamato/training_int_tests.py ml-agents/mlagents/trainers/tests/test_sac.py ml-agents/mlagents/trainers/trajectory.py ml-agents/mlagents/trainers/ppo/optimizer.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.py ml-agents-envs/mlagents_envs/base_env.py ml-agents-envs/mlagents_envs/communicator_objects/header_pb2.py ml-agents/mlagents/trainers/tests/test_stats.py ml-agents/mlagents/trainers/components/reward_signals/gail/model.py ml-agents/mlagents/trainers/tests/test_reward_signals.py ml-agents/mlagents/trainers/components/reward_signals/gail/signal.py ml-agents-envs/mlagents_envs/tests/test_side_channel.py ml-agents/mlagents/trainers/sac/optimizer.py ml-agents/tests/yamato/standalone_build_tests.py ml-agents-envs/mlagents_envs/environment.py ml-agents/mlagents/trainers/demo_loader.py ml-agents/mlagents/trainers/ghost/trainer.py ml-agents/tests/yamato/editmode_tests.py ml-agents/mlagents/trainers/components/bc/module.py ml-agents-envs/mlagents_envs/communicator_objects/unity_input_pb2.py ml-agents/mlagents/trainers/tests/test_buffer.py ml-agents/mlagents/trainers/trainer/rl_trainer.py ml-agents/mlagents/trainers/tests/test_agent_processor.py ml-penguins/Library/PackageCache/[email protected]/Tools/tensorflow_to_barracuda.py ml-agents-envs/mlagents_envs/communicator_objects/unity_to_external_pb2_grpc.py ml-agents/mlagents/trainers/brain_conversion_utils.py ml-agents/tests/yamato/yamato_utils.py ml-penguins/Library/PackageCache/[email protected]/Tools/keras_to_barracuda.py ml-agents/mlagents/trainers/stats.py ml-agents/mlagents/trainers/tests/test_trajectory.py ml-agents/mlagents/trainers/optimizer/optimizer.py VerifyVersionCommand AgentIdIndexMapper AgentIdIndexMapperSlow ActionFlattener UnityEnv UnityGymException test_sanitize_action_shuffled_id test_sanitize_action_one_agent_done test_gym_wrapper test_multi_agent test_agent_id_index_mapper create_mock_group_spec test_branched_flatten setup_mock_unityenvironment test_gym_wrapper_visual create_mock_vector_step_result VerifyVersionCommand create_logger _get_frozen_graph_node_names export_policy_model _make_onnx_node_for_constant _make_frozen_graph _get_output_node_names _get_input_node_names convert_frozen_to_onnx _enforce_onnx_conversion SerializationSettings _process_graph set_warnings_enabled generate_session_config ActionInfo AgentManager AgentProcessor AgentManagerQueue BarracudaWriter fuse print_known_operations compress Build sort lstm write fuse_batchnorm_weights trim mean gru Model summary Struct parse_args to_json rnn BehaviorIdentifiers BrainParameters CameraResolution group_spec_to_brain_parameters get_global_agent_id BufferException AgentBuffer Curriculum make_demo_buffer load_demonstration demo_to_buffer get_demo_files OutputDistribution DiscreteOutputDistribution MultiCategoricalDistribution GaussianDistribution EnvManager EnvironmentStep SamplerException TrainerConfigError CurriculumError TrainerError MetaCurriculumError CurriculumLoadingError UnityTrainerException CurriculumConfigError RunOptions write_timing_tree create_sampler_manager create_environment_factory parse_command_line run_training prepare_for_docker_run try_create_meta_curriculum run_cli main _create_parser get_version_string MetaCurriculum EncoderType NormalizerTensors ModelUtils LearningRateSchedule main parse_command_line MultiRangeUniformSampler UniformSampler SamplerFactory SamplerManager GaussianSampler Sampler SimpleEnvManager StatsWriter StatsSummary StatsReporter GaugeWriter TensorboardWriter CSVWriter worker EnvironmentResponse UnityEnvWorker StepResponse SubprocessEnvManager EnvironmentCommand get_layer_shape pool_to_HW flatten sqr_diff process_layer process_model get_layer_rank slow_but_stable_topological_sort get_attr basic_lstm ModelBuilderContext order_by get_epsilon get_tensor_dtype replace_strings_in_list debug embody by_op get_tensor_dims strided_slice remove_duplicates_from_list axis_to_barracuda by_name locate_actual_output_node convert strides_to_HW get_tensor_data very_slow_but_stable_topological_sort gru TrainerController TrainerFactory initialize_trainer load_config _load_config AgentExperience Trajectory SplitObservations BCModel BCModule create_reward_signal RewardSignal CuriosityModel CuriosityRewardSignal ExtrinsicRewardSignal GAILModel GAILRewardSignal compute_elo_rating_changes GhostTrainer Optimizer TFOptimizer NNPolicy Policy TFPolicy UnityPolicyException PPOOptimizer PPOTrainer get_gae discount_rewards SACPolicyNetwork SACTargetNetwork SACNetwork SACOptimizer SACTrainer create_mock_pushblock_brain create_mock_batchedstep simulate_rollout make_brain_parameters setup_mock_brain make_fake_trajectory create_mock_banana_brain create_batchedstep_from_brainparams create_mock_brainparams create_mock_3dball_brain clamp Memory1DEnvironment Simple1DEnvironment test_end_episode test_agent_deletion test_agent_manager_queue test_agentprocessor test_agent_manager create_mock_brain create_mock_policy test_barracuda_converter test_policy_conversion dummy_config test_bcmodule_rnn_update test_bcmodule_update test_bcmodule_constant_lr_update ppo_dummy_config test_bcmodule_dc_visual_update create_bc_module test_bcmodule_defaults test_bcmodule_rnn_dc_update test_buffer_sample construct_fake_buffer test_num_experiences assert_array fakerandint test_buffer test_buffer_truncate test_curriculum_load_invalid_json default_reset_parameters test_load_bad_curriculum_file_raises_error test_curriculum_load_missing_file test_get_parameters test_init_curriculum_happy_path test_increment_lesson test_curriculum_load_good test_edge_cases test_load_demo test_load_demo_dir test_multicategorical_distribution test_tanh_distribution dummy_config test_gaussian_distribution test_load_and_set dummy_config test_publish_queue test_process_trajectory basic_options test_docker_target_path test_run_training test_bad_env_path test_commandline_args test_env_args test_increment_lessons_with_reward_buff_sizes test_increment_lessons measure_vals reward_buff_sizes test_set_all_curriculums_to_lesson_num test_get_config test_set_lesson_nums test_simple_metacurriculum test_curriculum_config test_min_visual_size create_policy_mock test_normalization dummy_config test_policy_evaluate basic_mock_brain test_take_action_returns_action_info_when_available basic_params test_take_action_returns_nones_on_missing_values test_take_action_returns_empty_with_no_agents FakePolicy test_trainer_increment_step test_trainer_update_policy test_ppo_optimizer_update test_ppo_optimizer_update_curiosity test_process_trajectory test_rl_functions test_add_get_policy test_bad_config _create_fake_trajectory _create_ppo_optimizer_ops_mock dummy_config test_ppo_optimizer_update_gail test_ppo_get_value_estimates test_gail_dc_visual sac_dummy_config reward_signal_update reward_signal_eval test_extrinsic test_curiosity_cc test_gail_rnn test_gail_cc ppo_dummy_config test_curiosity_dc curiosity_dummy_config test_curiosity_visual test_curiosity_rnn create_optimizer_mock gail_dummy_config FakeTrainer create_rl_trainer dummy_config test_rl_trainer create_mock_brain test_advance test_clear_update_buffer test_sac_update_reward_signals test_add_get_policy test_bad_config create_sac_optimizer_mock test_sac_optimizer_update dummy_config test_process_trajectory test_sac_save_load_buffer test_empty_samplers sampler_config_1 check_value_in_intervals incorrect_uniform_sampler test_incorrect_sampler test_sampler_config_1 sampler_config_2 incorrect_sampler_config test_incorrect_uniform_sampler test_sampler_config_2 test_recurrent_sac test_visual_sac generate_config test_simple_sac default_reward_processor test_simple_ghost test_visual_advanced_ppo test_simple_ppo test_simple_ghost_fails test_visual_ppo test_recurrent_ppo DebugWriter test_visual_advanced_sac _check_environment_trains test_tensorboard_writer test_stat_reporter_add_summary_write test_gauge_stat_writer_sanitize test_stat_reporter_text test_csv_writer MockEnvWorker mock_env_factory SubprocessEnvManagerTest create_worker_mock test_subprocess_env_endtoend simple_env_factory test_initialization_seed test_start_learning_trains_until_max_steps_then_saves basic_trainer_controller trainer_controller_with_take_step_mocks test_advance_adds_experiences_to_trainer_and_trains trainer_controller_with_start_learning_mocks test_start_learning_trains_forever_if_no_train_model test_initialize_ppo_trainer test_handles_no_default_section test_load_config_invalid_yaml test_initialize_invalid_trainer_raises_exception dummy_bad_config dummy_config test_load_config_missing_file test_load_config_valid_yaml test_initialize_trainer_parameters_override_defaults test_raise_if_no_config_for_brain dummy_config_with_override test_trajectory_to_agentbuffer test_split_obs np_zeros_no_float64 np_array_no_float64 _check_no_float64 np_ones_no_float64 RLTrainer Trainer main clean_previous_results TestResults parse_results main main override_config_file init_venv get_unity_executable_path get_base_path run_standalone_build VerifyVersionCommand StepResult ActionType AgentGroupSpec BatchedStepResult BaseEnv Communicator UnityEnvironment UnityObservationException UnityWorkerInUseException UnityException UnityCommunicationException UnityTimeOutException UnitySideChannelException UnityEnvironmentException UnityActionException MockCommunicator RpcCommunicator UnityToExternalServicerImplementation agent_group_spec_from_proto _generate_split_indices process_pixels _raise_on_nan_and_inf observation_to_np_array batched_step_result_from_proto _process_vector_observation _process_visual_observation TimerNode hierarchical_timer get_timer_root get_timer_tree reset_timers set_gauge timed GaugeNode TimerStack UnityToExternalProtoServicer add_UnityToExternalProtoServicer_to_server UnityToExternalProtoStub EngineConfigurationChannel EngineConfig FloatPropertiesChannel IncomingMessage OutgoingMessage RawBytesChannel SideChannel test_initialization test_reset test_returncode_to_signal_name test_close test_step test_handles_bad_filename test_rpc_communicator_checks_port_on_create test_rpc_communicator_create_multiple_workers test_rpc_communicator_close test_batched_step_result_from_proto generate_compressed_proto_obs test_agent_group_spec_from_proto test_batched_step_result_from_proto_raises_on_nan test_vector_observation test_action_masking_continuous test_process_visual_observation test_action_masking_discrete_1 test_process_pixels test_process_visual_observation_bad_shape test_action_masking_discrete test_action_masking_discrete_2 generate_compressed_data test_process_pixels_gray generate_list_agent_proto generate_uncompressed_proto_obs test_batched_step_result_from_proto_raises_on_infinite test_raw_bytes test_int_channel test_message_float_list IntChannel test_message_bool test_message_string test_float_properties test_message_int32 test_message_float32 test_timers decorated_func Struct fuse print_known_operations compress lstm fuse_batchnorm_weights Model parse_args BarracudaWriter Build mean rnn simplify_names sort write trim summary to_json gru setup_constants get_epsilon replace_strings_in_list nested_model embody extract_strings process_model convert input_layer flatten ModelBuilderContext get_input_layer_shape flatten process_layer process_model data_to_HWKC shape_to_NHWC is_depthwise_convolution shape_to_HW data_to_HWCK get_attr ModelBuilderContext border_to_inverse_padding shape_to_HWCK get_epsilon replace_strings_in_list embody shape_to_HWKC axis_to_NHWC data_to_HW adapt_input_shape convert bias get_tensor_data get_layer_shape pool_to_HW flatten sqr_diff process_layer process_model get_layer_rank slow_but_stable_topological_sort get_attr basic_lstm ModelBuilderContext order_by get_epsilon get_tensor_dtype replace_strings_in_list debug embody by_op get_tensor_dims strided_slice remove_duplicates_from_list axis_to_barracuda by_name locate_actual_output_node convert strides_to_HW get_tensor_data very_slow_but_stable_topological_sort gru table_line validate_packages main NonTrivialPEP420PackageFinder main set_academy_version_string extract_version_string set_package_version check_versions set_version sample UnityEnv create_mock_group_spec create_mock_vector_step_result setup_mock_unityenvironment step UnityEnv create_mock_group_spec create_mock_vector_step_result setup_mock_unityenvironment step setup_mock_unityenvironment UnityEnv create_mock_group_spec create_mock_vector_step_result sample UnityEnv create_mock_group_spec create_mock_vector_step_result setup_mock_unityenvironment step _sanitize_info list zip agent_id UnityEnv reward create_mock_group_spec create_mock_vector_step_result setup_mock_unityenvironment array range _sanitize_info list zip agent_id UnityEnv create_mock_group_spec create_mock_vector_step_result setup_mock_unityenvironment array range tuple CONTINUOUS range DISCRETE list array range get_id_permutation mark_agent_done set_initial_agents mapper_cls register_new_agent_id enumerate basicConfig getLogger convert_to_barracuda convert convert_to_onnx _make_frozen_graph _enforce_onnx_conversion convert_frozen_to_onnx info model_path items list tf_optimize make_model node _make_onnx_node_for_constant extend _get_output_node_names _get_input_node_names info append brain_name optimize_graph TensorProto _get_frozen_graph_node_names add _get_frozen_graph_node_names name add node set brain_name info set_verbosity ConfigProto join isdir print replaceFilenameExtension add_argument exit verbose source_file ArgumentParser target_file sqrt topologicalSort list hasattr layers addEdge Graph print inputs set len list hasattr layers print filter match trim_model compile data layers print tensors float16 replace layers dumps data dtype layers isinstance print name tensors inputs outputs shape zip array_without_brackets to_json globals Build array_equal pool reduce Build tanh mad tanh mul Build concat add sigmoid sub mad _ tanh mul Build concat add sigmoid mad print sorted keys is_action_discrete sum get_agent_step_result resequence_and_append done obs from_observations reward batched_step_result_from_proto vector_actions AgentBuffer append reset_agent vector_observations array visual_observations enumerate make_demo_buffer load_demonstration group_spec_to_brain_parameters isdir isfile get_demo_files add_argument_group add_argument ArgumentParser parse_args start_learning pop SamplerManager MetaCurriculum set_all_curricula_to_lesson_num chmod format basename isdir glob copyfile copytree validate_environment_path prepare_for_docker_run seed _asdict print debug run_training dumps randint create_logger set_warnings_enabled cpu DEBUG INFO get_version_string parse_command_line run_cli add_argument ArgumentParser RunOptions experiment_config_path load_config FloatPropertiesChannel get_property_dict_copy get_timer_root reset_timers put _send_response StepResponse list _generate_all_results set_actions set_property action set_configuration EngineConfigurationChannel external_brains payload items EnvironmentResponse reset step endswith len print HasField hasattr get_attr isinstance get_attr tensor_shape ndarray isinstance shape int_val bool_val float_val ListFields name ndarray isinstance str tensor_content ndarray product isinstance get_tensor_dtype print get_tensor_dims unpack int_val bool_val array float_val enter append add set Build mul sub insert Build tolist append range len locate_actual_output_node name find_tensor_by_name split locate_actual_output_node name lstm find_tensor_by_name find_forget_bias split get_layer_shape id Struct tensor get_layer_rank layer_ranks hasattr name patch_data rank input_shapes out_shapes input get_attr append replace_strings_in_list tensors embody astype op inputs zip enumerate print float32 patch_data_fn model_tensors map_ignored_layer_to_its_input co_argcount len items list hasattr get_tensors name print process_layer eval slow_but_stable_topological_sort ModelBuilderContext sort assign_ids pop range insert len layers verbose Struct process_model open print_known_operations fuse compress node GraphDef Model dims_to_barracuda_shape insert get_tensor_dims inputs MessageToJson ParseFromString cleanup_layers read memories print sort write trim summary print_supported_ops update str min_lesson_length format SACTrainer GhostTrainer copy warning PPOTrainer get check_config rcls pow list zeros_like size reversed range append discount_rewards Mock CameraResolution arange ones append array range ones AgentExperience append zeros sum range len vector_action_space_size pop number_visual_observations to_agentbuffer make_fake_trajectory vector_observation_space_size create_mock_brainparams create_mock_brainparams create_mock_brainparams create_mock_brainparams create_mock_brainparams zeros Mock Mock create_mock_batchedstep ActionInfo publish_trajectory_queue range AgentProcessor empty create_mock_policy add_experiences Mock create_mock_batchedstep assert_has_calls ActionInfo publish_trajectory_queue range call append AgentProcessor empty create_mock_policy add_experiences Mock create_mock_batchedstep assert_has_calls ActionInfo end_episode publish_trajectory_queue range call append AgentProcessor empty create_mock_policy add_experiences AgentManager create_mock_policy Mock get_nowait AgentManagerQueue put join remove _get_candidate_names convert _get_default_tempdir dirname abspath isfile next join str export_policy_model save_model sess graph create_policy_mock SerializationSettings model_path reset_default_graph brain_name initialize_or_load dirname abspath NNPolicy create_bc_module ppo_dummy_config create_mock_3dball_brain update items list ppo_dummy_config create_bc_module create_mock_3dball_brain update items list ppo_dummy_config current_lr create_bc_module create_mock_3dball_brain update items list ppo_dummy_config create_bc_module create_mock_3dball_brain update items list ppo_dummy_config create_mock_banana_brain create_bc_module update items list ppo_dummy_config create_mock_banana_brain create_bc_module flatten list range len append range AgentBuffer resequence_and_append get_batch construct_fake_buffer assert_array make_mini_batch AgentBuffer reset_agent array resequence_and_append sample_mini_batch construct_fake_buffer AgentBuffer resequence_and_append construct_fake_buffer AgentBuffer resequence_and_append list construct_fake_buffer AgentBuffer truncate values Curriculum Curriculum Curriculum dumps StringIO StringIO load_demonstration demo_to_buffer dirname abspath load_demonstration demo_to_buffer dirname abspath dirname abspath create_tf_graph brain_name setup_mock_brain load_weights init_load_weights zip assert_array_equal get_weights PPOTrainer create_policy GhostTrainer PPOTrainer subscribe_trajectory_queue advance put make_fake_trajectory BrainParameters AgentManagerQueue add_policy brain_name create_policy GhostTrainer PPOTrainer simulate_rollout get_nowait advance _swap_snapshots setup_mock_brain publish_policy_queue BrainParameters AgentManagerQueue add_policy brain_name create_policy MagicMock basic_options MagicMock parse_command_line parse_command_line MetaCurriculum increment_lessons Mock MetaCurriculum assert_called_with increment_lessons assert_not_called MetaCurriculum assert_called_with MetaCurriculum set_all_curricula_to_lesson_num MetaCurriculum Simple1DEnvironment safe_load loads MetaCurriculum _check_environment_trains setup_mock_brain NNPolicy list evaluate brain agent_id create_policy_mock create_batchedstep_from_brainparams reset_default_graph NNPolicy update_normalization to_agentbuffer make_fake_trajectory BrainParameters zeros range run MagicMock AgentGroupSpec basic_mock_brain basic_params get_action empty FakePolicy MagicMock basic_mock_brain BatchedStepResult basic_params get_action array FakePolicy MagicMock basic_mock_brain ActionInfo BatchedStepResult basic_params get_action array FakePolicy setup_mock_brain PPOOptimizer NNPolicy make_fake_trajectory update brain simulate_rollout _create_ppo_optimizer_ops_mock reset_default_graph update brain simulate_rollout _create_ppo_optimizer_ops_mock reset_default_graph update brain simulate_rollout _create_ppo_optimizer_ops_mock reset_default_graph items list get_trajectory_value_estimates to_agentbuffer _create_fake_trajectory _create_ppo_optimizer_ops_mock next_obs reset_default_graph assert_array_almost_equal array discount_rewards Mock brain_name _increment_step BrainParameters assert_called_with add_policy PPOTrainer _update_policy simulate_rollout brain_name setup_mock_brain add_policy PPOTrainer create_policy list values Mock brain_name make_brain_parameters add_policy PPOTrainer make_brain_parameters update NNPolicy setup_mock_brain PPOOptimizer SACOptimizer simulate_rollout evaluate_batch brain brain simulate_rollout prepare_update _execute_model update_dict make_mini_batch policy create_optimizer_mock reward_signal_eval reward_signal_update reward_signal_update reward_signal_eval dirname abspath create_optimizer_mock create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update FakeTrainer dummy_config create_mock_brain list create_rl_trainer end_episode episode_steps values items list construct_fake_buffer create_rl_trainer clear_update_buffer create_rl_trainer subscribe_trajectory_queue advance put make_fake_trajectory AgentManagerQueue range setup_mock_brain SACOptimizer NNPolicy update brain simulate_rollout create_sac_optimizer_mock reset_default_graph brain simulate_rollout create_sac_optimizer_mock update_reward_signals reset_default_graph str SACTrainer save_model brain simulate_rollout num_experiences setup_mock_brain add_policy brain_name create_policy SACTrainer SACTrainer make_brain_parameters SamplerManager sample_all sampler_config_1 sampler_config_2 SamplerManager SamplerManager sample_all incorrect_uniform_sampler incorrect_sampler_config update safe_load _check_environment_trains Simple1DEnvironment generate_config _check_environment_trains Simple1DEnvironment generate_config _check_environment_trains Simple1DEnvironment generate_config Memory1DEnvironment _check_environment_trains generate_config _check_environment_trains Simple1DEnvironment generate_config _check_environment_trains Simple1DEnvironment generate_config _check_environment_trains Simple1DEnvironment generate_config Memory1DEnvironment _check_environment_trains generate_config _check_environment_trains Simple1DEnvironment generate_config _check_environment_trains Simple1DEnvironment generate_config clear assert_called_once_with Mock get_stats_summaries add_stat add_writer StatsReporter float range write_stats clear Mock write_text add_writer StatsReporter assert_called_once_with Simple1DEnvironment generate_config close SubprocessEnvManager simple_env_factory _check_environment_trains default_config TrainerController assert_called_with MagicMock start_learning assert_called_once MagicMock assert_not_called start_learning assert_called_once MagicMock MagicMock assert_called_once MagicMock advance add assert_not_called BrainParametersMock BrainParametersMock TrainerFactory BrainParameters brain_name generate TrainerFactory BrainParameters _load_config StringIO append from_observations range ones items list to_agentbuffer add set make_fake_trajectory extract_stack filename get __old_np_array _check_no_float64 get _check_no_float64 __old_np_zeros get __old_np_ones _check_no_float64 join remove mkdir rmdir exists documentElement getAttribute parse join clean_previous_results parse_results get_unity_executable_path print exit returncode get_base_path copy2 run_standalone_build override_config_file init_venv exists run exists get_unity_executable_path print check_call update list values tuple vector_action_size mean reshape array data compressed_data reshape process_pixels shape array mean isnan array _raise_on_nan_and_inf sum is_action_discrete _generate_split_indices ones discrete_action_branches len astype _raise_on_nan_and_inf any cast split append _process_vector_observation bool _process_visual_observation array observation_shapes enumerate range len perf_counter push reset method_handlers_generic_handler add_generic_rpc_handlers UnityEnvironment close MockCommunicator obs n_agents close get_agent_group_spec get_step_result reset MockCommunicator zip UnityEnvironment observation_shapes obs zip ones n_agents step close get_agent_group_spec get_step_result MockCommunicator set_actions zeros UnityEnvironment observation_shapes UnityEnvironment close MockCommunicator close RpcCommunicator close RpcCommunicator close RpcCommunicator list extend ObservationProto AgentInfoProto append prod range len fromarray uint8 BytesIO astype save ObservationProto generate_compressed_data extend shape ObservationProto shape tolist extend generate_compressed_data process_pixels rand generate_compressed_data process_pixels rand _process_vector_observation generate_list_agent_proto enumerate generate_compressed_proto_obs rand extend AgentInfoProto _process_visual_observation generate_uncompressed_proto_obs generate_compressed_proto_obs rand AgentInfoProto extend AgentGroupSpec CONTINUOUS batched_step_result_from_proto generate_list_agent_proto range AgentGroupSpec batched_step_result_from_proto DISCRETE generate_list_agent_proto action_mask AgentGroupSpec batched_step_result_from_proto DISCRETE generate_list_agent_proto action_mask AgentGroupSpec batched_step_result_from_proto DISCRETE generate_list_agent_proto action_mask AgentGroupSpec CONTINUOUS batched_step_result_from_proto generate_list_agent_proto action_mask BrainParametersProto agent_group_spec_from_proto extend CONTINUOUS generate_list_agent_proto AgentGroupSpec CONTINUOUS generate_list_agent_proto AgentGroupSpec _parse_side_channel_message _generate_side_channel_data send_int IntChannel FloatPropertiesChannel _parse_side_channel_message _generate_side_channel_data get_property set_property uuid4 _parse_side_channel_message _generate_side_channel_data RawBytesChannel encode send_raw_data get_and_clear_received_messages len buffer read_bool append write_bool IncomingMessage range OutgoingMessage buffer write_int32 read_int32 IncomingMessage OutgoingMessage IncomingMessage write_float32 buffer read_float32 OutgoingMessage read_string write_string buffer IncomingMessage OutgoingMessage IncomingMessage buffer OutgoingMessage read_float32_list write_float32_list set_gauge Struct get_tensor_shape_lambda insert layers isinstance name tensors inputs strip_tensforlow_postfix get list replace_strings_in_list extract_strings flatten process_model get_input_layer_shape get id verbose Struct values patch_data shape out_shapes append defaults get replace_strings_in_list embody astype visititems enumerate isinstance in_args float32 patch_data_fn co_argcount get_input_layer_shape decode tensors File pprint loads attribute ones get_attr hasattr expand_dims expand_dims int int32_data int64_data dims raw_data float_data node list tolist patch_shapes op_type patch_attrs axis_to_NHWC items load setup_constants print get_attr group print find_packages find validate_packages replace endswith add set walk join print extract_version_string set values print join set_academy_version_string set_package_version enumerate split | schmitzmelissa/unity-ml-penguins | 3,551 |
schung039/neural_manifolds_replicaMFT | ['speech recognition'] | ['Untangling in Invariant Speech Recognition'] | mftma/manifold_analysis_correlation.py mftma/utils/activation_extractor.py mftma/utils/analyze_pytorch.py setup.py mftma/alldata_dimension_analysis.py mftma/utils/make_manifold_data.py compute_dim_expvar compute_participation_ratio alldata_dimension_analysis maxproj each_manifold_analysis_D1 square_corrcoeff_full_cost proj manifold_analysis_corr minimize_vt_sq CGmanopt MGramSchmidt fun_FA extractor activation_extractor add_layer_names register_hooks filter_layers leaf_traverse deregister_hooks analyze make_manifold_data mean compute_dim_expvar compute_participation_ratio concatenate cumsum len PCA mean shape explained_variance_ratio_ fit mean svd sum square cumsum argmax svd matmul shape append sum range concatenate each_manifold_analysis_D1 square mean stack fun_FA zeros T norm reshape qr len sum asarray maxproj randn reshape maximum square mean shape sqrt minimize_vt_sq zeros expand_dims empty range dot shape append zeros argmax range sum astype identity qp matrix double array randn abs matmul shape append sum range partial concatenate square_corrcoeff_full_cost square copy mean sqrt CGmanopt T print min qr ConjugateGradient Problem Stiefel solve T reshape square matmul shape sum norm copy shape proj range dot T model add_layer_names OrderedDict register_hooks filter_layers leaf_traverse deregister_hooks layer_name append children append register_forward_hook remove __setattr__ str _get_name append seed items list format make_manifold_data randn print OrderedDict manifold_analysis_corr device to extractor seed items list defaultdict shuffle choice stack append range | # Replica Mean Field Theory Analysis of Object Manifolds Analysis tool for measuring manifold classification capacity, manifold radius, and manifold dimension, implemented for the results in *[Untangling in Invariant Speech Recognition, (2019) NeurIPS](https://arxiv.org/abs/2003.01787)*. The code implements the technique first described in *Classification and Geometry of General Perceptual Manifolds, (2018) Physical Review X.* and refined in *Separability and Geometry of Object Manifolds in Deep Neural Networks, (2019) BioRxiv; (2020) Nature Communications*. If you find this code useful for your research, please cite [our paper](https://arxiv.org/abs/2003.01787): ``` @inproceedings{stephenson2019untangling, title={Untangling in Invariant Speech Recognition}, author={Stephenson, Cory and Feather, Jenelle and Padhy, Suchismita and Elibol, Oguz and Tang, Hanlin and McDermott, Josh and Chung, SueYeon}, booktitle={Advances in Neural Information Processing Systems}, pages={14368--14378}, year={2019} | 3,552 |
scstech85/DocEmul | ['data augmentation'] | ['DocEmul: a Toolkit to Generate Structured Historical Documents'] | branden_test.py download_font.py test_generate_esposalles.py docemul/augment.py docemul/generator.py docemul/model.py docemul/__init__.py test_generate_brandenburg.py docemul/extract_background.py docemul/util.py docemul/backgroundmodel.py docemul/sauvola_binarization.py docemul/draw_document.py generate_esposalles_images.py test_extract_background.py run run run autoinvert gsauvola compute_sauvola_binarization generate amax int amax zoom ones maximum mean shape filter uniform_filter zeros gaussian_filter autoinvert gsauvola imresize | # DocEmul A Toolkit to Generate Structured Historical Documents (This repository is still under construction. Please let us know if you find any issues...) ## This toolkit is presented in the paper "DocEmul: a Toolkit to Generate Structured Historical Documents" (https://arxiv.org/abs/1710.03474) in Proceedings of the 14th International Conference on Document Analysis and Recognition (ICDAR), 2017. It has been proposed to generate structured synthetic documents emulating the actual document production process. Synthetic documents can be used to train systems to perform document analysis tasks. The toolkit is able to generate synthetic collections and also perform data augmentation to create a larger trainable dataset. It includes one method to extract the page background from real pages which can be used as a substrate where records can be written on the basis of variable structures and using cursive fonts. Moreover, it is possible to extend the synthetic collection by adding random noise, page rotations, and other visual variations. In the experiments we address the record counting task on handwritten structured collections containing a limited number of examples. More detailed experiments and results for the record counting task are presented in the paper "Deep neural networks for record counting in historical handwritten documents" (https://doi.org/10.1016/j.patrec.2017.10.023 ) published on Pattern Recognition Letters journal. Please, contact us if you want to collaborate to our project in order to extend the software capability. In the future works we will add also a structural ground truth to train a model for record detection. | 3,553 |
sct-pipeline/deepseg-training | ['lesion segmentation'] | ['Automatic segmentation of the spinal cord and intramedullary multiple sclerosis lesions with convolutional neural networks'] | Scripts/config_file.py Scripts/generator.py Scripts/utils.py random_flip_dimensions random_boolean augment_data add_data convert_data data_generator get_training_and_validation_generators flip_image list data_generator range len list shuffle add_data asarray exit append augment_data flip append random_boolean list range list asarray shape flip_image append range random_flip_dimensions len | # deepseg-training Pipeline for training new models with sct_deepseg_lesion - [Pre-processing](#pre-processing) - [Re-training](#re-training) - [Contributors](#contributors) - [License](#license) `sct_deepseg_lesion` is a deep learning based function that segments lesions automatically without human interventions. For more information please see the [article](https://arxiv.org/pdf/1805.06349.pdf). The model distributed with SCT v3.2.4 was trained on datasets from Healthy controls (459), Patients with MS or susupected MS (471), Cervical Myelopathy (55), Neuromyelitis optica (19), SCI (4), Amyotrophic lateral sclerosis (32) and syringomyelia (2). This model has been shown to work well with many different datasets. When we test this model on SCI patients data, the model performs poorly mainly due to variance in the data and also, the initial model was trained with only 4 datasets of SCI patients. Therefore, the model needs to be retrained with the additional datasets when available. This repository explains how to retrain the model and improve the segmentation process on your dataset, for example from different pathologies which the initial model has not seen. To get start, you need to have data that consists of input image and its corresponding ground truth masks. If you have ROI from [JIM](http://www.xinapse.com/j-im-7-software/), it is suggested to convert them to Nifti binary masks either using the [MATLAB script](https://github.com/sct-pipeline/deepseg-training/blob/master/Scripts/Creating_MASKS_from_ROI_JIM.m) or write your own script. Example of Input image and its mask: | 3,554 |
scut-math-srp/Distance-measure-based-on-depth-estimation | ['depth estimation', 'monocular depth estimation'] | ['Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer', 'Deeper Depth Prediction with Fully Convolutional Residual Networks'] | monodepth2/evaluate_pose.py monodepth2/datasets/kitti_dataset.py FCRN/models/fcrn.py MiDaS/models/transforms.py monodepth2/networks/pose_cnn.py monodepth2/options.py monodepth2/datasets/__init__.py MegaDepth/models/base_model.py MiDaS/utils.py monodepth2/datasets/mono_dataset.py monodepth2/export_gt_depth.py MiDaS/models/blocks.py MegaDepth/util/visualizer.py MegaDepth/data/base_data_loader.py MegaDepth/util/util.py init_window.py MegaDepth/pytorch_DIW_scratch.py MegaDepth/n_demo.py MegaDepth/options/train_options.py MegaDepth/data/data_loader.py FCRN/models/__init__.py MegaDepth/data/image_folder.py FCRN/models/network.py monodepth2/networks/pose_decoder.py monodepth2/train.py main3.py utils.py MegaDepth/rmse_error_main.py utils_focal_length.py MegaDepth/util/png.py MiDaS/models/base_model.py monodepth2/layers.py monodepth2/evaluate_depth.py monodepth2/networks/__init__.py MegaDepth/util/image_pool.py monodepth2/networks/depth_decoder.py MegaDepth/data/aligned_data_loader.py MegaDepth/models/models.py MegaDepth/options/test_options.py FCRN/obtain_depth.py MegaDepth/try/float_int.py monodepth2/utils.py MiDaS/run.py MiDaS/obtain_depth.py MegaDepth/try/界面.py MegaDepth/demo.py monodepth2/test_simple.py MegaDepth/models/HG_model.py MegaDepth/try/convertPNG.py monodepth2/kitti_utils.py MegaDepth/SDR_compute.py monodepth2/obtain_depth.py MegaDepth/util/html.py MegaDepth/try/查看cuda是否可用.py MiDaS/models/midas_net.py monodepth2/networks/resnet_encoder.py FCRN/predict.py MegaDepth/options/base_options.py MegaDepth/obtain_depth.py monodepth2/trainer.py Tkwindow Line check_num get_depth init_focal get_path focal_length_helper download_weight get_depth predict ResNet50UpProj layer interleave get_incoming_shape Network test_simple run test_simple run get_depth test_simple Lambda LambdaBase LambdaReduce LambdaMap test test_SDR AlignedDataLoader_TEST PairedData AlignedDataLoader BaseDataLoader CreateDataLoader_TEST CreateDataLoader make_dataset ImageFolder ImageFolder_TEST BaseModel hgmodel HGModel create_model BaseOptions TestOptions TrainOptions HTML ImagePool encode print_numpy varname diagnose_network mkdirs mkdir info save_image tensor2im Visualizer get_depth new_run run write_depth read_pfm write_pfm resize_image resize_depth read_image BaseModel ResidualConvUnit Interpolate _make_encoder _make_resnet_backbone _make_scratch _make_pretrained_resnext101_wsl FeatureFusionBlock MidasNet Resize NormalizeImage apply_min_size PrepareForNet batch_post_process_disparity compute_errors evaluate compute_ate dump_xyz evaluate export_gt_depths_kitti sub2ind load_velodyne_points generate_depth_map read_calib_file rot_from_axisangle BackprojectDepth get_smooth_loss compute_depth_errors upsample Project3D Conv3x3 get_translation_matrix SSIM transformation_from_parameters disp_to_depth ConvBlock get_depth MonodepthOptions parse_args test_simple Trainer sec_to_hm sec_to_hm_str normalize_image readlines download_model_if_doesnt_exist KITTIOdomDataset KITTIDepthDataset KITTIDataset KITTIRAWDataset MonoDataset pil_loader DepthDecoder PoseCNN PoseDecoder ResnetEncoder ResNetMultiImageInput resnet_multiimage_input get list delete range len obtain_exif_exif dirname abspath download asarray ANTIALIAS astype float32 placeholder ResNet50UpProj resize expand_dims open asarray ANTIALIAS astype float32 placeholder ResNet50UpProj resize expand_dims open Tensor isinstance exp print float img_as_float Variable to switch_to_eval squeeze unsqueeze numpy img_as_ubyte resize imread forward imsave amax parse create_model test_simple basename print imread imsave float32 basename create_model parse test_simple print switch_to_eval evaluate_sc_inv float enumerate evaluate_SDR print switch_to_eval float range enumerate AlignedDataLoader AlignedDataLoader_TEST load close open HGModel print hgmodel name transpose numpy print parameters fromarray save print join search print float64 astype flatten shape mkdir makedirs print Compose eval MidasNet device to read_image join write_depth format glob Compose makedirs eval MidasNet device append to read_image enumerate len join write_depth print Compose eval MidasNet device to read_image makedirs imread COLOR_GRAY2BGR cvtColor COLOR_BGR2RGB float unsqueeze astype resize to numpy resize imwrite min astype float32 write_pfm max _make_scratch _make_pretrained_resnext101_wsl bn1 layer1 Module relu maxpool Sequential layer3 layer4 layer2 conv1 load Module Conv2d list tuple astype float32 shape resize ceil max maximum mean sqrt abs log meshgrid shape linspace ext_disp_to_eval median imwrite uint16 save_pred_disps num_layers DataLoader save resize cuda DepthDecoder clip eval_split std len logical_and load_weights_folder shape load_state_dict ResnetEncoder eval_stereo append expanduser range state_dict format concatenate readlines astype KITTIRAWDataset mean eval load join num_ch_enc print makedirs compute_errors data_path no_eval int32 zeros quit array eval_eigen_to_benchmark append dot eye sqrt sum batch_size compute_ate dirname width KITTIOdomDataset height int reshape inv dot dump_xyz PoseDecoder join int format generate_depth_map print add_argument readlines astype float32 data_path dirname ArgumentParser append parse_args savez_compressed split reshape set join T sub2ind int read_calib_file reshape hstack astype min dot shape vstack int32 eye round zeros load_velodyne_points rot_from_axisangle transpose clone matmul get_translation_matrix to view norm squeeze cos unsqueeze sin to mean abs mean sqrt abs max log load join LANCZOS size convert download_model_if_doesnt_exist unsqueeze dirname ResnetEncoder abspath load_state_dict interpolate disp_to_depth numpy DepthDecoder add_argument ArgumentParser download_model_if_doesnt_exist device DepthDecoder image_path load_state_dict ResnetEncoder dirname format glob eval ext load join isdir model_name isfile len data float int sec_to_hm join format urlretrieve print dirname abspath quit makedirs load_url cat load_state_dict ResNetMultiImageInput | # Distance-measure-based-on-depth-estimation This is a repository of SRP2020 for bears. Here we make a software to measure the distance between any two points on any images based on some depth estimation algorithms. ## TODO list - [ ] A better UI - [ ] Use focal length into the calculating of distances ## parameter files: - put in MiDaS: [model.pt](https://drive.google.com/file/d/1zQAV1YODL9uaalPBOZGVGevctCYiY8-l/view?usp=sharing) - put in FRCN: - [NYU_FCRN.ckpt.data-00000-of-00001](https://drive.google.com/file/d/1TTDdFT3LcKoVTDCFEFTYarhOKpISmHPN/view?usp=sharing) - [NYU_FCRN.ckpt.meta](https://drive.google.com/file/d/1wdUh-22jxhBHLKHK8qvFsHXHncCoMsFO/view?usp=sharing) | 3,555 |
scy-phy/ICS-Evasion-Attacks | ['anomaly detection'] | ['Constrained Concealment Attacks against Reconstruction-based Anomaly Detectors in Industrial Control Systems'] | Adversarial_Attacks/Whitebox_Attack/constrained_attack_constraints_extraction.py Adversarial_Attacks/Black_Box_Attack/constrained_attack_D_dimension.py Adversarial_Attacks/Black_Box_Attack/constrained_AE_attack_X_dimension_PLC.py Adversarial_Attacks/Whitebox_Attack/constrained_attack.py Adversarial_Attacks/Whitebox_Attack/launcher.py Attacked_Model/autoencoder_BATADAL_for_CNN.py Attacked_Model/autoencoder_BATADAL_for_LSTM.py Evaluation/util.py Attacked_Model/autoencoder_BATADAL.py Adversarial_Attacks/Whitebox_Attack/constrained_attack_PLC.py Adversarial_Attacks/Black_Box_Attack/constrained_attack_X_dimension.py Adversarial_Attacks/Black_Box_Attack/str2bool.py Adversarial_Attacks/Black_Box_Attack/constrained_attack_X_dimension_PLC.py Adversarial_Attacks/Replay_Attack/replay_attack.py Adversarial_Attacks/Whitebox_Attack/unconstrained_attack.py Adversarial_Attacks/Black_Box_Attack/adversarial_AE.py Adversarial_Attacks/Black_Box_Attack/unconstrained_attack.py Adversarial_Attacks/Whitebox_Attack/autoencoder_BATADAL.py Adversarial_AE str2bool constrained_replay spoof check_constraints replay identify_attacks AutoEncoder load_AEED AEED compute_scores scale_input_and_detect_single choose_column change_vector_label scale_input_and_detect sort_temp_and_drop compute_mutation_factor scale_input_and_detect_single choose_column change_vector_label scale_input_and_detect sort_temp_and_drop compute_mutation_factor scale_input_and_detect_single choose_column change_vector_label scale_input_and_detect sort_temp_and_drop compute_mutation_factor scale_input_and_detect_single change_vector_label scale_input_and_detect sort_temp_and_drop compute_mutation_factor AutoEncoder load_AEED AEED compute_scores AutoEncoder load_AEED AEED AutoEncoder load_AEED AEED fill_window isinstance append iterrows DataFrame print DataFrame spoofing_technique print check_constraints values len print exit load_model AEED roc_curve columns sort_values drop detect DataFrame drop detect DataFrame concat str print DataFrame concat sum len str scale_input_and_detect_single choose_column arange print copy scale_input_and_detect sort_temp_and_drop compute_mutation_factor append len list columns set print to_datetime timedelta DataFrame reset_index | Constrained Concealment Attacks on Reconstruction-based Anomaly Detectors in Industrial Control Systems ======= ## In proceedings of the the Annual Computer Security Applications Conference (ACSAC) When using this code from this repository please cite our work as follows: ``` @InProceedings{erba2020concealment, title={Constrained Concealment Attacks against Reconstruction-based Anomaly Detectors in Industrial Control Systems}, author={Erba, Alessandro and Taormina, Riccardo and Galelli, Stefano and Pogliani, Marcello and Carminati, Michele and Zanero, Stefano and | 3,556 |
sdicastro/KOVA | ['gaussian processes'] | ['Kalman meets Bellman: Improving Policy Evaluation through Value Tracking'] | stable_baselines/her/utils.py baselines/her/experiment/play.py stable_baselines/deepq/experiments/run_atari.py stable_baselines/gail/dataset/record_expert.py baselines/trpo_mpi/defaults.py stable_baselines/deepq/experiments/train_cartpole.py baselines/common/vec_env/__init__.py baselines/acktr/kfac.py stable_baselines/acer/acer_simple.py stable_baselines/her/experiment/plot.py stable_baselines/common/vec_env/dummy_vec_env.py baselines/common/policies.py baselines/common/tests/test_mnist.py stable_baselines/sac/sac.py stable_baselines/acktr/acktr_disc.py stable_baselines/acktr/acktr_cont.py stable_baselines/acktr/run_atari.py baselines/common/tests/test_cartpole.py baselines/common/mpi_adam_optimizer.py maze_experiment.py baselines/ppo1/mlp_policy.py stable_baselines/ppo1/pposgd_simple.py baselines/deepq/experiments/custom_cartpole.py stable_baselines/common/base_class.py stable_baselines/common/vec_env/util.py baselines/common/tests/test_env_after_learn.py stable_baselines/common/vec_env/vec_video_recorder.py baselines/deepq/experiments/train_mountaincar.py stable_baselines/ddpg/__init__.py baselines/deepq/experiments/enjoy_mountaincar.py stable_baselines/common/misc_util.py baselines/gail/trpo_mpi.py stable_baselines/common/running_mean_std.py stable_baselines/common/vec_env/vec_frame_stack.py baselines/common/models.py baselines/common/__init__.py baselines/ppo1/cnn_policy.py stable_baselines/her/actor_critic.py stable_baselines/common/schedules.py stable_baselines/ppo1/run_atari.py baselines/common/vec_env/shmem_vec_env.py stable_baselines/ppo1/run_robotics.py baselines/deepq/deepq.py baselines/common/tests/test_doc_examples.py stable_baselines/trpo_mpi/run_mujoco.py baselines/common/mpi_moments.py kalman_algorithms/ktdoptimizer.py stable_baselines/trpo_mpi/utils.py mujoco_results_exp.py baselines/acer/buffer.py stable_baselines/common/vec_env/subproc_vec_env.py baselines/ppo2/ppo2.py baselines/bench/monitor.py baselines/deepq/replay_buffer.py stable_baselines/deepq/experiments/enjoy_mountaincar.py baselines/common/running_stat.py baselines/common/dataset.py stable_baselines/her/ddpg.py stable_baselines/her/__init__.py baselines/bench/benchmarks.py stable_baselines/common/identity_env.py baselines/common/tests/test_schedules.py stable_baselines/gail/dataset/dataset.py stable_baselines/ddpg/main.py baselines/common/input.py stable_baselines/acktr/kfac.py stable_baselines/her/util.py baselines/ddpg/ddpg.py stable_baselines/deepq/policies.py baselines/gail/mlp_policy.py baselines/acer/runner.py stable_baselines/logger.py stable_baselines/acktr/value_functions.py stable_baselines/common/bit_flipping_env.py stable_baselines/common/__init__.py stable_baselines/her/experiment/train.py stable_baselines/common/vec_env/base_vec_env.py baselines/acktr/utils.py baselines/common/tests/test_serialization.py stable_baselines/acktr/kfac_utils.py stable_baselines/common/policies.py stable_baselines/deepq/dqn.py kalman_algorithms/kalmanoptimizer.py baselines/ppo1/run_robotics.py baselines/a2c/utils.py baselines/common/atari_wrappers.py baselines/deepq/experiments/train_cartpole.py baselines/run.py baselines/a2c/a2c.py stable_baselines/acktr/__init__.py baselines/common/console_util.py baselines/gail/behavior_clone.py stable_baselines/deepq/experiments/custom_cartpole.py baselines/deepq/experiments/enjoy_cartpole.py baselines/common/cmd_util.py baselines/common/filters.py stable_baselines/a2c/utils.py baselines/deepq/defaults.py baselines/ppo1/pposgd_simple.py baselines/deepq/__init__.py kalman_algorithms/kalman_trpo_mpi.py stable_baselines/common/cmd_util.py stable_baselines/ppo1/__init__.py stable_baselines/common/dataset.py baselines/common/mpi_running_mean_std.py baselines/common/tests/util.py baselines/her/rollout.py stable_baselines/acer/buffer.py baselines/common/tf_util.py stable_baselines/ppo2/run_atari.py baselines/her/her.py baselines/common/tile_images.py stable_baselines/common/vec_env/vec_normalize.py kalman_algorithms/kalman_ppo2.py stable_baselines/trpo_mpi/trpo_mpi.py stable_baselines/sac/policies.py grid_search.py baselines/ppo1/run_mujoco.py stable_baselines/her/her.py baselines/common/mpi_adam.py baselines/common/vec_env/vec_normalize.py baselines/common/tests/test_fixed_sequence.py stable_baselines/common/filters.py baselines/her/experiment/config.py baselines/gail/statistics.py baselines/common/tests/envs/fixed_sequence_env.py baselines/acer/acer.py baselines/deepq/experiments/enjoy_pong.py stable_baselines/ppo2/run_mujoco.py stable_baselines/common/console_util.py stable_baselines/common/distributions.py baselines/common/runners.py stable_baselines/ppo2/ppo2.py baselines/common/tests/test_segment_tree.py baselines/common/tests/envs/mnist_env.py baselines/trpo_mpi/trpo_mpi.py stable_baselines/sac/__init__.py stable_baselines/acer/run_atari.py baselines/a2c/runner.py baselines/gail/dataset/mujoco_dset.py stable_baselines/her/experiment/play.py baselines/her/ddpg.py stable_baselines/gail/__init__.py stable_baselines/common/math_util.py stable_baselines/ddpg/policies.py stable_baselines/deepq/experiments/enjoy_cartpole.py stable_baselines/acktr/utils.py baselines/common/cg.py baselines/her/util.py stable_baselines/gail/adversary.py baselines/common/vec_env/test_vec_env.py stable_baselines/acer/__init__.py stable_baselines/deepq/experiments/enjoy_pong.py baselines/results_plotter.py baselines/acktr/acktr.py baselines/ddpg/ddpg_learner.py stable_baselines/common/vec_env/__init__.py stable_baselines/ppo1/run_humanoid.py baselines/acktr/defaults.py baselines/common/math_util.py baselines/acktr/kfac_utils.py stable_baselines/common/mpi_adam.py baselines/common/misc_util.py kalman_algorithms/kalman_sac.py stable_baselines/common/segment_tree.py baselines/common/mpi_fork.py baselines/common/vec_env/vec_frame_stack.py baselines/common/vec_env/util.py stable_baselines/common/runners.py baselines/logger.py stable_baselines/her/replay_buffer.py baselines/common/tests/test_identity.py stable_baselines/results_plotter.py baselines/common/segment_tree.py baselines/common/distributions.py baselines/deepq/build_graph.py stable_baselines/common/vec_env/vec_check_nan.py stable_baselines/ppo2/__init__.py stable_baselines/gail/model.py baselines/common/vec_env/dummy_vec_env.py baselines/ddpg/models.py baselines/common/vec_env/subproc_vec_env.py stable_baselines/trpo_mpi/run_atari.py baselines/common/mpi_util.py stable_baselines/deepq/build_graph.py stable_baselines/a2c/__init__.py stable_baselines/deepq/__init__.py mujoco_run.py baselines/common/tests/envs/identity_env.py baselines/deepq/utils.py baselines/her/normalizer.py stable_baselines/common/mpi_moments.py stable_baselines/common/tile_images.py stable_baselines/her/normalizer.py baselines/gail/gail-eval.py stable_baselines/acktr/run_mujoco.py baselines/gail/adversary.py baselines/her/actor_critic.py baselines/common/tests/test_tf_util.py stable_baselines/a2c/run_atari.py stable_baselines/__init__.py stable_baselines/trpo_mpi/__init__.py stable_baselines/ppo1/run_mujoco.py stable_baselines/common/mpi_running_mean_std.py stable_baselines/deepq/experiments/train_mountaincar.py baselines/bench/__init__.py stable_baselines/bench/benchmarks.py stable_baselines/her/rollout.py stable_baselines/ddpg/ddpg.py baselines/deepq/models.py baselines/gail/run_mujoco.py baselines/her/experiment/plot.py stable_baselines/bench/monitor.py baselines/her/replay_buffer.py baselines/ppo2/defaults.py stable_baselines/ddpg/memory.py kalman_algorithms/kalman_defaults.py baselines/acer/policies.py stable_baselines/her/experiment/config.py stable_baselines/common/running_stat.py baselines/common/running_mean_std.py stable_baselines/bench/__init__.py stable_baselines/common/cg.py stable_baselines/common/tf_util.py baselines/her/experiment/train.py stable_baselines/a2c/a2c.py stable_baselines/deepq/replay_buffer.py stable_baselines/common/atari_wrappers.py baselines/ppo1/run_atari.py baselines/ppo1/run_humanoid.py baselines/common/retro_wrappers.py baselines/ddpg/memory.py baselines/deepq/experiments/train_pong.py baselines/common/schedules.py stable_baselines/acktr/policies.py stable_baselines/common/input.py stable_baselines/ddpg/noise.py baselines/ddpg/noise.py baselines/common/vec_env/vec_monitor.py baselines/acer/defaults.py stable_baselines/common/mpi_fork.py grid_search show ModelKTD calls_to_predict_experiment maze arrange_data_to_plot maze_experiment plot_results read_from_file_for_plotting play_game Qmaze Model Experience completion_check qtrain plot_results_for_maze_exp constfn format_time load_results_progress xepisodes_by_alg LoadMonitorResultsError plot_loss rolling_window window_func main df2xy label_by_alg xtimesteps_by_alg comb_by_alg_env plot_curves build_env get_kalman_alg_module get_learn_function_defaults get_kalman_learn_function_defaults get_default_network parse_cmdline_kwargs get_env_type main_run get_alg_module train get_kalman_learn_function get_learn_function dumpkvs HumanOutputFormat SeqWriter get_dir read_json warn set_level Logger CSVOutputFormat log logkvs make_output_format JSONOutputFormat read_tb getkvs configure TensorBoardOutputFormat debug _configure_default_logger logkv info KVWriter _demo error ProfileKV scoped_configure logkv_mean reset profile read_csv plot_results rolling_window window_func ts2xy main plot_curves build_env get_learn_function_defaults get_default_network parse_cmdline_kwargs get_env_type main get_alg_module train get_learn_function Model safemean learn Runner batch_to_seq fc discount_with_dones conv double_linear_con q_explained_variance seq_to_batch gradient_add lstm cat_entropy check_shape ortho_init find_trainable_variables cat_entropy_softmax avg_norm double_middle_drop _ln sample get_by_index constant conv_to_fc linear lnlstm make_path EpisodeStats middle_drop Scheduler Acer learn q_retrace strip Model Buffer atari AcerCnnPolicy AcerLstmPolicy Runner Model safemean learn mujoco KfacOptimizer detectMinVal clipoutNeg gmatmul factorReshape dense kl_div get_task find_task_for_env_id_in_any_benchmark register_benchmark get_benchmark list_benchmarks get_monitor_files test_monitor load_results ResultsWriter LoadMonitorResultsError Monitor WarpFrame LazyFrames make_atari FireResetEnv EpisodicLifeEnv ScaledFloatFrame wrap_deepmind NoopResetEnv FrameStack MaxAndSkipEnv ClipRewardEnv cg common_arg_parser atari_arg_parser make_robotics_env mujoco_arg_parser arg_parser parse_unknown_args make_vec_env robotics_arg_parser make_mujoco_env fmt_row print_cmd get_git_commit colorize timed ccap fmt_item get_git_commit_message Dataset iterbatches MultiCategoricalPd BernoulliPd Pd test_probtypes DiagGaussianPdType BernoulliPdType CategoricalPdType shape_el DiagGaussianPd validate_probtype make_pdtype MultiCategoricalPdType PdType CategoricalPd Filter IdentityFilter StackFilter ZFilter FlattenFilter CompositionFilter AddClock DivFilter Ind2OneHotFilter encode_observation observation_placeholder observation_input test_discount_with_boundaries explained_variance_2d explained_variance flatten_arrays ncc discount_with_boundaries unflatten_vector discount pickle_load RunningAvg boolean_flag set_global_seeds EzPickle pretty_eta relatively_safe_pickle_dump zipsame unpack get_wrapper_by_name mlp cnn_small nature_cnn conv_only lstm cnn_lstm get_network_builder _normalize_clip_observation cnn register cnn_lnlstm MpiAdam test_MpiAdam MpiAdamOptimizer mpi_fork _helper_runningmeanstd mpi_moments mpi_mean test_runningmeanstd test_dist RunningMeanStd test_runningmeanstd dict_gather sync_from_root gpu_count share_file setup_mpi_gpus get_local_rank_size PolicyWithValue build_policy _normalize_clip_observation AppendTimeout RewardScaler wrap_deepmind_retro AllowBacktracking Downsample PartialFrameStack Rgb2gray TimeLimit StochasticFrameSkip StartDoingRandomActionsWrapper make_retro MovieRecord SonicDiscretizer AbstractEnvRunner update_mean_var_count_from_moments RunningMeanStd test_tf_runningmeanstd TfRunningMeanStd profile_tf_runningmeanstd test_runningmeanstd test_running_stat RunningStat linear_interpolation Schedule ConstantSchedule PiecewiseSchedule LinearSchedule SegmentTree MinSegmentTree SumSegmentTree function GetFlat _check_shape display_var_info save_variables huber_loss single_threaded_session save_state load_variables lrelu initialize get_placeholder numel conv2d intprod SetFromFlat make_session get_available_gpus switch flattenallbut0 normc_initializer adjust_shape in_session load_state get_placeholder_cached _squeeze_shape _Function get_session launch_tensorboard_in_background var_shape flatgrad tile_images test_cartpole test_lstm_example test_env_after_learn test_fixed_sequence test_discrete_identity test_continuous_identity test_mnist test_piecewise_schedule test_constant_schedule test_prefixsum_idx2 test_tree_set_overlap test_max_interval_tree test_prefixsum_idx test_tree_set test_serialization _serialize_variables _get_action_stats test_multikwargs test_function reward_per_episode_test simple_test rollout FixedSequenceEnv DiscreteIdentityEnv IdentityEnv BoxIdentityEnv MnistEnv DummyVecEnv _subproc_worker ShmemVecEnv worker SubprocVecEnv test_vec_env SimpleEnv assert_envs_equal obs_space_info obs_to_dict copy_obs_dict dict_to_obs VecFrameStack VecMonitor VecNormalize VecEnvWrapper AlreadySteppingError VecEnv NotSteppingError CloudpickleWrapper safemean learn denormalize get_target_updates reduce_std get_perturbed_actor_updates DDPG normalize reduce_var RingBuffer array_min2d Memory Model Actor Critic OrnsteinUhlenbeckActionNoise ActionNoise AdaptiveParamNoiseSpec NormalActionNoise default_param_noise_filter build_act_with_param_noise build_train absolute_scope_name build_act scope_name scope_vars learn ActWrapper load_act atari retro mlp build_q_func _cnn_to_mlp cnn_to_mlp _mlp PrioritizedReplayBuffer ReplayBuffer PlaceholderTfInput TfInput ObservationInput wrap_atari_dqn model main main main main callback main main TransitionClassifier logit_bernoulli_entropy logsigmoid argsparser get_task_name main learn plot argsparser evaluate_env load_dataset main MlpPolicy argsparser traj_1_generator get_task_name runner main train stats flatten_lists add_vtarg_and_adv learn traj_segment_generator Dset test Mujoco_Dset ActorCritic dims_to_shapes DDPG make_sample_her_transitions Normalizer IdentityNormalizer ReplayBuffer RolloutWorker convert_episode_to_batch_major store_args import_function install_mpi_excepthook transitions_in_episode_batch flatten_grads mpi_fork reshape_for_broadcasting nn configure_dims log_params configure_her prepare_params cached_make_env simple_goal_subtract configure_ddpg main pad load_results smooth_reward_curve mpi_average main train launch CnnPolicy MlpPolicy flatten_lists add_vtarg_and_adv learn traj_segment_generator main train main RewScale train main train main train atari robotics envs mujoco learn safemean Model Runner constfn convert_tensors_to_vector sf01 atari mujoco learn get_vf_trainable_variables get_pi_trainable_variables safemean add_vtarg_and_adv traj_segment_generator flatten_lists get_trainable_variables get_variables KalmanOptimizer kalman learn safemean Model Runner constfn convert_tensors_to_vector sf01 get_vars KalmanSAC learn get_vf_trainable_variables get_pi_trainable_variables safemean add_vtarg_and_adv traj_segment_generator flatten_lists get_trainable_variables get_variables KTDOptimizer dumpkvs HumanOutputFormat SeqWriter get_dir read_json warn set_level Logger CSVOutputFormat log logkvs make_output_format JSONOutputFormat read_tb getkvs configure TensorBoardOutputFormat debug ScopedConfigure logkv info KVWriter _demo error ProfileKV get_level logkv_mean reset profile read_csv plot_results rolling_window window_func ts2xy main plot_curves A2CRunner A2C main train batch_to_seq discount_with_dones total_episode_reward_logger calc_entropy conv calc_entropy_softmax double_linear_con q_explained_variance seq_to_batch gradient_add lstm check_shape ortho_init avg_norm double_middle_drop mse _ln linear_schedule sample get_by_index constant conv_to_fc linear lnlstm make_path EpisodeStats middle_drop Scheduler ACER q_retrace strip _Runner Buffer main train learn rollout ACKTR KfacOptimizer factor_reshape clipout_neg gmatmul detect_min_val GaussianMlpPolicy main train main train dense kl_div NeuralNetValueFunction get_task find_task_in_benchmarks register_benchmark get_benchmark list_benchmarks LoadMonitorResultsError load_results Monitor get_monitor_files WarpFrame LazyFrames make_atari FireResetEnv EpisodicLifeEnv ScaledFloatFrame wrap_deepmind NoopResetEnv FrameStack MaxAndSkipEnv ClipRewardEnv SetVerbosity BaseRLModel OffPolicyRLModel _UnvecWrapper TensorboardWriter ActorCriticRLModel BitFlippingEnv conjugate_gradient atari_arg_parser make_robotics_env mujoco_arg_parser arg_parser make_atari_env robotics_arg_parser make_mujoco_env fmt_row colorize fmt_item Dataset iterbatches shape_el ProbabilityDistribution MultiCategoricalProbabilityDistributionType CategoricalProbabilityDistributionType DiagGaussianProbabilityDistributionType ProbabilityDistributionType MultiCategoricalProbabilityDistribution BernoulliProbabilityDistributionType CategoricalProbabilityDistribution BernoulliProbabilityDistribution make_proba_dist_type DiagGaussianProbabilityDistribution Filter IdentityFilter StackFilter ZFilter FlattenFilter CompositionFilter AddClock DivFilter Ind2OneHotFilter IdentityEnvBox IdentityEnvMultiBinary IdentityEnv IdentityEnvMultiDiscrete observation_input explained_variance_2d explained_variance flatten_arrays discount_with_boundaries unflatten_vector discount pickle_load RunningAvg boolean_flag set_global_seeds EzPickle pretty_eta relatively_safe_pickle_dump zipsame unpack get_wrapper_by_name MpiAdam test_mpi_adam mpi_fork _helper_runningmeanstd mpi_moments mpi_mean test_dist RunningMeanStd BasePolicy CnnLstmPolicy nature_cnn CnnLnLstmPolicy MlpLstmPolicy register_policy MlpPolicy get_policy_from_name mlp_extractor ActorCriticPolicy CnnPolicy RecurrentActorCriticPolicy FeedForwardPolicy MlpLnLstmPolicy LstmPolicy AbstractEnvRunner RunningMeanStd RunningStat linear_interpolation Schedule ConstantSchedule PiecewiseSchedule LinearSchedule SegmentTree MinSegmentTree SumSegmentTree leaky_relu function GetFlat get_globals_vars display_var_info huber_loss outer_scope_getter single_threaded_session save_state initialize is_image numel get_trainable_vars conv2d intprod SetFromFlat make_session switch flattenallbut0 normc_initializer in_session load_state _Function var_shape flatgrad tile_images VecEnvWrapper AlreadySteppingError VecEnv NotSteppingError CloudpickleWrapper DummyVecEnv _worker _flatten_obs SubprocVecEnv obs_space_info copy_obs_dict dict_to_obs VecCheckNan VecFrameStack VecNormalize VecVideoRecorder denormalize get_target_updates reduce_std get_perturbed_actor_updates DDPG normalize reduce_var parse_args run RingBuffer array_min2d Memory OrnsteinUhlenbeckActionNoise ActionNoise AdaptiveParamNoiseSpec NormalActionNoise DDPGPolicy LnMlpPolicy LnCnnPolicy MlpPolicy CnnPolicy FeedForwardPolicy default_param_noise_filter build_act_with_param_noise build_train absolute_scope_name build_act scope_name scope_vars DQN LnMlpPolicy LnCnnPolicy MlpPolicy DQNPolicy CnnPolicy FeedForwardPolicy PrioritizedReplayBuffer ReplayBuffer wrap_atari_dqn main CustomPolicy main main main main main callback main TransitionClassifier logit_bernoulli_entropy logsigmoid GAIL DataLoader ExpertDataset generate_expert_traj ActorCritic dims_to_shapes DDPG HER Normalizer IdentityNormalizer HindsightExperienceReplayWrapper GoalSelectionStrategy RolloutWorker mlp convert_episode_to_batch_major import_function install_mpi_excepthook transitions_in_episode_batch flatten_grads reshape_for_broadcasting mpi_fork HERGoalEnvWrapper configure_dims log_params configure_her prepare_params cached_make_env simple_goal_subtract configure_ddpg main pad load_results smooth_reward_curve mpi_average main train launch PPO1 main train main RewScale train main train main train swap_and_flatten safe_mean PPO2 Runner constfn get_schedule_fn main train main train mlp clip_but_pass_gradient apply_squashing_func gaussian_entropy gaussian_likelihood SACPolicy LnMlpPolicy LnCnnPolicy MlpPolicy CnnPolicy FeedForwardPolicy SAC get_vars main train main train TRPO flatten_lists add_vtarg_and_adv traj_segment_generator list product print main_run enumerate P_init get_data kalman_lr Qmaze constfn valid_actions argmax format_time calls_to_fit onv_coeff tolist theta_size reward_noise remember shape Experience append sum range predict get format act size onv_type choice lr free_cells calls_to_predict update_target theta_noise eta time isinstance evaluate adam_lr total_seconds print now optimizer_method reset observe zeros fit float arrange_data_to_plot act reset observe argmax predict free_cells arrange_data_to_plot enumerate append read_from_file_for_plotting std plot set_xticklabels mean shape set_xticks append fill_between array std plot semilogy set_yticklabels set_xlabel set_yticks upper mean set_ylabel append fill_between array tick_params arrange_data_to_plot enumerate append read_from_file_for_plotting print listdir show seed ModelKTD format print getcwd get_dir strftime set_random_seed shape Model qtrain Qmaze randint array copytree strides rolling_window func squeeze xepisodes_by_alg as_matrix get_loc xtimesteps_by_alg std set_tick_params plot set_xticklabels set_xlim mean set_xticks array label_by_alg fill_between max comb_by_alg_env enumerate join reset_index glob concat sort_values append xtimesteps_by_alg subplots subplots_adjust len show dirs add_argument xaxis plot_loss ArgumentParser append parse_args enumerate model alg get_learn_function seed get_kalman_learn_function update build_env KalmanSAC format learn get_default_network SAC num_timesteps int get_learn_function_defaults get_kalman_learn_function_defaults print body_mass_percentage get_env_type network env make_atari cpu_count get_dir wrap_deepmind alg VecNormalize2 Monitor seed make_vec_env wrap_deepmind_retro VecFrameStack make_retro DummyVecEnv ConfigProto make get_session get_env_type VecNormalize env print items list print join import_module join import_module get_alg_module get_kalman_alg_module get_dir alg reset_default_graph seed save_path2 getcwd strftime parse_known_args expanduser set_defaults parse_cmdline_kwargs Get_rank common_arg_parser update copytree configure format save_path close get_learn_function_defaults get_kalman_learn_function_defaults get_default_session print body_mass_percentage add_argument get_env_type randint train env makedirs items list logkv log log log log join int strftime gettempdir getenv Logger split log makedirs CURRENT configure close log DEFAULT configure dumpkvs debug logkv_mean rmtree set_level logkv info exists join sorted defaultdict value isdir glob keys empty nan startswith append step max enumerate summary_iterator cumsum arange values len xlabel mpl_connect grid ylabel tight_layout window_func scatter title figure xlim load_results plot_curves num_timesteps plot_results yaxis task_name build_env initialize_placeholders configure save_path parse_cmdline_kwargs close log parse_known_args render reset save play expanduser train step Get_rank common_arg_parser load int time set_global_seeds float cpu_count safemean extend explained_variance dump_tabular build_policy Model Runner record_tabular deque train range run shape random_uniform exp reduce_max reduce_sum value reshape as_list value tanh zip concat matmul sigmoid split enumerate sqrt moments tanh concat matmul sigmoid _ln zip enumerate split reshape prod append zip gather range reshape zip print check_shape moments batch_to_seq minimum seq_to_batch batch_to_seq check_shape append range num_envs locals Acer Buffer print action_space observation_space call steps poisson get_dir save sess make_model join request_stop Coordinator create_threads get_shape list remove insert reshape transpose matmul range len cast float32 clipoutNeg reduce_max greater logical_or less reduce_min cond get_shape reshape len square append sub join reset_index glob concat append sort_values seed make uuid4 readline remove close reset loads Monitor read_csv step range open NoopResetEnv make MaxAndSkipEnv WarpFrame EpisodicLifeEnv FireResetEnv ScaledFloatFrame FrameStack ClipRewardEnv callback zeros_like print copy dot f_Ax range set_global_seeds seed make set_global_seeds RewardScaler Monitor Get_rank seed make set_global_seeds Monitor FlattenDictWrapper print print add_argument arg_parser add_argument arg_parser startswith join len str ndarray isinstance item abs append str print join colorize isinstance print_cmd check_call print colorize time asarray arange array_split tuple shuffle map Box isinstance MultiDiscrete Discrete MultiBinary seed size DiagGaussianPdType BernoulliPdType CategoricalPdType MultiCategoricalPdType validate_probtype array function entropy randn print param_placeholder sample_placeholder logp calcloglik size mean sqrt repeat sample kl pdfromflat std run observation_placeholder isinstance var var append reshape prod range zeros_like discount_with_boundaries array len list __next__ iter append range seed Get_rank set_random_seed helper add_argument replace Wrapper isinstance env rename activ conv_to_fc relu float32 conv cast max RunningMeanStd min mean clip_by_value std callable seed MpiAdam update function lossandgrad minimize Variable print astype square reduce_sum set_random_seed sin global_variables_initializer range run update copy check_call COMM_WORLD dtype asarray zeros_like size Allreduce ravel zeros sum asarray reshape square sqrt mpi_mean check_call COMM_WORLD seed concatenate print mpi_moments zipsame update initialize RunningMeanStd concatenate seed update initialize COMM_WORLD RunningMeanStd concatenate COMM_WORLD Bcast shape assign empty Get_rank run check_output COMM_WORLD str gpu_count get_local_rank_size node defaultdict allgather Barrier dirname bcast get_local_rank_size makedirs items list defaultdict allgather size mean append sum isinstance make TimeLimit StochasticFrameSkip FrameStack ScaledFloatFrame WarpFrame ClipRewardEnv square assert_allclose update TfRunningMeanStd assert_allclose concatenate update time format RunningMeanStd get_session print random mean TfRunningMeanStd range RunningStat randn mean append range push get_shape copy set_shape cast cond make_session get_default_session int ConfigProto cpu_count getenv update variables_initializer global_variables set run list _Function isinstance values as_list gradients placeholder name as_list prod info list_local_devices restore Saver warn get_default_session get_default_session warn any Saver dirname save makedirs dump any dirname run makedirs load isinstance assign zip append expanduser run array isinstance _squeeze_shape enumerate Popen int list asarray reshape transpose shape sqrt ceil float array update reward_per_episode_test copy DummyVecEnv learn close SubprocVecEnv reset make_session get_learn_function update simple_test update simple_test update simple_test update simple_test get_learn_function PiecewiseSchedule range ConstantSchedule SumSegmentTree SumSegmentTree SumSegmentTree SumSegmentTree MinSegmentTree update partial copy DummyVecEnv get_learn_function trainable_variables get_session run mean array std seed DummyVecEnv DummyVecEnv initial_state reset append step range recv _write_obs close render reset send step x recv close render reset send step x seed step_wait shape zip randint step_async array range klass assert_envs_equal DummyVecEnv dtype list items isinstance spaces shape append Dict isinstance get_stats Actor strip Get_size Memory update_target_net AdaptiveParamNoiseSpec adapt_param_noise str list initialize allreduce sorted hasattr len NormalActionNoise shape render array append OrnsteinUhlenbeckActionNoise Get_rank get format high copy mean Critic info keys items get_session store_transition finalize reset step std DDPG split reduce_mean square format zip name assign info append format zip name shape assign info append vars random_normal array build_act_with_param_noise build_act build_q_func build_train ReplayBuffer PrioritizedReplayBuffer ActWrapper update_target LinearSchedule isinstance make learn print wrap_atari_dqn make_atari get_dir Monitor sigmoid logsigmoid add_argument boolean_flag ArgumentParser function get_next_batch lossandgrad ac save_state log name sample_placeholder policy_func update square get_trainable_variables get_placeholder_cached MpiAdam sync tqdm reduce_mean seed join checkpoint_dir log_dir set_global_seeds get_task_name env_id runner WARN setLevel __enter__ Mujoco_Dset Mujoco_Dset seed join make format glob latest_checkpoint print close get_checkpoint_dir load_dataset runner sum append enumerate format xlabel ones grid close ylabel title ylim savefig legend len stochastic_policy format plot evaluate_env policy_hidden_size env str g_step algo policy_entcoeff d_step pretrained adversary_entcoeff policy_entcoeff pretrained TransitionClassifier g_step algo save_per_iter d_step BC_max_iter load_model_path adversary_hidden_size set_global_seeds set_level DISABLED Get_rank initialize list savez print action_space traj_1_generator id observation_space tqdm policy_func append load_state sum range len act reset sample step array append act copy get_reward reset sample zeros step array append reversed append empty range len GetFlat Bcast get_flat map intprod SetFromFlat zip logp makedirs allclose flatgrad vpred callback gradients add_vtarg_and_adv allmean set_from_flat allgather set_printoptions dirname loss_name traj_segment_generator sqrt compute_losses get_default_session reshape pd stats add_n Saver exp placeholder sum globals iterbatches entropy dot fmt_row kl fisher_vector_product concatenate load_state assign_old_eq_new Mujoco_Dset plot getfullargspec update list kwonlydefaults dict zip defaults import_module getattr split dense reshape activation enumerate excepthook install_mpi_excepthook swapaxes list keys copy shape get_shape len make_env dict reset cached_make_env _max_episode_steps sorted format keys info make_sample_her_transitions reset cached_make_env update configure_her copy reset cached_make_env DDPG items list reshape reset cached_make_env sample step array DEFAULT_PARAMS update configure_dims generate_rollouts log_params RolloutWorker prepare_params mean clear_history record_tabular logs range dump_tabular int ones_like convolve ones ceil len genfromtxt reshape enumerate append max ones concatenate get_dir clear_history update_target_net Bcast uniform current_success_rate range mpi_average generate_rollouts copy info logs save_policy join store_episode record_tabular dump_tabular DEFAULT_PARAMS update seed configure configure_dims set_global_seeds log_params RolloutWorker prepare_params exit get_dir warn mpi_fork train configure_ddpg __enter__ Get_rank makedirs launch list __next__ clip_by_value max Dataset zipsame mpi_moments iterate_once policy_fn dict configure make_atari wrap_deepmind close Monitor single_threaded_session __enter__ RewScale save_state make_mujoco_env mujoco_arg_parser load_state model_path set_defaults make_mujoco_env make_robotics_env append reshape concat shape arange dumpkvs constfn squeeze get_policy_grad_vector shuffle cliprange lr logkv isinstance cosine_similarity loss_names ravel get get_pi_trainable_variables get_vf_trainable_variables observation_placeholder vf KalmanOptimizer apply_kalman Get_rank logkvs error warn reset A2C VecFrameStack make_atari_env atari_arg_parser exp reduce_max reduce_sum _ln warn ACER logdir concatenate act high obfilter float32 copy shape render zeros low clip trainable_variables timestep_limit KfacOptimizer ZFilter update_info predict discount compute_kl do_update eval minimize Variable rollout float32 fit cast float32 clipout_neg reduce_max greater logical_or less reduce_min cond get_shape reshape len ACKTR f_ax callback zeros_like print copy dot range set_global_seeds join str get_dir add_argument arg_parser add_argument arg_parser Box isinstance MultiDiscrete Discrete MultiBinary one_hot isinstance high concat float32 placeholder cast low n hasattr spaces seed MpiAdam update function lossandgrad minimize Variable print astype square reduce_sum set_random_seed sin global_variables_initializer range run format act_fun isinstance linear zip_longest enumerate issubclass __subclasses__ get_default_session join join var recv step close render reset getattr send setattr method isinstance Tuple spaces Dict len Dict isinstance Tuple Tuple get_globals_vars strip get_dir set_level DISABLED Monitor AdaptiveParamNoiseSpec reset_default_graph seed set_global_seeds NormalActionNoise OrnsteinUhlenbeckActionNoise Get_rank format learn close info make join time DDPG split boolean_flag add_argument ArgumentParser vars function q_func where stack assign random_uniform q_values argmax cond get_variable argmax perturb_vars function q_func float32 placeholder reduce_sum where reduce_mean assign softmax cond random_uniform stack bool q_values log get_variable function apply_gradients merge_all load no_render predict sample partial DQN mean float round imwrite model warn COLOR_RGB2BGR list get_env Box shape dirname append predict format learn close Discrete join items isinstance savez print reshape action_space observation_space reset zeros step array cvtColor makedirs dense reshape activation enumerate max_episode_steps train_step PPO1 constfn float isinstance shape PPO2 VecNormalize DummyVecEnv zeros shape exp log pi layer_norm activ_fn cast float32 tanh TRPO Box initial_state isinstance reshape high action_space low clip | sdicastro/KOVA | 3,557 |
sdittmer/gtfd | ['denoising'] | ['Ground Truth Free Denoising by Optimal Transport'] | utils/Critic.py utils/Generator.py utils/SineDataSet.py utils/compute_gradient_penalty.py utils/loss_functions.py compute_gradient_penalty Critic ResBlock Generator get_G_loss get_Cyδ_loss get_Cη_loss get_η get_clean_batch get_batch norm inf view Variable ones size clamp random mean requires_grad_ C tensor data mean Cη compute_gradient_penalty Cyδ data mean compute_gradient_penalty apply_for_training mean pi rand view | sdittmer/gtfd | 3,558 |
sdv4/Predicting-Confusion-with-RNN_HAI-2019 | ['data augmentation'] | ['Predicting Confusion from Eye-Tracking Data with Recurrent Neural Networks'] | utils.py train.py train plot_grad_flow get_users optimal_threshold_sensitivity_specificity get_grouped_k_fold_splits pickle_loader check_metrics plot_metrics batch_accuracy get_train_val_split list plot xlabel grid xlim ylabel mean title append xticks range hlines len model zero_grad save str Adam load_state_dict append to sum range state_dict manual_seed batch_accuracy float enumerate NLLLoss load backward print named_parameters parameters plot_grad_flow check_metrics step init_hidden load close open append zeros len train array recall_score len sqrt power sum array enumerate GroupKFold append get_n_splits split get_n_splits GroupShuffleSplit split show set_size_inches subplots arange plot AnchoredOffsetbox set_xlabel tight_layout add_artist set_ylabel twinx VPacker tick_params TextArea set_ylim len append | # Predicting Confusion from Eye Tracking Data with Recurrent Neural Network-HAI 2019 Code for models and experiments presented in _Predicting Confusion from Eye-Tracking Data with Recurrent Neural Network_. This paper was presented at the [Humanizing AI workshop of IJCAI 2019](https://www.humanizing-ai.com/hai-19.html) on August 12, 2019 in Macao, China, where it won Best Paper Award. This code is being made available to allow others to verify our procedure so that it can be used in other in related applications of eye-tracking data. Please contact me if you notice any errors, have any suggestions, or just want to chat about classifying eye-tracker data using deep learning approaches. #### Note: The dataset required to run these experiments has not yet been made publicly available. ### Organization of this repository: - The experiments reported in the paper are grouped into their own Jupyter Notebook by data condition. - The main training function is in train.py with its helper functions. This function is common to all notebooks. - Other utility functions are grouped together in utils.py. These functions are common to all notebooks, unless defined locally. | 3,559 |
sdyy6211/plant-segmentation | ['stochastic optimization'] | ['Adam: A Method for Stochastic Optimization'] | utils.py decode_color outter GET_LABEL adjust_position save_image get_frequency load_model create_csv overlay get_region IoU IoU_batch seperate_labels predict adjust_gamma find_rectangle predict_by_class find_window reset_conners draw_bounding_box making_masks evaluate image_adjust Segdata save_bbox train join BytesIO format print len save content range open str fillna print dropna DataFrame range values len join fillna chdir DataFrame dropna listdir range len format save DataFrame crop range open get_label GET_LABEL device zeros numpy range view print item append float max range view mean item append float argmax max range astype Contrast Brightness convert median array Color enhance update criterion model backward item device append IoU_batch to step long GradScaler eval device fromarray squeeze get_region size dlab2_detail empty_cache interpolate device append zeros to numpy enumerate sum exp min astype where mean shape sqrt numpy labels_ unique unravel_index argmax max append fit approxPolyDP drawContours threshold COLOR_BGR2GRAY Polygon findContours squeeze area arcLength append array cvtColor concatenate reshape power sqrt zeros sum array enumerate find_rectangle squeeze get_region to crop argmax power reset_conners xy sqrt zeros sum enumerate isinstance reshape where range Tensor numpy zeros len tuple decode_color axis resize device list squeeze get_region imshow append to range size text rectangle figure numpy array len load format Compose parameters eval load_state_dict to uint8 astype dlab2 interpolate cuda predict_by_class uint8 format print decode_color size astype mkdir save listdir predict open | # Dissertation_Image_segmentation ## Introduction of the model This model is a semantic image segmentation model, which assigns label to each pixel of an image to partition different objects into segments. Semantic image segmentation means that there is no distinguishing between different plants, e.g. plant_1 and plant_2. They are all classified as plants as a whole. There exists models which can distinguish different objects of the same category. However, in this case, this function does not provide too much helps. The whole model is composed of two parts, namely backbone part and classifier part. The backbone part has been pre-trained on a large dataset (may exceed over 1 million of training examples) to have a generalizing ability, while the classifier part is untrained, and should be fine-tuned based on specific tasks. This structure takes the advantage of transfer learning ability of deep learning models, which means that a well trained model can perform well in different similar tasks. The main metric used to measure the performance of the model is Intersection over Union (IoU), which is  |:--:| | *Visual explanation of IoU* | ## The aim of this model This model is used to automatically segment each object within crowdsourced images, which are unstructured data that is considered as difficult to be processed automatically. The practical application of the model is to automatically detect and monitor the changes of historical sites from those unstructured image data overtime. In this case, the aim is to detect and monitor the growth of the plant on the wall of Bothwell castle. | 3,560 |
searchivarius/NonMetricSpaceLib | ['density estimation'] | ['Learning to Prune in Metric and Non-Metric Spaces'] | data/genhist_unif.py data/data_conv/create_lda.py benchmark/benchmark_nmslib.py data/data_conv/wikipedia_rand_split.py data/data_conv/convert_gensim_sparsedoc.py previous_releases_scripts/nips2013/figures/genplots_nips2013.py benchmark/data_utils.py data/data_conv/convert_sisap_sparsedoc.py benchmark/eval.py data/data_conv/convert_texmex_fvec.py data/data_conv/convert_nndes.py data/genunif.py query_server/python_client/protocol/constants.py query_server/python_client/protocol/ttypes.py previous_releases_scripts/vldb2015/plots/extract_data.py data/data_conv/merge_labels_with_data.py query_server/python_client/protocol/QueryService.py previous_releases_scripts/vldb2015/plots/genplot_proj1.py data/data_conv/convert_gensim_densedoc.py benchmark/datasets.py data/flip_sign_rand.py python_bindings/integration_tests/test_nmslib.py scripts/update_file_header.py query_server/python_client/query_client.py python_bindings/integration_tests/sparse_bench.py python_bindings/tests/legacy_test.py previous_releases_scripts/vldb2015/plots/genplot.py scripts/genplot_configurable.py benchmark/misc_utils.py scripts/normcenter_dense.py python_bindings/notebooks/test_hnsw_recall.py previous_releases_scripts/sisap2013/figures/genplots_sisap2013.py query_server/python_client/protocol/__init__.py python_bindings/tests/bindings_test.py python_bindings/setup.py python_bindings/docs/conf.py previous_releases_scripts/genplot.py data/data_conv/convert_texmex_bvec.py python_bindings/integration_tests/common.py data/data_conv/parse_one_cophir_doc.py data/data_conv/create_lsi.py scripts/gen_pivots_sparse.py main get_bin_suff download_and_process_data read_sparse_from_text save_sparse download_and_unpack split_data save_dense load_dense FileWrapper read_dense_from_text load_sparse inner_prod_neighbor_dists make_index_file_name make_log_file_name make_gold_standard_file_name make_result_file_name_pref get_result_file_name run_binary_test_case compute_neighbors_batched benchmark_bindings benchamrk_binary kldiv_neighbor_dists compute_neighbors get_neighbors_from_dists dict_param_to_nsmlib_bin_str to_int del_files_with_prefix writeDoc GetList clear parseHeader genPlotLatex getAxisLatex startsWith enum parseExpr genPlot genPGFPlot methodNameAndStyle clear parseHeader getAxisLatex enum genPlotsInDir renameMethod parseExpr genPlot genPGFPlot clear parseHeader getAxisLatex enum genPlotsInDir renameMethod parseExpr genPlot genPGFPlot parseHeader clear doExtract parseExpr clear parseHeader genPlotLatex getAxisLatex startsWith enum parseExpr genPlot genPGFPlot methodNameAndStyle clear parseHeader genPlotLatex getAxisLatex startsWith enum parseExpr genPlot genPGFPlot methodNameAndStyle has_flag cpp_flag BuildExt get_pybind_include TimeIt bench_sparse_vector read_sparse_data test_object_as_string_fresh read_data read_data_fast_batch test_vector_load test_vector_loaded gen_sparse_data test_string_loaded test_sparse_vector_fresh test_string_fresh test_vector_fresh read_data_as_string read_data_fast testHnswRecallL2 testRandomUnif testRandomClustered MemoryLeak1TestCase BallTreeTestCase MemoryLeak2TestCase TestSparseZeroVect DenseIndexTestMixin BitHammingTestCase get_hitrate bit_vector_sparse_str HNSWTestCase TestLoadEmptyIndex SWGraphTestCase TestCaseBase BitVectorIndexTestMixin GlobalTestCase SparseJaccardTestCase get_exact_cosine StringTestCase BitJaccardTestCase bit_vector_to_str SparseTestCase SparseTests StringTests2 StringTests1 DenseTests error_exit getDistance_result knnQueryBatch_args rangeQuery_result getDistance_args setQueryTimeParams_result knnQuery_args Client knnQueryBatch_result Iface Processor setQueryTimeParams_args rangeQuery_args knnQuery_result QueryException ReplyEntry clear stupidEscape parseHeader readMethDesc genPlotLatex getAxisLatex enum fatalError readAxisDesc parseExpr genPlot genPGFPlot methodNameAndStyle printErr __version__ ArgumentParser load_dense dataset_name benchmark_bindings _asdict exit append parse_args load_sparse dataset_dir type enumerate join print add_argument benchamrk_binary split_data download_and_process_data join list items print save_sparse download_and_unpack save_dense read_sparse_from_text read_dense_from_text exists train_test_split save csr_matrix save_npz join basename urlretrieve print write unlink FileWrapper exists open argsort dot transpose todense array rel_entr append sum range len collect get_neighbors_from_dists batch_processor range append lower NearestNeighbors fit get_result_file_name _asdict print len dict_param_to_nsmlib_bin_str extend del_files_with_prefix append float range read_csv run make_log_file_name make_index_file_name make_gold_standard_file_name make_result_file_name_pref run_binary_test_case print del_files_with_prefix createIndex knnQueryBatch _asdict compute_neighbors intersection saveIndex append range addDataPointBatch set init float loadIndex make_index_file_name time print setQueryTimeParams del_files_with_prefix len join basename unlink dirname startswith listdir str join print write dict append float range flush str list dict zip range len append items list getAxisLatex split enumerate clear methodNameAndStyle split parseHeader readlines parseExpr append enumerate genPlotLatex close write call open print startsWith lower exit parseHeader readlines parseExpr append enumerate str join write close call lower open findall genPlot listdir makedirs print exit strip strip parseHeader strip readlines write parseExpr append float enumerate open int format float range split has_flag append format extend split list remove FLOAT print sort csr_matrix freeIndex saveIndex setQueryTimeParams init isfile binomial SPARSE_VECTOR range append read_csv read_csv remove FLOAT print freeIndex rand DENSE_VECTOR savetxt init isfile arange getDistance createIndex knnQueryBatch str FLOAT read_data freeIndex exit saveIndex range read_data_fast addDataPointBatch getDataPoint DENSE_VECTOR addDataPoint init enumerate remove time print min setQueryTimeParams isfile getDataPointQty len FLOAT read_data print getDataPoint DENSE_VECTOR exit min loadIndex freeIndex addDataPoint setQueryTimeParams init getDataPointQty range enumerate binomial shape savetxt print remove FLOAT read_sparse_data print getDataPoint min freeIndex createIndex saveIndex addDataPoint setQueryTimeParams init isfile SPARSE_VECTOR getDataPointQty range enumerate arange getDistance createIndex knnQueryBatch str INT freeIndex saveIndex range addDataPointBatch getDataPoint addDataPoint init enumerate print min knnQuery setQueryTimeParams OBJECT_AS_STRING getDataPointQty len print INT getDataPoint min freeIndex loadIndex addDataPoint setQueryTimeParams OBJECT_AS_STRING init getDataPointQty range enumerate arange createIndex read_data_as_string FLOAT freeIndex saveIndex range addDataPointBatch getDataPoint addDataPoint init enumerate remove print min setQueryTimeParams OBJECT_AS_STRING isfile getDataPointQty len int time print addDataPointBatch createIndex set knnQueryBatch setQueryTimeParams init kneighbors range fit arange min astype float32 choice testHnswRecallL2 arange make_blobs min astype float32 choice testHnswRecallL2 dot norm print exit print exit sort fatalError fatalError str fatalError len join fatalError clear strip rstrip strip fatalError open split fatalError rstrip split open write | searchivarius/NonMetricSpaceLib | 3,561 |
searchlink/din | ['click through rate prediction'] | ['Deep Interest Network for Click-Through Rate Prediction'] | train.py data_generator.py util.py model.py TestData DataInput share_weights Attention din sigmoid calc_auc Evaluate gen_neg build_map convert_to_df Model Input range len cate_emb item_emb print Embedding item_b Model add_loss Input binary_crossentropy compile sorted len sorted list tolist map dict zip range len randint | # 基于keras的Deep Interest Network实现 欢迎star,后续会有更多的nlp和推荐的代码实现,同时关注我的知乎(https://zhuanlan.zhihu.com/skydm) 参考阿里的论文Deep Interest Network for Click-Through Rate Prediction(https://arxiv.org/abs/1706.06978) 实现过程参考了了如下代码库: 1. https://github.com/zhougr1993/DeepInterestNetwork 2. https://github.com/PaddlePaddle/models/tree/develop/PaddleRec/din 数据下载: Amazon Product数据集并进行预处理(http://jmcauley.ucsd.edu/data/amazon/), 这部分的数据处理代码可以参考上述代码库 提供了jupyter notebook的具体实现过程, 调参确实一门学问。 起初在设置如下过程时,发现loss经过几个epoches后,loss上升,同时acc减小。 | 3,562 |
searsia/searsiasuggest | ['misinformation'] | ['Reducing Misinformation in Query Autocompletions'] | src/main/python/evaluate.py reciprocal_rank returned_of_10 printf normalize_query write lower sub print normalize_query | Searsia Suggest =============== Usage: + Get a file `suggestions.txt` with suggested queries (see below) + Build with: `mvn package` + Run with: `java -jar target/searsiasuggest.jar -f suggestions.txt` + Done. Basic implementation of query autocompletions, related queries, and spelling correction. The tool needs a list of query suggestions at startup. Check out the provided poor-person's approach to [collecting suggestion data][1], | 3,563 |
seba-1511/igt.pth | ['stochastic optimization'] | ['Reducing the variance in online optimization by transporting past gradients'] | torch_igt/wrapper.py tests/test_heavyball_igt.py torch_igt/adam_igt.py tests/test_igt.py tests/test_ncigt.py torch_igt/igt.py setup.py tests/test_adam_igt.py tests/test_wrapper_cnn.py tests/test_igt_wrapper.py torch_igt/transported_exp_ata.py torch_igt/__init__.py tests/test_nesterov_igt.py torch_igt/non_convex_wrapper.py tests/test_exp_wrapper.py close dist Convnet Vector dist close Vector close Vector close Vector dist close Vector close Vector close close dist Convnet AdamIGT MomentumIGT NCIGT exp_ata_weight ITA SoftResetExpIGT ExpIGTCont Exp ExpIGT SoftExpIGT IGTransporter | # Implicit Gradient Transport in PyTorch This repository is the original code for the experiments in: [https://arxiv.org/abs/1906.03532](https://arxiv.org/abs/1906.03532). For more information, please refer to our [paper](https://arxiv.org/abs/1906.03532) or our [website](http://seba1511.net/projects/igt/). ## Citation You can cite the algorithms implemented in this repository by citing the following paper. ~~~ @misc{arnold2019reducing, title={Reducing the variance in online optimization by transporting past gradients}, author={Sebastien M. R. Arnold, | 3,564 |
sebastian-hofstaetter/sigir19-neural-ir | ['information retrieval', 'word embeddings', 'passage retrieval'] | ['On the Effect of Low-Frequency Terms on Neural-IR Models'] | matchmaker/train.py matchmaker/dataloaders/ir_tuple_loader.py matchmaker/preprocessing/tokenize_files.py matchmaker/performance_monitor.py matchmaker/utils.py matchmaker/evaluation/oov_words_finder.py matchmaker/preprocessing/generate_query_split.py matchmaker/evaluation/batch_sig_test.py matchmaker/preprocessing/generate_validation_input_from_candidate_set.py matchmaker/multiprocess_input_pipeline.py matchmaker/preprocessing/generate_vocab.py matchmaker/dataloaders/ir_labeled_tuple_loader.py matchmaker/preprocessing/generate_fasttext_weights.py matchmaker/models/matchpyramid.py matchmaker/evaluation/oov_msmarco_eval.py matchmaker/evaluation/msmarco_eval.py matchmaker/models/knrm.py matchmaker/eval.py matchmaker/dataloaders/fasttext_token_indexer.py matchmaker/preprocessing/generate_fasttext_vocab_mapping.py matchmaker/dataloaders/ir_triple_loader.py matchmaker/modules/fasttext_token_embedder.py matchmaker/evaluation/batch_msmarco_eval.py matchmaker/models/conv_knrm.py save_sorted_results save_fullmetrics_rangeN test_model save_best_info validate_model save_fullmetrics_oneN evaluate_model save_one_metric_multiN get_multiprocess_batch_queue multiprocess_validation_loader multiprocess_training_loader PerformanceMonitor get_logger_to_file save_config get_config EarlyStopping prepare_experiment_folder parse_candidate_set Timer get_parser prepare_experiment FastTextVocab FastTextNGramIndexer IrLabeledTupleDatasetReader IrTripleDatasetReader IrTupleDatasetReader compute_metrics_from_files load_reference compute_metrics_with_cs_at_n_memory load_candidate_from_stream_with_score compute_metrics load_reference_from_stream load_candidate main load_candidate_from_stream compute_metrics_with_cs_at_n quality_checks_qids Conv_KNRM KNRM MatchPyramid FastTextEmbeddingBag getInstances str qsize glob error set eval get_multiprocess_batch_queue info len compute_metrics_from_files str join list save_sorted_results save_fullmetrics_rangeN remove save_fullmetrics_oneN compute_metrics_with_cs_at_n range evaluate_model save_one_metric_multiN compute_metrics_from_files join save_sorted_results save_fullmetrics_oneN compute_metrics_with_cs_at_n evaluate_model load_ids str Process share_memory_ error get_context exit start Queue info append Event enumerate len read WordTokenizer FastTextVocab wait close put BucketIterator from_files _iterator IrTripleDatasetReader index_with read WordTokenizer FastTextVocab IrLabeledTupleDatasetReader wait close put BucketIterator from_files _iterator index_with items list add_argument ArgumentParser join setFormatter getLogger addHandler Formatter setLevel INFO FileHandler join strftime makedirs join save_config run_folder realpath dirname run_name prepare_experiment_folder copytree append int split int split append int float split format keys set pop mean append median harmonic_mean sum range len print load_reference quality_checks_qids load_candidate load_reference load_candidate items list print compute_metrics range quality_checks_qids enumerate pop compute_metrics_from_files list format sorted print exit load_reference compute_metrics load_candidate keys read dataset_files | sebastian-hofstaetter/sigir19-neural-ir | 3,565 |
sebastianruder/latent-variable-vecmap | ['bilingual lexicon induction'] | ['A Discriminative Latent-Variable Model for Bilingual Lexicon Induction'] | eval_similarity.py eval_translation.py cupy_utils.py lat_var.py normalize_embeddings.py map_embeddings.py eval_analogy.py embeddings.py asnumpy supports_cupy get_cupy get_array_module mean_center_embeddingwise read write mean_center length_normalize_dimensionwise length_normalize normalize main main main topk_mean lat_var topk_mean main dropout main int fromstring append range split join asnumpy print shape range len sqrt sum get_array_module mean get_array_module sqrt sum get_array_module mean get_array_module mean_center_embeddingwise length_normalize mean_center length_normalize_dimensionwise verbose ArgumentParser open length_normalize input parse_args append sum range format embeddings startswith read T print add_argument min dot array len lowercase list mean lower zip float src_embeddings split argmax arange min get_array_module zeros empty array range trg_embeddings cuda seed defaultdict exp topk_mean exit tolist add dictionary get_cupy asarray set keys argsort zeros inv_temperature full asnumpy concatenate sort min len delete range flatten lapmod append empty asnumpy enumerate get_array_module init_numerals init_unsupervised stochastic_initial lat_var acl2017_seed intersection trg_input compile join time whitening_transformation add_mutually_exclusive_group aaai2018 src_input ruder_emnlp2018 max n_similar asym ruder_emnlp2018_backward normalize test_dict dropout init_dictionary arange init_identical argmax svd stochastic_multiplier emnlp2016 acl2017 empty flush validation batch_size whiten log identical unconstrained set_defaults concatenate empty_like n_repeats ruder_emnlp2018_artetxe_acl2018_unsupervised add_argument_group sort ruder_emnlp2018_artetxe_acl2018 actions write output | sebastianruder/latent-variable-vecmap | 3,566 |
seboz123/mlagents-meta-learning | ['unity'] | ['Unity: A General Platform for Intelligent Agents'] | ml-agents-envs/mlagents_envs/communicator_objects/capabilities_pb2.py ml-agents/mlagents/trainers/components/reward_signals/curiosity/model.py ml-agents-envs/mlagents_envs/communicator_objects/command_pb2.py ml-agents/mlagents/trainers/cli_utils.py ml-agents/mlagents/trainers/run_experiment.py ml-agents-envs/mlagents_envs/mock_communicator.py ml-agents/mlagents/trainers/policy/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/unity_to_external_pb2.py ml-agents-envs/mlagents_envs/communicator.py gym-unity/gym_unity/envs/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.py ml-agents/mlagents/trainers/learn.py ml-agents/mlagents/trainers/tests/test_sampler_class.py ml-agents/mlagents/trainers/meta_curriculum.py ml-agents/mlagents/trainers/tests/test_barracuda_converter.py ml-agents-envs/mlagents_envs/side_channel/raw_bytes_channel.py ml-agents/mlagents/trainers/trainer/trainer.py gym-unity/gym_unity/__init__.py ml-agents-envs/mlagents_envs/side_channel/__init__.py utils/validate_meta_files.py ml-agents/mlagents/trainers/trainer_controller.py ml-agents/mlagents/trainers/components/bc/model.py ml-agents/mlagents/trainers/tests/test_curriculum.py ml-agents/mlagents/trainers/action_info.py ml-agents/mlagents/trainers/tests/test_ppo.py ml-agents/mlagents/tf_utils/__init__.py ml-agents/mlagents/trainers/components/reward_signals/__init__.py ml-agents-envs/setup.py ml-agents-envs/mlagents_envs/side_channel/engine_configuration_channel.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.py ml-agents/mlagents/trainers/tests/mock_brain.py ml-agents/mlagents/trainers/tests/test_bcmodule.py ml-agents/mlagents/trainers/tests/test_trainer_controller.py ml-agents-envs/mlagents_envs/side_channel/incoming_message.py ml-agents/mlagents/trainers/components/reward_signals/reward_signal_factory.py ml-agents-envs/mlagents_envs/rpc_utils.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_output_pb2.py ml-agents/setup.py ml-agents/tests/yamato/setup_venv.py ml-agents/mlagents/trainers/barracuda.py ml-agents/mlagents/trainers/optimizer/tf_optimizer.py utils/run_markdown_link_check.py ml-agents/mlagents/trainers/env_manager.py ml-agents/mlagents/trainers/ppo/trainer.py ml-agents/mlagents/trainers/policy/policy.py ml-agents-envs/mlagents_envs/communicator_objects/agent_action_pb2.py ml-agents/mlagents/model_serialization.py ml-agents-envs/mlagents_envs/tests/test_rpc_communicator.py ml-agents-envs/mlagents_envs/tests/test_envs.py ml-agents/mlagents/trainers/brain.py utils/validate_inits.py ml-agents-envs/mlagents_envs/side_channel/float_properties_channel.py ml-agents/mlagents/trainers/tests/test_meta_curriculum.py ml-agents/mlagents/trainers/components/reward_signals/curiosity/signal.py ml-agents/mlagents/trainers/simple_env_manager.py ml-agents-envs/mlagents_envs/side_channel/outgoing_message.py ml-agents-envs/mlagents_envs/exception.py ml-agents/mlagents/trainers/curriculum.py ml-agents-envs/mlagents_envs/registry/remote_registry_entry.py ml-agents/mlagents/trainers/tests/test_policy.py ml-agents/mlagents/trainers/trainer/__init__.py ml-agents/mlagents/trainers/upgrade_config.py ml-agents-envs/mlagents_envs/communicator_objects/unity_message_pb2.py ml-agents/mlagents/trainers/tests/test_learn.py ml-agents/mlagents/trainers/policy/nn_policy.py ml-agents/tests/yamato/scripts/run_gym.py ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.py ml-agents/mlagents/trainers/tests/test_demo_loader.py ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.py utils/validate_versions.py ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py ml-agents/mlagents/trainers/models.py ml-agents-envs/mlagents_envs/tests/test_timers.py ml-agents/mlagents/trainers/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/custom_reset_parameters_pb2.py ml-agents-envs/mlagents_envs/tests/test_registry.py ml-agents-envs/mlagents_envs/communicator_objects/agent_info_action_pair_pb2.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.py ml-agents/mlagents/trainers/tests/test_nn_policy.py ml-agents-envs/mlagents_envs/timers.py ml-agents/tests/yamato/check_coverage_percent.py ml-agents/mlagents/trainers/tests/test_simple_rl.py ml-agents/mlagents/trainers/exception.py ml-agents/mlagents/trainers/tests/test_distributions.py gym-unity/gym_unity/tests/test_gym.py utils/make_readme_table.py ml-agents/mlagents/tf_utils/tf.py ml-agents/mlagents/trainers/tests/test_ghost.py ml-agents/mlagents/trainers/buffer.py ml-agents-envs/mlagents_envs/side_channel/side_channel.py ml-agents-envs/mlagents_envs/side_channel/environment_parameters_channel.py ml-agents/mlagents/trainers/tests/test_subprocess_env_manager.py ml-agents/mlagents/trainers/subprocess_env_manager.py ml-agents/mlagents/trainers/tensorflow_to_barracuda.py ml-agents/mlagents/trainers/agent_processor.py ml-agents-envs/mlagents_envs/communicator_objects/engine_configuration_pb2.py ml-agents-envs/mlagents_envs/tests/test_env_utils.py ml-agents/mlagents/trainers/tests/test_rl_trainer.py ml-agents-envs/mlagents_envs/rpc_communicator.py ml-agents/mlagents/trainers/training_status.py ml-agents-envs/mlagents_envs/communicator_objects/demonstration_meta_pb2.py ml-agents-envs/mlagents_envs/__init__.py gym-unity/setup.py ml-agents/mlagents/trainers/behavior_id_utils.py ml-agents/mlagents/trainers/tests/test_config_conversion.py ml-agents/mlagents/trainers/sac/network.py ml-agents/mlagents/trainers/distributions.py ml-agents/mlagents/trainers/policy/tf_policy.py ml-agents/mlagents/trainers/optimizer/__init__.py ml-agents-envs/mlagents_envs/registry/__init__.py ml-agents/mlagents/trainers/tests/simple_test_envs.py ml-agents/mlagents/trainers/tests/__init__.py ml-agents-envs/mlagents_envs/communicator_objects/unity_output_pb2.py ml-agents-envs/mlagents_envs/env_utils.py ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.py ml-agents/mlagents/trainers/trainer_util.py ml-agents/mlagents/trainers/tests/test_trainer_util.py ml-agents-envs/mlagents_envs/logging_util.py ml-agents/mlagents/trainers/components/reward_signals/extrinsic/signal.py ml-agents/mlagents/trainers/sac/trainer.py ml-agents-envs/mlagents_envs/side_channel/side_channel_manager.py ml-agents/mlagents/trainers/sampler_class.py ml-agents/tests/yamato/training_int_tests.py ml-agents/mlagents/trainers/tests/test_sac.py ml-agents/mlagents/trainers/trajectory.py ml-agents/mlagents/trainers/settings.py ml-agents/mlagents/trainers/ppo/optimizer.py ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.py ml-agents-envs/mlagents_envs/base_env.py ml-agents-envs/mlagents_envs/communicator_objects/header_pb2.py ml-agents/mlagents/trainers/tests/test_stats.py ml-agents/mlagents/trainers/components/reward_signals/gail/model.py ml-agents/mlagents/trainers/tests/test_reward_signals.py ml-agents-envs/mlagents_envs/side_channel/stats_side_channel.py ml-agents/mlagents/trainers/components/reward_signals/gail/signal.py ml-agents-envs/mlagents_envs/tests/test_side_channel.py ml-agents-envs/mlagents_envs/registry/base_registry_entry.py ml-agents/mlagents/trainers/ghost/controller.py ml-agents/mlagents/trainers/sac/optimizer.py ml-agents/tests/yamato/standalone_build_tests.py ml-agents-envs/mlagents_envs/environment.py ml-agents/mlagents/trainers/tests/test_training_status.py ml-agents/mlagents/trainers/demo_loader.py ml-agents/mlagents/trainers/ghost/trainer.py ml-agents-envs/mlagents_envs/registry/binary_utils.py ml-agents/tests/yamato/editmode_tests.py ml-agents/mlagents/trainers/tests/test_settings.py ml-agents/mlagents/trainers/components/bc/module.py ml-agents-envs/mlagents_envs/communicator_objects/unity_input_pb2.py ml-agents-envs/mlagents_envs/tests/test_steps.py ml-agents/mlagents/trainers/tests/test_buffer.py ml-agents/mlagents/trainers/trainer/rl_trainer.py ml-agents/mlagents/trainers/tests/test_agent_processor.py ml-agents-envs/mlagents_envs/communicator_objects/unity_to_external_pb2_grpc.py ml-agents/mlagents/trainers/brain_conversion_utils.py ml-agents/tests/yamato/yamato_utils.py ml-agents/tests/yamato/scripts/run_llapi.py ml-agents/mlagents/trainers/stats.py ml-agents-envs/mlagents_envs/registry/unity_env_registry.py ml-agents/mlagents/trainers/tests/test_trajectory.py ml-agents/mlagents/trainers/optimizer/optimizer.py VerifyVersionCommand UnityGymException ActionFlattener UnityToGymWrapper create_mock_vector_steps test_gym_wrapper_multi_visual_and_vector test_gym_wrapper create_mock_group_spec test_branched_flatten setup_mock_unityenvironment test_gym_wrapper_visual test_gym_wrapper_single_visual_and_vector VerifyVersionCommand _get_frozen_graph_node_names export_policy_model _make_frozen_graph _get_output_node_names _get_input_node_names convert_frozen_to_onnx _enforce_onnx_conversion SerializationSettings _process_graph set_warnings_enabled generate_session_config MetaCurriculum ActionInfo AgentManager AgentProcessor AgentManagerQueue BarracudaWriter fuse print_known_operations compress Build sort lstm write fuse_batchnorm_weights trim mean gru Model summary Struct parse_args to_json rnn BehaviorIdentifiers create_name_behavior_id BrainParameters CameraResolution get_global_agent_id behavior_spec_to_brain_parameters BufferException AgentBuffer StoreConfigFile _load_config DetectDefaultStoreTrue DetectDefault load_config _create_parser Curriculum make_demo_buffer write_demo get_demo_files load_demonstration write_delimited demo_to_buffer OutputDistribution DiscreteOutputDistribution MultiCategoricalDistribution GaussianDistribution EnvManager EnvironmentStep SamplerException TrainerConfigError CurriculumError TrainerError MetaCurriculumError CurriculumLoadingError UnityTrainerException CurriculumConfigError write_timing_tree create_sampler_manager create_environment_factory write_run_options parse_command_line run_training write_training_status try_create_meta_curriculum main run_cli get_version_string EncoderType NormalizerTensors ScheduleType ModelUtils main parse_command_line MultiRangeUniformSampler UniformSampler SamplerFactory SamplerManager GaussianSampler Sampler TrainerSettings PPOSettings strict_to_cls RewardSignalSettings EnvironmentSettings check_and_structure RewardSignalType TrainerType HyperparamSettings NetworkSettings SACSettings SelfPlaySettings EngineSettings RunOptions GAILSettings CurriculumSettings CheckpointSettings BehavioralCloningSettings ExportableSettings defaultdict_to_dict CuriositySettings SimpleEnvManager StatsWriter StatsSummary ConsoleWriter StatsReporter GaugeWriter TensorboardWriter StatsPropertyType CSVWriter worker EnvironmentResponse EnvironmentRequest UnityEnvWorker StepResponse SubprocessEnvManager EnvironmentCommand get_layer_shape pool_to_HW flatten sqr_diff process_layer process_model get_layer_rank slow_but_stable_topological_sort get_attr basic_lstm ModelBuilderContext order_by get_epsilon get_tensor_dtype replace_strings_in_list debug embody by_op get_tensor_dims strided_slice remove_duplicates_from_list axis_to_barracuda by_name locate_actual_output_node convert strides_to_HW get_tensor_data very_slow_but_stable_topological_sort gru TrainerController TrainerFactory initialize_trainer handle_existing_directories StatusMetaData StatusType GlobalTrainingStatus AgentExperience Trajectory SplitObservations remove_nones write_to_yaml_file convert_behaviors main parse_args BCModel BCModule create_reward_signal RewardSignal CuriosityModel CuriosityRewardSignal ExtrinsicRewardSignal GAILModel GAILRewardSignal GhostController GhostTrainer Optimizer TFOptimizer NNPolicy Policy TFPolicy UnityPolicyException PPOOptimizer PPOTrainer get_gae discount_rewards SACPolicyNetwork SACTargetNetwork SACNetwork SACOptimizer SACTrainer create_mock_pushblock_brain create_steps_from_brainparams simulate_rollout make_brain_parameters setup_mock_brain make_fake_trajectory create_mock_banana_brain create_mock_steps create_mock_brainparams create_mock_3dball_brain RecordEnvironment clamp SimpleEnvironment MemoryEnvironment test_end_episode test_agent_deletion test_agent_manager_queue test_agentprocessor test_agent_manager test_agent_manager_stats create_mock_brain create_mock_policy test_barracuda_converter test_policy_conversion test_bcmodule_rnn_update test_bcmodule_update test_bcmodule_constant_lr_update test_bcmodule_dc_visual_update create_bc_module test_bcmodule_defaults test_bcmodule_rnn_dc_update test_buffer_sample construct_fake_buffer test_num_experiences assert_array fakerandint test_buffer test_buffer_truncate test_remove_nones test_convert_behaviors test_main default_reset_parameters test_load_bad_curriculum_file_raises_error test_get_parameters test_init_curriculum_happy_path test_increment_lesson test_unsupported_version_raises_error test_load_demo test_demo_mismatch test_edge_cases test_load_demo_dir test_multicategorical_distribution test_tanh_distribution test_gaussian_distribution test_load_and_set dummy_config test_publish_queue test_process_trajectory basic_options test_run_training test_yaml_args test_sampler_configs test_bad_env_path test_commandline_args test_env_args test_increment_lessons_with_reward_buff_sizes test_convert_from_dict test_increment_lessons measure_vals reward_buff_sizes test_get_config test_set_lesson_nums test_restore_curriculums test_simple_metacurriculum test_curriculum_config test_min_visual_size test_load_save create_policy_mock test_normalization ModelVersionTest test_policy_evaluate _compare_two_policies basic_mock_brain test_take_action_returns_action_info_when_available test_convert_version_string test_take_action_returns_nones_on_missing_values test_take_action_returns_empty_with_no_agents FakePolicy test_trainer_increment_step test_trainer_update_policy test_ppo_optimizer_update test_ppo_optimizer_update_curiosity test_process_trajectory test_rl_functions test_add_get_policy test_bad_config _create_fake_trajectory _create_ppo_optimizer_ops_mock dummy_config test_ppo_optimizer_update_gail test_ppo_get_value_estimates test_gail_dc_visual sac_dummy_config reward_signal_update reward_signal_eval test_extrinsic extrinsic_dummy_config test_gail_rnn test_curiosity_cc test_gail_cc ppo_dummy_config test_curiosity_dc curiosity_dummy_config test_curiosity_visual test_curiosity_rnn create_optimizer_mock gail_dummy_config FakeTrainer create_rl_trainer test_rl_trainer create_mock_brain test_summary_checkpoint test_advance test_clear_update_buffer test_sac_update_reward_signals test_add_get_policy create_sac_optimizer_mock test_sac_optimizer_update dummy_config test_advance test_sac_save_load_buffer test_empty_samplers sampler_config_1 check_value_in_intervals incorrect_uniform_sampler test_incorrect_sampler test_sampler_config_1 sampler_config_2 incorrect_sampler_config test_incorrect_uniform_sampler test_sampler_config_2 test_strict_to_cls check_if_different test_is_new_instance test_no_configuration test_trainersettings_structure test_reward_signal_structure test_simple_ghost_fails test_gail test_visual_advanced_sac _check_environment_trains test_visual_sac test_2d_ppo test_simple_sac test_simple_ghost default_reward_processor test_simple_asymm_ghost test_gail_visual_ppo test_simple_ppo test_gail_visual_sac test_recurrent_ppo DebugWriter test_recurrent_sac test_simple_asymm_ghost_fails test_visual_advanced_ppo test_visual_ppo test_2d_sac simple_record test_tensorboard_writer test_stat_reporter_add_summary_write test_tensorboard_writer_clear test_gauge_stat_writer_sanitize ConsoleWriterTest test_csv_writer test_stat_reporter_property MockEnvWorker mock_env_factory SubprocessEnvManagerTest test_subprocess_env_raises_errors create_worker_mock test_subprocess_env_endtoend test_initialization_seed test_start_learning_trains_until_max_steps_then_saves basic_trainer_controller trainer_controller_with_take_step_mocks test_advance_adds_experiences_to_trainer_and_trains trainer_controller_with_start_learning_mocks test_start_learning_trains_forever_if_no_train_model test_initialize_ppo_trainer test_load_config_invalid_yaml test_load_config_missing_file test_handles_no_config_provided dummy_config test_load_config_valid_yaml test_existing_directories test_globaltrainingstatus StatsMetaDataTest test_trajectory_to_agentbuffer test_split_obs np_zeros_no_float64 np_array_no_float64 _check_no_float64 np_ones_no_float64 RLTrainer Trainer main check_coverage main clean_previous_results TestResults parse_results main main main run_training override_config_file init_venv get_unity_executable_path override_legacy_config_file get_base_path run_standalone_build checkout_csharp_version _override_config_dict undo_git_checkout get_base_output_path test_closing test_run_environment test_closing test_run_environment VerifyVersionCommand ActionType BehaviorMapping TerminalStep DecisionSteps BehaviorSpec TerminalSteps BaseEnv DecisionStep Communicator UnityEnvironment validate_environment_path launch_executable get_platform UnityCommunicatorStoppedException UnityObservationException UnityWorkerInUseException UnityException UnityCommunicationException UnityTimeOutException UnitySideChannelException UnityEnvironmentException UnityActionException get_logger set_log_level MockCommunicator RpcCommunicator UnityToExternalServicerImplementation _generate_split_indices process_pixels behavior_spec_from_proto _raise_on_nan_and_inf observation_to_np_array steps_from_proto _process_vector_observation _process_visual_observation _get_thread_timer TimerNode merge_gauges hierarchical_timer add_metadata get_timer_tree get_timer_root reset_timers get_timer_stack_for_thread set_gauge timed GaugeNode TimerStack UnityToExternalProtoServicer add_UnityToExternalProtoServicer_to_server UnityToExternalProtoStub BaseRegistryEntry ZipFileWithProgress get_tmp_dir get_local_binary_path_if_exists get_local_binary_path load_local_manifest load_remote_manifest download_and_extract_zip print_progress RemoteRegistryEntry UnityEnvRegistry EngineConfigurationChannel EngineConfig EnvironmentParametersChannel FloatPropertiesChannel IncomingMessage OutgoingMessage RawBytesChannel SideChannel SideChannelManager StatsAggregationMethod StatsSideChannel test_initialization test_reset test_returncode_to_signal_name test_log_file_path_is_set test_close test_step test_port_defaults test_handles_bad_filename test_check_communication_compatibility test_set_logging_level test_validate_path mock_glob_method test_launch_executable test_validate_path_empty create_registry test_basic_in_registry delete_binaries test_rpc_communicator_checks_port_on_create test_rpc_communicator_create_multiple_workers test_rpc_communicator_close test_batched_step_result_from_proto_raises_on_nan test_process_pixels test_process_visual_observation_bad_shape test_agent_behavior_spec_from_proto proto_from_steps_and_action test_batched_step_result_from_proto test_action_masking_continuous test_action_masking_discrete_1 generate_list_agent_proto generate_uncompressed_proto_obs test_batched_step_result_from_proto_raises_on_infinite generate_compressed_proto_obs test_vector_observation proto_from_steps test_action_masking_discrete generate_compressed_data test_action_masking_discrete_2 test_process_pixels_gray test_process_visual_observation test_raw_bytes test_int_channel test_message_float_list IntChannel test_engine_configuration test_message_bool test_message_string test_float_properties test_environment_parameters test_message_int32 test_stats_channel test_message_float32 test_decision_steps test_specs test_terminal_steps test_empty_terminal_steps test_action_generator test_empty_decision_steps test_timers decorated_func table_line ReleaseInfo validate_packages main NonTrivialPEP420PackageFinder main set_academy_version_string _escape_non_none extract_version_string print_release_tag_commands check_versions set_package_version set_version MagicMock create_mock_vector_steps UnityToGymWrapper sample create_mock_group_spec setup_mock_unityenvironment step MagicMock create_mock_vector_steps UnityToGymWrapper create_mock_group_spec setup_mock_unityenvironment MagicMock create_mock_vector_steps UnityToGymWrapper sample create_mock_group_spec setup_mock_unityenvironment step MagicMock create_mock_vector_steps UnityToGymWrapper sample reset create_mock_group_spec setup_mock_unityenvironment step MagicMock create_mock_vector_steps UnityToGymWrapper sample reset create_mock_group_spec setup_mock_unityenvironment step tuple CONTINUOUS range DISCRETE list array range BehaviorMapping convert_to_barracuda convert convert_to_onnx _make_frozen_graph _enforce_onnx_conversion convert_frozen_to_onnx info model_path tf_optimize make_model _get_output_node_names _get_input_node_names info brain_name optimize_graph _get_frozen_graph_node_names add _get_frozen_graph_node_names name add node set brain_name info set_verbosity ConfigProto join isdir print replaceFilenameExtension add_argument exit verbose source_file ArgumentParser target_file sqrt topologicalSort list hasattr layers addEdge Graph print inputs set len list hasattr layers print filter match trim_model compile data layers print tensors float16 replace layers dumps data dtype layers isinstance print name tensors inputs outputs shape zip array_without_brackets to_json globals Build array_equal pool reduce Build tanh mad tanh mul Build concat add sigmoid sub mad _ tanh mul Build concat add sigmoid mad print sorted keys is_action_discrete sum add_argument_group add_argument ArgumentParser resequence_and_append obs from_observations steps_from_proto vector_actions AgentBuffer append reset_agent vector_observations array visual_observations enumerate make_demo_buffer camera_resolutions load_demonstration behavior_spec_to_brain_parameters zip enumerate isdir isfile get_demo_files write SerializeToString _EncodeVarint len parse_args start_learning create_sampler_manager EngineConfig abspath parameter_randomization str TrainerController run_id num_envs create_environment_factory curriculum format no_graphics CONSTANT try_create_meta_curriculum init_weights resume TrainerFactory env_args max_steps optimizer SubprocessEnvManager deepcopy learning_rate random_sample print weights beta env_path epsilon join save_state join join pop SamplerManager MetaCurriculum try_restore_all_curriculum train_model seed API_VERSION load_model print debug run_training dumps randint set_log_level set_warnings_enabled warning add_timer_metadata as_dict __version__ DEBUG INFO get_version_string parse_command_line run_cli add_argument ArgumentParser from_dict experiment_config_path load_config fields_dict update items list check_and_structure structure register_structure_hook defaultdict dict_to_defaultdict register_structure_hook register_unstructure_hook structure get_timer_root reset_timers put _send_response StepResponse env_factory list _generate_all_results set_log_level get_and_reset_stats set_actions StatsSideChannel action set_configuration EngineConfigurationChannel external_brains payload set_float_parameter STEP EnvironmentParametersChannel items EnvironmentResponse EXTERNAL_BRAINS reset RESET step endswith len print HasField hasattr get_attr isinstance get_attr tensor_shape ndarray isinstance shape int_val bool_val float_val ListFields name ndarray isinstance str tensor_content ndarray product isinstance get_tensor_dtype print get_tensor_dims unpack int_val bool_val array float_val enter append add set Build mul sub insert Build tolist append range len locate_actual_output_node name find_tensor_by_name split locate_actual_output_node name lstm find_tensor_by_name find_forget_bias split get_layer_shape id Struct tensor get_layer_rank layer_ranks hasattr name patch_data rank input_shapes out_shapes input get_attr append replace_strings_in_list tensors embody astype op inputs zip enumerate print float32 patch_data_fn model_tensors map_ignored_layer_to_its_input co_argcount len items list hasattr get_tensors name print process_layer eval slow_but_stable_topological_sort ModelBuilderContext sort assign_ids pop range insert len layers verbose Struct process_model open print_known_operations fuse compress node GraphDef Model dims_to_barracuda_shape insert get_tensor_dims inputs MessageToJson ParseFromString cleanup_layers read memories print sort write trim summary print_supported_ops min_lesson_length join SACTrainer GhostTrainer PPOTrainer warning trainer_type isdir get update list items copy MemorySettings structure to_settings list items isinstance unstructure curriculum output_config_path remove_nones print write_to_yaml_file sampler convert_behaviors trainer_config_path parse_args get rcls list zeros_like size reversed range append discount_rewards Mock CameraResolution arange ones BehaviorSpec append array range ones AgentExperience append zeros sum range len vector_action_space_size pop number_visual_observations to_agentbuffer make_fake_trajectory vector_observation_space_size create_mock_brainparams create_mock_brainparams create_mock_brainparams create_mock_brainparams create_mock_brainparams zeros Mock Mock ActionInfo publish_trajectory_queue range create_mock_steps AgentProcessor empty create_mock_policy add_experiences Mock assert_has_calls ActionInfo publish_trajectory_queue range call create_mock_steps append AgentProcessor empty create_mock_policy add_experiences Mock assert_has_calls ActionInfo end_episode publish_trajectory_queue range call create_mock_steps append AgentProcessor empty create_mock_policy add_experiences AgentManager create_mock_policy Mock get_nowait AgentManagerQueue put Mock assert_any_call remove record_environment_stats AgentManager add_writer StatsReporter write_stats join remove _get_candidate_names convert _get_default_tempdir dirname abspath isfile next TrainerSettings join export_policy_model sess save_model graph create_policy_mock SerializationSettings model_path reset_default_graph brain_name TrainerSettings initialize_or_load NNPolicy BehavioralCloningSettings create_bc_module create_mock_3dball_brain update items list BehavioralCloningSettings create_bc_module create_mock_3dball_brain update items list BehavioralCloningSettings current_lr create_bc_module create_mock_3dball_brain update items list BehavioralCloningSettings create_bc_module create_mock_3dball_brain update items list BehavioralCloningSettings create_mock_banana_brain create_bc_module update items list BehavioralCloningSettings create_mock_banana_brain create_bc_module flatten list range len append range AgentBuffer resequence_and_append get_batch construct_fake_buffer assert_array make_mini_batch AgentBuffer reset_agent array resequence_and_append sample_mini_batch construct_fake_buffer AgentBuffer resequence_and_append construct_fake_buffer AgentBuffer resequence_and_append list construct_fake_buffer AgentBuffer truncate values load convert_behaviors main Mock assert_called_with Namespace remove_nones Curriculum Curriculum Curriculum load_demonstration demo_to_buffer dirname abspath load_demonstration demo_to_buffer dirname abspath dirname abspath dirname abspath mock_open BytesIO DemonstrationMetaProto write_delimited create_tf_graph brain_name setup_mock_brain load_weights init_load_weights zip assert_array_equal get_weights PPOTrainer create_policy GhostController GhostTrainer PPOTrainer subscribe_trajectory_queue advance put make_fake_trajectory BrainParameters from_name_behavior_id AgentManagerQueue add_policy brain_name create_policy GhostController GhostTrainer PPOTrainer simulate_rollout get_nowait advance _swap_snapshots setup_mock_brain publish_policy_queue BrainParameters from_name_behavior_id AgentManagerQueue add_policy brain_name create_policy clear safe_load MagicMock parse_command_line clear parse_command_line parse_command_line parse_command_line safe_load CurriculumSettings MetaCurriculum increment_lessons Mock MetaCurriculum assert_called_with increment_lessons assert_not_called MetaCurriculum assert_called_with MetaCurriculum assert_has_calls try_restore_all_curriculum MetaCurriculum SimpleEnvironment MetaCurriculum _check_environment_trains setup_mock_brain NNPolicy TrainerSettings join _set_step save_model initialize_or_load create_policy_mock _compare_two_policies list create_steps_from_brainparams evaluate brain agent_id assert_array_equal TrainerSettings list create_steps_from_brainparams evaluate brain agent_id create_policy_mock reset_default_graph TrainerSettings NNPolicy update_normalization to_agentbuffer make_fake_trajectory BrainParameters zeros range run MagicMock TrainerSettings basic_mock_brain BehaviorSpec get_action empty FakePolicy TrainerSettings MagicMock basic_mock_brain DecisionSteps get_action array FakePolicy TrainerSettings MagicMock basic_mock_brain ActionInfo DecisionSteps get_action array FakePolicy _convert_version_string setup_mock_brain evolve PPOOptimizer NNPolicy make_fake_trajectory update brain simulate_rollout _create_ppo_optimizer_ops_mock reset_default_graph update brain simulate_rollout _create_ppo_optimizer_ops_mock reset_default_graph update brain simulate_rollout _create_ppo_optimizer_ops_mock reset_default_graph items list get_trajectory_value_estimates to_agentbuffer _create_fake_trajectory _create_ppo_optimizer_ops_mock next_obs reset_default_graph assert_array_almost_equal array discount_rewards Mock brain_name _increment_step BrainParameters assert_called_with add_policy PPOTrainer _update_policy simulate_rollout brain_name MemorySettings setup_mock_brain add_policy PPOTrainer create_policy list values Mock brain_name make_brain_parameters add_policy PPOTrainer make_brain_parameters setup_mock_brain SACOptimizer PPOOptimizer NNPolicy simulate_rollout evaluate_batch brain brain simulate_rollout prepare_update _execute_model update_dict make_mini_batch policy BehavioralCloningSettings create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update create_optimizer_mock reward_signal_eval reward_signal_update TrainerSettings set_is_policy_updating FakeTrainer create_mock_brain end_episode list create_rl_trainer values items list construct_fake_buffer create_rl_trainer _clear_update_buffer create_rl_trainer set_is_policy_updating subscribe_trajectory_queue advance put make_fake_trajectory publish_policy_queue AgentManagerQueue get_nowait range assert_has_calls create_rl_trainer subscribe_trajectory_queue summary_freq checkpoint_interval put make_fake_trajectory publish_policy_queue advance AgentManagerQueue get_nowait range setup_mock_brain SACOptimizer NNPolicy update brain simulate_rollout create_sac_optimizer_mock reset_default_graph brain simulate_rollout create_sac_optimizer_mock update_reward_signals reset_default_graph SACTrainer save_model brain simulate_rollout num_experiences setup_mock_brain add_policy brain_name create_policy SACTrainer list Mock SACTrainer values make_brain_parameters add_policy brain_name create_policy SamplerManager sample_all sampler_config_1 sampler_config_2 SamplerManager SamplerManager sample_all incorrect_uniform_sampler incorrect_sampler_config list items RunOptions check_if_different TrainerSettings RunOptions structure structure print evolve SimpleEnvironment _check_environment_trains hyperparameters evolve SimpleEnvironment _check_environment_trains hyperparameters evolve SimpleEnvironment _check_environment_trains network_settings evolve SimpleEnvironment hyperparameters _check_environment_trains network_settings evolve MemoryEnvironment hyperparameters _check_environment_trains evolve SimpleEnvironment _check_environment_trains hyperparameters evolve SimpleEnvironment _check_environment_trains hyperparameters evolve SimpleEnvironment _check_environment_trains network_settings evolve SimpleEnvironment hyperparameters _check_environment_trains network_settings evolve MemoryEnvironment hyperparameters _check_environment_trains evolve SimpleEnvironment SelfPlaySettings _check_environment_trains evolve SimpleEnvironment SelfPlaySettings _check_environment_trains evolve SimpleEnvironment SelfPlaySettings _check_environment_trains evolve SimpleEnvironment SelfPlaySettings _check_environment_trains evolve SimpleEnvironment BehavioralCloningSettings _check_environment_trains simple_record evolve SimpleEnvironment BehavioralCloningSettings hyperparameters _check_environment_trains simple_record evolve SimpleEnvironment BehavioralCloningSettings hyperparameters _check_environment_trains simple_record clear assert_called_once_with Mock get_stats_summaries add_stat add_writer StatsReporter float range write_stats clear Mock add_property add_writer StatsReporter assert_called_once_with sleep TensorboardWriter StatsSummary write_stats close SubprocessEnvManager simple_env_factory _check_environment_trains default_config default_config close SubprocessEnvManager GhostController MagicMock GhostController TrainerController MagicMock assert_called_with MagicMock start_learning assert_called_once MagicMock assert_not_called start_learning assert_called_once MagicMock MagicMock assert_called_once MagicMock advance add assert_not_called behaviors BrainParametersMock behaviors BrainParameters generate TrainerFactory brain_name _load_config StringIO mkdir join handle_existing_directories join set_parameter_state LESSON_NUM load_state NOTAREALKEY get_parameter_state save_state append from_observations range ones items list to_agentbuffer add set make_fake_trajectory extract_stack filename get __old_np_array _check_no_float64 get _check_no_float64 __old_np_zeros get __old_np_ones _check_no_float64 join format print exit walk float check_coverage join remove mkdir rmdir exists documentElement getAttribute parse join clean_previous_results parse_results get_unity_executable_path exit returncode get_base_path copy2 init_venv add_argument ArgumentParser split strip run_standalone_build int time join init_venv override_config_file exit override_legacy_config_file get_base_path rename run_standalone_build run checkout_csharp_version exists get_base_output_path python run_training csharp exists join move get_unity_executable_path print makedirs dirname get_base_output_path run check_call check_call check_call list _override_config_dict values items list isinstance update list values check_call str format UnityToGymWrapper print step reset sample UnityEnvironment range reset UnityEnvironment close UnityToGymWrapper get_steps is_action_discrete EngineConfigurationChannel randn set_configuration_parameters discrete_action_branches len action_size any set_actions is_action_continuous column_stack join format basename replace glob debug getcwd normpath validate_environment_path debug format add setLevel getLogger basicConfig setLevel tuple vector_action_size mean reshape array data compressed_data reshape process_pixels shape array mean isnan array _raise_on_nan_and_inf sum is_action_discrete _generate_split_indices ones discrete_action_branches len astype _raise_on_nan_and_inf any cast split append _process_vector_observation bool _process_visual_observation array observation_shapes enumerate range len get_ident TimerStack perf_counter push items list merge reset method_handlers_generic_handler add_generic_rpc_handlers download_and_extract_zip get_local_binary_path_if_exists debug range glob hexdigest join get_tmp_dir join chmod gettempdir makedirs uuid4 join int str remove get_tmp_dir exists chmod print glob rmtree urlopen print_progress hexdigest print int min max uuid4 join str get_tmp_dir load_local_manifest urlopen UnityEnvironment close MockCommunicator UnityEnvironment MockCommunicator _executable_args UnityEnvironment MockCommunicator index get_steps obs close reset MockCommunicator zip UnityEnvironment observation_shapes len get_steps obs zip ones step close MockCommunicator set_actions zeros UnityEnvironment observation_shapes len UnityEnvironment close MockCommunicator validate_environment_path validate_environment_path launch_executable PermissionError set_log_level rmtree get_tmp_dir RemoteRegistryEntry register UnityEnvRegistry create_registry make close reset step range delete_binaries close RpcCommunicator close RpcCommunicator close RpcCommunicator list extend ObservationProto AgentInfoProto append prod range len fromarray uint8 BytesIO astype save ObservationProto generate_compressed_data extend shape ObservationProto shape tolist extend obs concatenate action_mask agent_id ObservationProto AgentInfoProto append generate_uncompressed_proto_obs proto_from_steps generate_compressed_data process_pixels rand generate_compressed_data process_pixels rand _process_vector_observation generate_list_agent_proto enumerate generate_compressed_proto_obs rand extend AgentInfoProto _process_visual_observation generate_uncompressed_proto_obs generate_compressed_proto_obs rand AgentInfoProto extend list sort CONTINUOUS agent_id BehaviorSpec steps_from_proto generate_list_agent_proto range BehaviorSpec steps_from_proto DISCRETE generate_list_agent_proto action_mask BehaviorSpec steps_from_proto DISCRETE generate_list_agent_proto action_mask BehaviorSpec steps_from_proto DISCRETE generate_list_agent_proto action_mask CONTINUOUS BehaviorSpec steps_from_proto generate_list_agent_proto action_mask BrainParametersProto behavior_spec_from_proto extend CONTINUOUS generate_list_agent_proto BehaviorSpec CONTINUOUS generate_list_agent_proto BehaviorSpec generate_side_channel_messages process_side_channel_message send_int IntChannel FloatPropertiesChannel process_side_channel_message generate_side_channel_messages get_property set_property uuid4 process_side_channel_message generate_side_channel_messages RawBytesChannel encode send_raw_data get_and_clear_received_messages len buffer read_bool append write_bool IncomingMessage range OutgoingMessage buffer write_int32 read_int32 IncomingMessage OutgoingMessage IncomingMessage write_float32 buffer read_float32 OutgoingMessage read_string write_string buffer IncomingMessage OutgoingMessage IncomingMessage buffer OutgoingMessage read_float32_list write_float32_list set_configuration channel_id EngineConfigurationChannel generate_side_channel_messages process_side_channel_message set_configuration_parameters RawBytesChannel read_float32 read_int32 IncomingMessage get_and_clear_received_messages default_config channel_id generate_side_channel_messages process_side_channel_message read_string set_float_parameter RawBytesChannel read_float32 read_int32 IncomingMessage EnvironmentParametersChannel IncomingMessage write_float32 write_string buffer write_int32 get_and_reset_stats on_message_received StatsSideChannel OutgoingMessage DecisionSteps action_mask empty BehaviorSpec TerminalSteps empty BehaviorSpec BehaviorSpec create_random_action enumerate BehaviorSpec create_empty_action set_gauge TimerStack startswith print find_packages find validate_packages remove replace frozenset endswith set add walk join print extract_version_string set values join format set_academy_version_string print set_package_version enumerate split print | <img src="docs/images/image-banner.png" align="middle" width="3000"/> # Unity ML-Agents Toolkit [](https://github.com/Unity-Technologies/ml-agents/tree/release_2_docs/docs/) [](LICENSE) ([latest release](https://github.com/Unity-Technologies/ml-agents/releases/tag/latest_release)) ([all releases](https://github.com/Unity-Technologies/ml-agents/releases)) **The Unity Machine Learning Agents Toolkit** (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents. Agents can be trained using reinforcement learning, imitation learning, neuroevolution, or other machine learning methods through a | 3,567 |
sechetbot/Gatys_torch | ['style transfer'] | ['A Neural Algorithm of Artistic Style'] | Gatys_torch.py gram show_images get_model_and_losses get_optimiser Normalise Contentloss transfer_style load_image Styleloss to unsqueeze open show subplot int str imshow figure cpu enumerate len t size mm view children format isinstance AvgPool2d Sequential len MaxPool2d add_module Conv2d Contentloss ReLU append to range Styleloss detach LBFGS time format get_optimiser print clamp step get_model_and_losses | Gatys_torch
A simple implementation of "A Neural Algorithm of Artistic Style", by Leon Gatys, Alexander Ecker and Matthias Bethge
The paper can be found at: https://arxiv.org/pdf/1508.06576.pdf
This tutorial was followed: https://pytorch.org/tutorials/advanced/neural_style_tutorial.html
This implementation also inputs a total variation loss as Gatys et al. did, which was not implemented in the tutorial.
| 3,568 |
seijimaekawa/NAGC | ['graph clustering'] | ['Non-linear Attributed Graph Clustering by Symmetric NMF with PU Learning'] | NAGC/init_kmeans.py NAGC/VU_init.py NAGC/evaluate.py NAGC/build_graph.py NAGC/NAGC_class.py for_mat preprocess build_graph for_cites_contents evaluate cal_modularity cal_entropy ARI cal_nmi clustering init_kmeans initialize_U NAGC VU_init print for_mat for_cites_contents str list int toarray print map preprocess nonzero zeros loadmat range len str int glob print preprocess nonzero zeros float range len sum split_entropy cal_modularity cal_dif_entropy append cal_entropy ARI cal_nmi len zeros sum range range str list print len set sqrt append sum range count cluster_centers_ len labels_ append max range fit norm append zeros sum range clustering str list writer build_graph print close index set initialize_U open writerows append ARI range len str transpose random array | # NAGC Non-Linear Attributed Graph Clustering by Symmetric NMF with PU Learning ## Requirements - numpy >= 1.15.1 - sklearn >= 0.19.1 (for kmeans and evaluation) ## Demo - See the notebook NAGC_example.ipynb for demo | 3,569 |
seitalab/GDGAN.pytorch | ['data augmentation'] | ['General-to-Detailed GAN for Infrequent Class Medical Images'] | classifier/networks/resnet.py logger.py GDGAN/gdgan.py GDGAN/gdgan_config.py classifier/classifier.py GDGAN/networks/stage2/model.py classifier/networks/densenet.py GDGAN/networks/stage1/model.py classifier/networks/vgg.py datasets.py main.py metrics/fid/fid_score.py metrics/inception_score.py utils.py metrics/fid/inception.py common_config.py validate_args ChestXrayDataset Logger main init_weights valid save_model test_base test main parse_args train DenseNet201 DenseNet169 DenseNet121 ResNet18 ResNet34 ResNet50 ResNet101 ResNet152 VGG16 VGG11_bn VGG16_bn VGG13 VGG13_bn VGG19 VGG19_bn VGG11 GDGAN validate_args create_subparser generator discriminator generator discriminator inception_score fid InceptionV3 strftime run validate_args GDGAN xavier_uniform_ weight fill_ add_argument ArgumentParser criterion backward model zero_grad item step enumerate add_scalar add_scalar test_base add_scalars add_pr_curve enumerate add_scalar test_base add_scalars add_pr_curve enumerate eval empty roc_auc_score join save state_dict date_str valid save_model ChestXrayDataset DataLoader DataParallel ReduceLROnPlateau Logger dataset VGG19 BCEWithLogitsLoss VGG19_bn ResNet152 list ResNet18 SubsetRandomSampler Adam strftime epochs ResNet50 VGG13_bn VGG13 parse_args to range VGG11 VGG16 VGG16_bn VGG11_bn Compose ResNet34 test ResNet101 DenseNet201 join DenseNet121 print save_history parameters DenseNet169 train step len add_argument add_parser exp entropy reshape mean DataLoader repeat eval Upsample append zeros to range len | # GDGAN.pytorch A PyTorch implementation of https://arxiv.org/abs/1812.01690 ## Dependencies - PyTorch 1.0.0 or later - numpy - scipy - sklearn - [tensorboardX](https://github.com/lanpa/tensorboardX) - see the link for more dependencies ## Data | 3,570 |
sekiguchi92/SpeechEnhancement | ['speech enhancement'] | ['Semi-Supervised Multichannel Speech Enhancement With a Deep Speech Prior', 'Fast Multichannel Source Separation Based on Jointly Diagonalizable Spatial Covariance Matrices'] | src/separation/FastMNMF2.py src/Base.py src/separation/FastMNMF1.py src/joint_separation_dereverberation/AR_FastMNMF2.py MultiSTFT Base MultiISTFT AR_FastMNMF2 FastMNMF1 FastMNMF2 stft shape range zeros transpose shape zeros range istft | # Sound Source Separation Tools for multi-channel sound source separation and dereverberation. ## News * I published new paper entitled ["Autoregressive Moving Average Jointly-Diagonalizable Spatial Covariance Analysis for Joint Source Separation and Dereverberation, IEEE/ACM TASLP2022"](https://ieeexplore.ieee.org/abstract/document/9829286). * FastBSSD.py performs joint source separation and dereverberation. You can select speech model from NMF, DNN, and FreqInv models, noise model from NMF and TimeInv models, and reverberation model from AR, MA, ARMA, and None. Please check my paper for details. * I also published another paper entitled ["Direction-aware adaptive online neural speech enhancement with an augmented reality headset in real noisy conversational environments, IROS2022](https://arxiv.org/abs/2207.07296). ## Method list ### Source separation * FastMNMF1 * FastMNMF2 | 3,571 |
sekiguchi92/eusipco2019 | ['speech enhancement'] | ['Fast Multichannel Source Separation Based on Jointly Diagonalizable Spatial Covariance Matrices'] | Jointly_Diagonalizable_FullRank_Model/FastMNMF_DP.py Jointly_Diagonalizable_FullRank_Model/FastFCA.py CupyLibrary/cupy_matrix_inverse.py Jointly_Diagonalizable_FullRank_Model/configure_FastModel.py DeepSpeechPrior/network_VAE.py DeepSpeechPrior/configure_VAE.py Jointly_Diagonalizable_FullRank_Model/FastMNMF.py DeepSpeechPrior/make_dataset_wsj0.py DeepSpeechPrior/train.py _get_ld _as_batch_mat inv_gpu_batch _mat_ptrs make_dataset vad VAE train_VAE FastFCA FastMNMF FastMNMF_DP Z_link shape ptr arange len argmin _get_ld dgetriBatched dgetrfBatched cgetriBatched len ptr cgetrfBatched empty_like copy sgetrfBatched cublas_handle sgetriBatched empty zgetriBatched zgetrfBatched _mat_ptrs ones mean abs max fftconvolve read format dump progressbar print stft glob hstack open isfile append abs array vad data permutation progressbar list get_loss_func use setup VAE Adam copyfile append range update format inf asarray float gamma T print Variable isfile save_npz to_gpu len | # eusipco2019 The code for multi-channel speech enhancement (and source separation) which will be presented at EUSIPCO2019. The latest version is available in https://github.com/sekiguchi92/SpeechEnhancement. - FastFCA is a method for general source separation. In fact, it can be available only for speech enhancement because of the strong initial value dependency. - FastMNMF is a general source separation method which integrate NMF-based source model into FastFCA. - FastMNMF-DP is a method which integrates deep speech prior into FastMNMF, and is for speech enhancement. ## Requirement * Tested on Python3.6 * numpy * pickle | 3,572 |
selimfirat/pysad | ['anomaly detection'] | ['PySAD: A Streaming Anomaly Detection Framework in Python'] | tests/evaluation/test_windowed_metrics.py pysad/models/exact_storm.py pysad/models/kitnet_model/KitNET.py pysad/core/__init__.py pysad/statistics/median_meter.py pysad/models/kitnet_model/corClust.py examples/example_ensemble.py tests/stats/test_statistics.py tests/transform/preprocessing/test_instance_unit_norm_scaler.py pysad/transform/preprocessing/instance_unit_norm_scaler.py pysad/evaluation/metrics.py pysad/statistics/__init__.py examples/example_statistics.py pysad/models/median_absolute_deviation.py tests/transform/postprocessing/test_postprocessors.py pysad/transform/ensemble/ensemblers.py examples/example_probability_calibration.py pysad/statistics/count_meter.py pysad/statistics/min_meter.py tests/models/conftest.py tests/models/test_pyod_integrations.py tests/models/test_models.py pysad/models/random_model.py pysad/statistics/max_meter.py setup.py pysad/statistics/abs_statistic.py _build_readme.py tests/transform/projection/test_sklearn_projectors.py tests/evaluation/test_metrics.py pysad/transform/probability_calibration/conformal_prediction.py tests/models/test_standard_absolute_deviation.py pysad/models/robust_random_cut_forest.py docs/conf.py examples/example_pyod_integration.py pysad/models/kitnet_model/__init__.py tests/transform/projection/conftest.py pysad/core/base_transformer.py pysad/transform/preprocessing/identity_scaler.py pysad/utils/__init__.py pysad/version.py pysad/core/base_statistic.py pysad/utils/pandas_streamer.py pysad/transform/__init__.py pysad/models/integrations/one_fit_model.py pysad/models/relative_entropy.py pysad/statistics/average_meter.py pysad/statistics/variance_meter.py pysad/models/rs_hash.py examples/example_usage.py pysad/models/integrations/pyod_model.py tests/transform/ensemble/test_ensemblers.py pysad/transform/projection/streamhash_projector.py pysad/transform/probability_calibration/gaussian_tail.py pysad/models/kitnet.py pysad/models/perfect_model.py pysad/transform/postprocessing/postprocessors.py pysad/core/base_streamer.py pysad/models/__init__.py tests/models/test_perfect_model.py tests/transform/preprocessing/test_instance_standard_scaler.py pysad/transform/projection/random_projector.py pysad/transform/postprocessing/running_postprocessors.py pysad/transform/postprocessing/__init__.py pysad/models/integrations/__init__.py tests/transform/preprocessing/test_identity_scaler.py pysad/models/xstream.py pysad/transform/preprocessing/instance_standard_scaler.py pysad/transform/preprocessing/__init__.py pysad/evaluation/__init__.py pysad/statistics/sum_meter.py pysad/models/kitnet_model/utils.py pysad/utils/array_streamer.py pysad/transform/ensemble/__init__.py pysad/statistics/sum_squares_meter.py pysad/core/base_metric.py pysad/core/base_model.py pysad/models/loda.py pysad/models/loop.py tests/transform/projection/test_streamhash_projector.py pysad/evaluation/windowed_metric.py pysad/core/base_postprocessor.py pysad/models/iforest_asd.py pysad/transform/probability_calibration/__init__.py pysad/models/integrations/reference_window_model.py pysad/utils/data.py tests/transform/calibration/test_calibrators.py pysad/models/kitnet_model/dA.py pysad/models/half_space_trees.py pysad/models/knn_cad.py pysad/utils/window.py pysad/__init__.py pysad/models/standard_absolute_deviation.py examples/example_usage_short.py pysad/models/null_model.py pysad/statistics/running_statistic.py pysad/transform/projection/__init__.py BaseMetric BaseModel BasePostprocessor UnivariateStatistic BaseStatistic BaseStreamer BaseTransformer PrecisionMetric AUPRMetric AUROCMetric RecallMetric BaseSKLearnMetric WindowedMetric ExactStorm HalfSpaceTrees IForestASD KitNet KNNCAD LODA LocalOutlierProbability MedianAbsoluteDeviation NullModel PerfectModel RandomModel RelativeEntropy RobustRandomCutForest RSHash StandardAbsoluteDeviation xStream _Chain _HSChains OneFitModel PYODModel ReferenceWindowModel corClust dA dA_params KitNET tanh dtanh pdf sigmoid softmax dReLU dsigmoid ReLU invLogCDF rollmean AbsStatistic AverageMeter CountMeter MaxMeter MedianMeter MinMeter RunningStatistic SumMeter SumSquaresMeter VarianceMeter MedianScoreEnsembler AverageOfMaximumScoreEnsembler AverageScoreEnsembler MaximumOfAverageScoreEnsembler PYODScoreEnsembler MaximumScoreEnsembler MaxPostprocessor ZScorePostprocessor AveragePostprocessor MedianPostprocessor RunningMaxPostprocessor RunningAveragePostprocessor RunningMedianPostprocessor RunningZScorePostprocessor IdentityScaler InstanceStandardScaler InstanceUnitNormScaler ConformalProbabilityCalibrator GaussianTailProbabilityCalibrator BaseSKLearnProjector GaussianRandomProjector SparseRandomProjector StreamhashProjector ArrayStreamer Data PandasStreamer UnlimitedWindow Window get_minmax_array get_minmax_scalar _iterate fix_seed test_all_correct test_none_correct helper_test_all_metrics test_all_correct test_none_correct helper_test_all_metrics test_path test_fit_and_score_separately helper_test_model test_unsupervised_models test_perfect_model test_reference_window test_one_fit test_standard_absolute_deviation test_all_zero_stats test_stats_with_batch_numpy test_calibrators test_ensemblers helper_get_scores test_postprocessors_shape test_identity_scaler test_instance_standard_scaler test_instance_unit_norm_scaler test_path helper_test_projector test_sparse_random_projector test_gaussian_random_projector test_streamhash_projector exp max seed min max min max ArrayStreamer iter update items list zip metric_cls enumerate randint helper_test_all_metrics copy fix_seed randint helper_test_all_metrics copy fix_seed WindowedMetric items list rand fix_seed helper_test_model fit_score model_cls score rand xStream fix_seed fit print rand fit_score fix_seed randint PerfectModel update join Data ReferenceWindowModel print shuffle get_data AUROCMetric fit_partial iter ArrayStreamer score_partial append update join Data print shuffle get_data AUROCMetric fit_partial OneFitModel iter ArrayStreamer score_partial append score rand StandardAbsoluteDeviation fix_seed fit update get remove list items RunningStatistic AbsStatistic fix_seed zeros range stat_cls update get remove list items rand RunningStatistic AbsStatistic fix_seed range stat_cls items list rand fix_seed calibrator_cls fit_transform fit items list ensembler_cls rand transform fit_transform fit rand items list helper_get_scores postprocessor_cls fit_transform rand transform IdentityScaler fit_transform fit rand transform InstanceStandardScaler fit_transform fit InstanceUnitNormScaler rand transform fit_transform fit GaussianRandomProjector helper_test_projector helper_test_projector SparseRandomProjector join Data shuffle get_data fit_transform join Data shuffle get_data fit_transform StreamhashProjector | selimfirat/pysad | 3,573 |
selkerdawy/joint-pruning-monodepth | ['depth estimation', 'monocular depth estimation'] | ['Lightweight Monocular Depth Estimation Model by Joint End-to-End Filter pruning'] | model_inference.py monodepth_dataloader.py sample_code.py MonodepthModel string_length_tf MonodepthDataloader post_process_disparity ensure_dir main test_video makedirs shape linspace meshgrid fliplr clip trainable_variables FONT_HERSHEY_SIMPLEX Saver vstack VideoWriter round VideoWriter_fourcc Session run restore sorted squeeze dir placeholder MonodepthModel shape COLORMAP_JET imread range start_queue_runners format LINE_AA imresize glob astype stack ConfigProto local_variables_initializer enumerate load time uint8 print applyColorMap putText write float32 Coordinator global_variables_initializer test_video monodepth_parameters | # joint-pruning-monodepth Lightweight Monocular Depth Estimation Model by Joint End-to-End Filter pruning. # **Demo** [Sample video](https://www.youtube.com/watch?v=gSkuJB7Or5w) showing the pruned vgg model and the baseline [monodepth vgg](https://github.com/mrharicot/monodepth "monodepth vgg") running on GTX 1080 Ti with 60 and 33 frame per second respectively; The demo is slowed down for demonstration only. The demo shows that even with more than 80% compression rate, the pruned network shows both qualitatively and quantitatively small drop in accuracy compared to the baseline network. # Inference Sample code for inference using the pruned vgg model trained on eigen split is provided, usage: ```bash python sample_code.py --dir PATH/TO/KITTI/2011_09_26/2011_09_26_drive_0064_sync/image_02/data/ --checkpoint_path model/model-0.data-00000-of-00001 ``` **Environment** | 3,574 |
semiquark1/boruvka-superpixel | ['superpixels', 'semantic segmentation'] | ['Superpixel Hierarchy'] | src/setup.py src/boruvkasupix.py main boruvkasupix parse_arguments build_2d BoruvkaSuperpixel average zeros imread imsave parse_args add_argument ArgumentParser boruvkasupix parse_arguments | # Boruvka Superpixel This code is a reimplementation of the superpixel segmentation based on Boruvka's minimum spanning tree algorithm: Xing Wei, Qingxiong Yang, Yihong Gong, Narendra Ahuja, and Ming-Hsuan Yang: _Superpixel Hierarchy_, IEEE Transactions on Image Processing *27*, 4838 (2018) [journal](https://doi.org/10.1109/TIP.2018.2836300) [arXiv](https://arxiv.org/pdf/1605.06325.pdf) ## build python module - make module *(in root directory of the repo)* this creates `pybuild/boruvka_superpixel.*.so`, which is to be imported from | 3,575 |
senlinuc/caffe_ocr | ['optical character recognition', 'scene text recognition'] | ['An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition'] | examples/pycaffe/layers/pascal_multilabel_datalayers.py examples/finetune_flickr_style/assemble_data.py tools/extra/resize_and_crop_images.py tools/extra/summarize.py src/caffe/test/test_data/generate_sample_data.py examples/pycaffe/tools.py tools/extra/parse_log.py 3rdparty/include/google/protobuf/arena_nc_test.py examples/pycaffe/caffenet.py tools/extra/extract_seconds.py examples/web_demo/exifutil.py examples/pycaffe/layers/pyloss.py examples/web_demo/app.py ArenaNcTest download_image make_net max_pool caffenet conv_relu fc_relu CaffeSolver SimpleTransformer print_info check_params PascalMultilabelDataLayerSync load_pascal_annotation BatchLoader EuclideanLossLayer start_tornado start_from_terminal embed_image_html classify_upload index allowed_file ImagenetClassifier classify_url open_oriented_im apply_orientation get_start_time extract_seconds extract_datetime_from_line get_log_created_year write_csv parse_log fix_initial_nan_learning_rate save_csv_files main parse_args parse_line_for_net_output ResizeCropImagesMapper PILResizeCrop OpenCVResizeCrop print_table printed_len summarize_net main read_net format_param imread urlretrieve Convolution InnerProduct Data SoftmaxWithLoss LRN Accuracy max_pool InnerProduct conv_relu fc_relu Dropout join list getElementsByTagName get_data_from_tag csr_matrix dict zip zeros float range enumerate len print format get read info load_image classify_image StringIO join replace info secure_filename save filename open_oriented_im classify_image fromarray replace astype save resize StringIO items listen HTTPServer format print start WSGIContainer update start_tornado add_option OptionParser debug port parse_args ImagenetClassifier forward run hasattr _getexif astype float32 tile apply_orientation open transpose int rfind datetime split getctime year strip extract_datetime_from_line get_start_time total_seconds strip write get_log_created_year close extract_datetime_from_line open float get_log_created_year compile fix_initial_nan_learning_rate search group OrderedDict append float join basename write_csv print excel add_argument ArgumentParser parse_log save_csv_files output_dir logfile_path parse_args NetParameter decay_mult format name lr_mult append print zip len get join str format convolution_param list setdefault param kernel_size map set top bottom append type module layer enumerate print_table add_argument ArgumentParser filename summarize_net read_net | senlinuc/caffe_ocr | 3,576 |
senya-ashukha/sparse-vd-pytorch | ['sparse learning'] | ['Variational Dropout Sparsifies Deep Neural Networks'] | logger.py Logger | # Sparse Variational Dropout Sparse Variational Dropout a Minimal Working Example, Variational Dropout Sparsifies Deep Neural Networks (https://arxiv.org/pdf/1701.05369.pdf). <p align="center"> <img height="640" src="neurons.png"/> </p> The sample of neuron weights of shape 10x10 from the first layer. Original repo https://github.com/ars-ashuha/variational-dropout-sparsifies-dnn. # Citation If you found this code useful please the original paper ``` | 3,577 |
seoungwugoh/opn-demo | ['video inpainting'] | ['Onion-Peel Networks for Deep Video Completion'] | models/TCN.py demo_video.py models/OPN.py demo_group_image.py models/common.py utils/helpers.py get_arguments get_arguments F_upsample3d ConvGRU pad_divide_by F_upsample GatedConv2d MaskedRead Decoder Encoder OPN TCN Decoder Encoder overlay_davis init_He ToCuda freeze_BN ToCudaVariable add_argument ArgumentParser append pad append upsample stack range atleast_2d ones reshape copy shape unique array binary_dilation isinstance Conv2d bias kaiming_normal_ modules BatchNorm2d weight constant_ BatchNorm2d modules isinstance parameters is_available is_available | # Onion-Peel Networks for Deep Video Completion ### Seoung Wug Oh, Sungho Lee, Joon-Young Lee, Seon Joo Kim ### ICCV 2019 [[paper]](http://openaccess.thecvf.com/content_ICCV_2019/html/Oh_Onion-Peel_Networks_for_Deep_Video_Completion_ICCV_2019_paper.html) [](https://www.youtube.com/watch?v=bxerAkHAttE "Onion-Peel Networks for Deep Video Completion") ### - This repository contains a demo software for OPN with following applications 1) Reference guided image completion (group photo inpainting) 2) Video completion ### - Requirements - python 3.6 | 3,578 |
sephiroce/srf | ['speech recognition'] | ['Sequential Routing Framework: Fully Capsule Network-based Speech Recognition'] | tfsr/model/cnn_encoder.py egs/script/parsing.py tfsr/model/cnn_stride_encoder.py tfsr/helper/data_helper.py tfsr/data/save_speech_data.py tfsr/model/lstm_encoder.py tfsr/data/load_speech_data.py tfsr/trainer_sr.py tfsr/helper/train_helper.py tfsr/helper/common_helper.py tfsr/model/block.py tfsr/helper/model_helper.py tfsr/trainer_tf.py tfsr/utils/log2utt_wsj.py tfsr/model/sequence_router_lowmemory.py tfsr/model/sequence_router_naive.py tfsr/model/sequence_router.py tfsr/utils/average_ckpt_sr.py tfsr/model/sequence_router_einsum.py tfsr/model/attention.py tfsr/utils/average_ckpt_tf.py tfsr/helper/misc_helper.py tfsr/model/feed_forward.py tfsr/utils/log2utt.py main process_valid_step process_train_step process_test_step process_test_step main process_valid_step process_train_step ConvEncoder finalize_ds map_data_for_transformer_fn create_ds create_ds_batch_for_test create_ds_batch_for_train create_ds_bucket map_data_for_transformer_utt_id_fn main shuffle_records convert_to_tfrecord ExitCode Constants Logger main Tag ParseOption create_ds_for_evaluation get_data_len create_ds_for_training Util create_look_ahead_mask get_pos_enc feat_mask create_combined_mask create_padding_mask get_init create_attention_penalty feat_mask2 AttentionPenalty get_decoder_self_attention_bias get_padding_bias CustomSchedule _loss_sm_label loss_function_w2v _loss_sm_neighbor get_bucket_info ppl prep_process loss_ce shuffle_data main compute_wer loss_ewerr get_optimizer MultiHeadAttention scaled_dot_product_attention main main EncoderBlock DecoderBlock EncoderMFBlock CNNEncoder CNNStrideEncoder main PointWiseFeedForwardNetwork LstmEncoder length CapsulationLayer squash SequenceRouter SequenceRouter SequenceRouter main main trainable_variables update_state reduce_max float32 gradient reduce_sum apply_gradients cast zip update_state model ctc_loss reduce_max ceil ctc_beam_search_decoder model print transpose reduce_max train_batch_buckets path_base with_options create_ds_for_training Options create_ds_for_evaluation logger DATA path_vocab Sum get_file_path num_replicas_in_sync get_data_len info Mean prepare_device load_vocab MirroredStrategy args prep_process create_eap ceil prep_process create_eap prep_process create_eap ceil interleave filter list_files map cache repeat shuffle prefetch glob padded_batch create_ds padded_batch create_ds bucket_by_sequence_length create_ds apply path_base VALID rename all_exist critical path_test_json path_vocab prep_data_shard exit append path_valid_json get_file_line feat_type TEST range path_wrt_tfrecord get_file_path path_train_json make_dir close TRAIN currentTimeMillis info zip join prep_data_name INVALID_OPTION INVALID_FILE_PATH load_vocab feat_dim remove shuffle rename tf_record_iterator append path_cmvn_ptrn convert_to_tfrecord load_cmvn decoding_from_npy len printProgress TRAIN VALID __version__ currentTimeMillis shuffle_records TEST enumerate NOTSET ERROR CRITICAL WARN DEBUG INFO argv ParseOption join path_train_ptrn glob prep_data_num_valid path_base path_valid_ptrn prep_data_num_train sum path_test_ptrn prep_data_num_test join create_ds_batch_for_test map path_base map_data_for_transformer_utt_id_fn info path_test_ptrn join path_train_ptrn map_data_for_transformer_fn get_bucket_info map path_base create_ds_batch_for_train path_valid_ptrn create_ds_bucket train_batch_dynamic info train_batch_frame exp concat float32 log expand_dims cast float range float32 cast equal ones band_part create_look_ahead_mask create_padding_mask sequence_mask cast int32 ceil einsum sequence_mask cast int32 ceil einsum model_ap_encoder model_ap_encdec model_ap_scale model_ap_width_stripe model_ap_width_zero info AttentionPenalty model_ap_decoder constant one_hot loss_object logical_not pad cast CategoricalCrossentropy equal loss_object BinaryCrossentropy permutation len squeeze reduce_sum sequence_mask sparse_softmax_cross_entropy_with_logits exp print reshape multiply float32 reduce_sum shape cast int32 tile expand_dims compute_wer einsum pop int reversed floor append range len count_nonzero one_hot print squeeze reduce_max size reduce_sum assemble_to_words edit_distance assert_equal cast int32 to_dense expand_dims argmax values reduce_max create_combined_mask get_padding_bias show constant CustomSchedule plot xlabel print temp_learning_rate_schedule get_bucket_info ylabel assert_equal round compute_wer range dropout print float32 matmul plot_attention_weights sqrt shape cast softmax MultiHeadAttention set_printoptions shape uniform print_out temp_mha EncoderBlock sample_encoder_layer sample_decoder_layer DecoderBlock PointWiseFeedForwardNetwork sqrt square reduce_sum square reduce_sum SRFL model endswith SRFE LstmEncoder save CheckpointManager get_optimizer SRFN critical set_weights exists checkpoints list CNNEncoder ones path_ckpt append get_weights zip CNNStrideEncoder Checkpoint expect_partial rmtree array model_conv_is_mp train_inp_dropout model_dimension model_conv_filter_num model_conv_layer_num model_initializer model_att_head_num model_inner_dim train_res_dropout train_att_dropout train_inn_dropout feat_dim model_encoder_num ConvEncoder | # Supplementary files for the sequential routing framework - An author of this git repo: Kyungmin Lee ([email protected]) - Git: https://github.com/sephiroce/srf - DOI: https://doi.org/10.1016/j.csl.2021.101228 ## Highlights - Capsule network only structures can successfully map sequences to sequences - Mappings are refined by initializing routing iteration based on the previous output - Sequence-wise routing iteration allows for non-iterative inference - Structures of capsule network are more important than the number of parameters - Top layer capsules become similar to the capsule corresponding to a sequence label | 3,579 |
sepidehhosseinzadeh/Fast-Shadow-Detection | ['shadow detection'] | ['Fast Shadow Detection from a Single Image Using a Patched Convolutional Neural Network'] | my_canny.py main_fast_shadow_detection.py test_ucf_dataset.py test.py main_fast_shadow_detection_p3.py unpool.py shape.py gkern data_aug patches_extract_all load_data Logger cnn_pred_mask patch_extract gkern data_aug patches_extract_all load_data Logger cnn_pred_mask patch_extract canny_edge_on_mask canny_edge FlattenLayer PadLayer ReshapeLayer DimshuffleLayer gkern data_aug patches_extract_all load_data Logger cnn_pred_mask patch_extract Unpool2DLayer transpose argwhere nonzero randint len arange shuffle empty patch_extract range len randint range swapaxes choice outer sqrt linspace cdf sum diff floor max exists count list transpose append range predict flat imsave mean mkdir int time print reshape min argsort zeros amax len uint8 print astype float32 canny_edge_on_mask isfile append zeros imread listdir len mean canny canny canny_edge | # Fast Shadow Detection from a Single Image Using a Patched CNN This code is for the paper: S Hosseinzadeh, etc. "Fast Shadow Detection from a Single Image Using a Patched Convolutional Neural Network", Proceedings of the IEEE/IROS 2018, https://arxiv.org/abs/1709.09283.   ## Generating The Shadow Prior Map Images * These images are used as image-level prior that are defined in line 44 of main_fast_shadow_detection.py. * Install Paired_Region_Prob_Map using README in the folder. Run Paired_Region_Prob_Map/deshadow_driver.m by MATLAB * Reference paper http://dhoiem.cs.illinois.edu/publications/pami12_shadow.pdf ## Dependencies: 1. nolearn | 3,580 |
seraphinatarrant/plan-write-revise | ['story generation'] | ['Plan, Write, and Revise: an Interactive System for Open-Domain Story Generation'] | pytorch_src/weight_drop.py pytorch_src/locked_dropout.py server/system3.py pytorch_src/pool_ending_classifier.py pytorch_src/decoder/decoders.py server/system_template.py pytorch_src/utils.py pytorch_src/generate_original.py pytorch_src/train_classifier.py pytorch_src/cnn_context_classifier.py pytorch_src/data.py pytorch_src/decoder/StaticCoefficientModel.py pytorch_src/splitcross.py server/web_server.py pytorch_src/embed_regularize.py pytorch_src/generate.py pytorch_src/decomposable_attention_classifier.py pytorch_src/interactive_generate.py pytorch_src/model.py server/system2.py pytorch_src/context_scorer.py pytorch_src/decoder/candidate.py server/system1_sampling.py server/system1_beam.py CNNContextClassifier ContextScorer Dictionary Corpus DecomposableAttentionClassifier embedded_dropout log_sum_exp evaluate find_vector_substitute to_ints read_scorers read_gold_storylines check_for_oov preprocess to_str generate replace_oovs to_tensor find_wordnet_substitute LockedDropout RNNModel PoolEndingClassifier SplitCrossEntropyLoss compute_loss repackage_hidden cosine_sim load_pickle get_batch load_model read_w2v truncate_word_vec make_vocab init_nlp_model batchify WeightDrop Candidate logprobs BeamSearchDecoder BeamDecoder bool_partition BeamRerankDecoder normalize_score concat_hidden StaticCoefficientModel System1_Generator System1_Generator System2_Generator System3_Generator Story_Generator read_root initialize_generators start_storyline_generation get_response collab_storyline system_worker read_interactive start_generate_interactive_story generate write_auto_txt generate_story start_collab_storyline generate_storyline read_index initialize_generator start_generation start_generate_story generate_interactive_story write_interactive_txt embedding max_norm sparse padding_idx norm_type scale_grad_by_freq expand_as weight exp isinstance squeeze sum max data get_batch view LongTensor model batchify defaultdict get LongTensor len cuda enumerate exp decoder fill_ model add multinomial div cuda item append range long init_hidden len tokenizer list filter pop list format max_depth hyponyms lemma_names print name popleft extend hypernyms choice definition filter deque synsets vector cosine_sim format has_vector print nlp len format find_vector_substitute print len range find_wordnet_substitute model margin_ranking_loss margin_loss_function ranking_loss loss_function cuda load add_special_case dot argmax divide format print set zeros len Tensor isinstance size cuda narrow contiguous min view len cpu eval cuda print read_w2v load_pickle word2idx append tuple range data decoder model Variable t cuda init_hidden len get join int get_response format start_generation perf_counter float split get join int get_response format perf_counter start_storyline_generation float split get int start_collab_storyline get_response format perf_counter float split get get_response format start_generate_interactive_story print perf_counter get_json float split get get_response format start_generate_story perf_counter float split get_json get_json start Process Queue initialize_generator System3_Generator System1_Generator System2_Generator put put put append print range put put get generate_response generate_storyline collab_storyline story_generator_class put generate_interactive_story generate_story get | # Plan-Write-Revise This repository contains code for the [Plan, Write, Revise](https://arxiv.org/abs/1904.02357) paper. Please cite the work if you use it. `@inproceedings{GoldfarbTarrant2019PlanWA, title={Plan, Write, and Revise: an Interactive System for Open-Domain Story Generation}, author={Seraphina Goldfarb-Tarrant and Haining Feng and Nanyun Peng}, year={2019} }` A working version of this same code and demo can be found at [here](http://cwc-story.isi.edu/) as used in the paper. | 3,581 |
serenera/Serenera | ['word embeddings'] | ['Utilizing Neural Networks and Linguistic Metadata for Early Detection of Depression Indications in Text Sequences'] | my_flask_app/venv/lib/python3.6/site-packages/jinja2/constants.py my_flask_app/venv/lib/python3.6/site-packages/flask/__init__.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/debug/__init__.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/timed.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/saveopts.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/logging.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/exceptions.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/sessions.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/base_request.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/freeze.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/monkey.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/upload.py my_flask_app/venv/lib/python3.6/site-packages/pip/_vendor/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/py31compat.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/package_index.py my_flask_app/venv/lib/python3.6/site-packages/pip/compat/dictconfig.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/pep425tags.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/shared_data.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/json.py my_flask_app/venv/lib/python3.6/site-packages/pip/req/req_install.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/bdist_wininst.py my_flask_app/venv/lib/python3.6/site-packages/flask/wrappers.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/lint.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/sdist.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/asyncfilters.py my_flask_app/venv/lib/python3.6/site-packages/pip/vcs/mercurial.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/auth.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/glibc.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/completion.py my_flask_app/venv/lib/python3.6/site-packages/flask/app.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/runtime.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/py36compat.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/unicode_utils.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/build_clib.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/dist_info.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/fixers.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/url_safe.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/exceptions.py my_flask_app/venv/lib/python3.6/site-packages/pip/vcs/__init__.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/nativetypes.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/parser.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/_reloader.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/ui.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/deprecation.py gethistory.py setup.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/proxy_fix.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/extern/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/__init__.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/dispatcher.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/hash.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/compiler.py my_flask_app/venv/lib/python3.6/site-packages/click/types.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/filesystem.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/extern/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pip/operations/freeze.py my_flask_app/venv/lib/python3.6/site-packages/flask/json/__init__.py my_flask_app/venv/lib/python3.6/site-packages/flask/blueprints.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/lint.py my_flask_app/venv/lib/python3.6/site-packages/pip/vcs/bazaar.py my_flask_app/venv/lib/python3.6/site-packages/flask/sessions.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/__init__.py my_flask_app/venv/lib/python3.6/site-packages/markupsafe/_native.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/version.py my_flask_app/venv/lib/python3.6/site-packages/flask/logging.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/security.py my_flask_app/venv/lib/python3.6/site-packages/pip/pep425tags.py my_flask_app/venv/lib/python3.6/site-packages/flask/signals.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/local.py my_flask_app/venv/lib/python3.6/site-packages/click/core.py my_flask_app/venv/lib/python3.6/site-packages/flask/ctx.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/config.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/_structures.py my_flask_app/venv/lib/python3.6/site-packages/click/termui.py my_flask_app/venv/lib/python3.6/site-packages/click/_bashcomplete.py my_flask_app/venv/lib/python3.6/site-packages/click/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/wheel.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/serving.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wsgi.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/http_proxy.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/idtracking.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/windows_support.py my_flask_app/venv/lib/python3.6/site-packages/flask/config.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/iterio.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/posixemulation.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/profiler.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/markers.py my_flask_app/venv/lib/python3.6/site-packages/flask/helpers.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/accept.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/requirements.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/useragents.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/register.py my_flask_app/venv/lib/python3.6/site-packages/flask/json/tag.py my_flask_app/venv/lib/python3.6/site-packages/click/_termui_impl.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/exc.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/ext.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/cache.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/middleware/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/markers.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/depends.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/serializer.py browserhistory.py my_flask_app/venv/lib/python3.6/site-packages/flask/views.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/build_meta.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/download.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/__about__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/sandbox.py my_flask_app/venv/lib/python3.6/site-packages/click/globals.py dep2.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/loaders.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/filesystem.py my_flask_app/venv/lib/python3.6/site-packages/pip/req/req_uninstall.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/dist.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/namespaces.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/install.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/search.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/install_egg_info.py my_flask_app/venv/lib/python3.6/site-packages/pip/req/req_set.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/encoding.py my_flask_app/venv/lib/python3.6/site-packages/pip/index.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/uninstall.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/specifiers.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/py27compat.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/formparser.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/base_response.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/version.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/utils.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/requirements.py my_flask_app/venv/lib/python3.6/site-packages/click/decorators.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/show.py my_flask_app/venv/lib/python3.6/site-packages/pip/models/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/packaging.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/__init__.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/atom.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/defaults.py dep1.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/__init__.py my_flask_app/venv/lib/python3.6/site-packages/click/_winconsole.py my_flask_app/venv/lib/python3.6/site-packages/pip/req/__init__.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/datastructures.py my_flask_app/venv/lib/python3.6/site-packages/pip/req/req_file.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/six.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/tests.py my_flask_app/venv/lib/python3.6/site-packages/pip/compat/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pip/download.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/launch.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/appdirs.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/six.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/msvc.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/pyparsing.py my_flask_app/venv/lib/python3.6/site-packages/click/_unicodefun.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/ssl_support.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/routing.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/_compat.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/signer.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/appdirs.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/encoding.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/egg_info.py my_flask_app/venv/lib/python3.6/site-packages/flask/debughelpers.py my_flask_app/venv/lib/python3.6/site-packages/pip/operations/check.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/bdist_rpm.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/install_scripts.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/lexer.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/wrappers.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/bdist_egg.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/setopt.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/response.py my_flask_app/venv/lib/python3.6/site-packages/markupsafe/__init__.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/testapp.py my_flask_app/venv/lib/python3.6/site-packages/pip/cmdoptions.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/bccache.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/lib2to3_ex.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/list.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/specifiers.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/urls.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/_structures.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/debug/repr.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/glibc.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/version.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/_compat.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/_json.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/outdated.py my_flask_app/venv/lib/python3.6/site-packages/flask/testing.py my_flask_app/venv/lib/python3.6/site-packages/pip/models/index.py my_flask_app/venv/lib/python3.6/site-packages/pip/status_codes.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/__init__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/easy_install.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/py36compat.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/test.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/help.py my_flask_app/venv/lib/python3.6/site-packages/pip/__main__.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/build_ext.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/filters.py my_flask_app/venv/lib/python3.6/site-packages/click/parser.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/check.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/extension.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/alias.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/debug/console.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/etag.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/_compat.py my_flask_app/venv/lib/python3.6/site-packages/flask/globals.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/debug.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/optimizer.py my_flask_app/venv/lib/python3.6/site-packages/markupsafe/_compat.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/http.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/test.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/meta.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/_internal.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/dep_util.py my_flask_app/venv/lib/python3.6/site-packages/pip/exceptions.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/nodes.py my_flask_app/venv/lib/python3.6/site-packages/itsdangerous/jws.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/asyncsupport.py my_flask_app/venv/lib/python3.6/site-packages/click/formatting.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/utils.py app.py my_flask_app/venv/lib/python3.6/site-packages/markupsafe/_constants.py my_flask_app/venv/lib/python3.6/site-packages/pip/__init__.py my_flask_app/venv/lib/python3.6/site-packages/click/testing.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/glob.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pip/baseparser.py my_flask_app/venv/lib/python3.6/site-packages/pip/locations.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/build_py.py my_flask_app/venv/lib/python3.6/site-packages/easy_install.py my_flask_app/venv/lib/python3.6/site-packages/pip/vcs/subversion.py my_flask_app/venv/lib/python3.6/site-packages/pip/basecommand.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/archive_util.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/develop.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/build.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/utils.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/request.py my_flask_app/venv/lib/python3.6/site-packages/flask/templating.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/common_descriptors.py my_flask_app/venv/lib/python3.6/site-packages/click/exceptions.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/hashes.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/utils.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/rotate.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/securecookie.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/_compat.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/wheel.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/debug/tbtools.py my_flask_app/venv/lib/python3.6/site-packages/click/_compat.py my_flask_app/venv/lib/python3.6/site-packages/flask/__main__.py my_flask_app/venv/lib/python3.6/site-packages/pip/wheel.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/py31compat.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/site-patch.py my_flask_app/venv/lib/python3.6/site-packages/click/utils.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/_identifier.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/contrib/profiler.py my_flask_app/venv/lib/python3.6/site-packages/flask/_compat.py my_flask_app/venv/lib/python3.6/site-packages/werkzeug/wrappers/user_agent.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/upload_docs.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/environment.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/__init__.py my_flask_app/venv/lib/python3.6/site-packages/pip/commands/install.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/command/install_lib.py my_flask_app/venv/lib/python3.6/site-packages/pip/utils/setuptools_build.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/py33compat.py my_flask_app/venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/_compat.py my_flask_app/venv/lib/python3.6/site-packages/pip/vcs/git.py my_flask_app/venv/lib/python3.6/site-packages/click/_textwrap.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/visitor.py my_flask_app/venv/lib/python3.6/site-packages/flask/cli.py my_flask_app/venv/lib/python3.6/site-packages/setuptools/_vendor/packaging/__about__.py my_flask_app/venv/lib/python3.6/site-packages/jinja2/sandbox.py index _get_data get_database_paths get_browserhistory write_browserhistory_csv get_username process_text Classifier process_text Classifier Parameter _check_multicommand MultiCommand iter_params_for_processing _maybe_show_deprecated_notice BaseCommand augment_usage_errors invoke_param_callback Command fast_exit _bashcomplete Group Option CommandCollection Context batch Argument version_option help_option argument _make_command password_option pass_obj group make_pass_decorator command option confirmation_option _param_memo pass_context _join_param_hints BadParameter ClickException UsageError MissingParameter NoSuchOption FileError BadArgumentUsage BadOptionUsage Abort Exit join_options wrap_text measure_table iter_rows HelpFormatter get_current_context pop_context push_context resolve_color_default normalize_opt ParsingState OptionParser Option split_arg_string _unpack_args _error_opt_args split_opt Argument clear echo_via_pager progressbar get_terminal_size style unstyle prompt _build_prompt hidden_prompt_func secho launch pause edit raw_terminal confirm getchar make_input_stream Result CliRunner EchoingStdin ParamType CompositeParamType FloatRange Tuple UUIDParameterType IntParamType FloatParamType File UnprocessedParamType convert_type Choice StringParamType DateTime IntRange Path FuncParamType BoolParamType get_os_args safecall open_file get_text_stream get_app_dir echo LazyFile get_binary_stream _posixify make_default_short_help KeepOpenFile PacifyFlushWrapper make_str format_filename add_subcommand_completions bashcomplete get_user_autocompletions get_choices get_visible_commands_starting_with is_incomplete_argument resolve_ctx do_complete start_of_option is_incomplete_option get_completion_script filename_to_ui get_text_stderr get_binary_stdout _make_text_stream _make_cached_stream_func open_stream get_streerror _get_argv_encoding get_filesystem_encoding strip_ansi get_best_encoding set_binary_mode is_ascii_encoding _NonClosingTextIOWrapper isatty get_binary_stdin is_bytes raw_input _AtomicFile should_strip_ansi get_text_stdin get_binary_stderr term_len _FixupStream get_text_stdout isidentifier _length_hint open_url _nullpager ProgressBar _pipepager raw_terminal pager Editor _tempfilepager _translate_ch_to_exc getchar TextWrapper _verify_python3_env _check_for_unicode_literals _find_unicode_literals_frame _get_text_stdin _wrap_std_stream _hash_py_argv Py_buffer _get_windows_argv ConsoleStream _get_text_stderr _WindowsConsoleWriter _get_text_stdout _WindowsConsoleRawIOBase _WindowsConsoleReader _get_windows_console_stream WindowsChunkedWriter _make_timedelta setupmethod Flask BlueprintSetupState Blueprint find_app_by_string get_version run_command call_factory prepare_import show_server_banner with_appcontext load_dotenv _validate_key shell_command ScriptInfo CertParamType _path_is_ancestor locate_app _called_with_wrong_args DispatchingApp FlaskGroup routes_command main find_best_app AppGroup NoAppException Config ConfigAttribute RequestContext _AppCtxGlobals copy_current_request_context AppContext after_this_request has_app_context has_request_context attach_enctype_error_multidict explain_template_loading_attempts DebugFilesKeyError explain_ignored_app_run _dump_loader_info FormDataRoutingRedirect UnexpectedUnicodeError _find_app _lookup_req_object _lookup_app_object _PackageBoundObject get_load_dotenv send_from_directory flash get_env locked_cached_property send_file safe_join get_debug_flag get_template_attribute stream_with_context is_ip make_response url_for get_flashed_messages _matching_loader_thinks_module_is_package total_seconds get_root_path _endpoint_from_view_func find_package create_logger has_level_handler wsgi_errors_stream NullSession SessionMixin SecureCookieSession SessionInterface SecureCookieSessionInterface render_template_string Environment _render render_template _default_template_ctx_processor DispatchingJinjaLoader make_test_environ_builder FlaskCliRunner FlaskClient MethodViewType View MethodView Request Response JSONMixin reraise with_metaclass _Mgr TagTuple TagBytes PassDict TagMarkup PassList TaggedJSONSerializer TagDict TagUUID JSONTag TagDateTime load dump JSONEncoder htmlsafe_dump _dump_arg_defaults _wrap_writer_for_text _load_arg_defaults jsonify tojson_filter dumps detect_encoding htmlsafe_dumps loads _wrap_reader_for_text JSONDecoder base64_encode bytes_to_int base64_decode int_to_bytes want_bytes SignatureExpired BadHeader BadTimeSignature BadPayload BadSignature BadData TimedJSONWebSignatureSerializer JSONWebSignatureSerializer Serializer is_text_serializer SigningAlgorithm NoneAlgorithm Signer HMACAlgorithm TimedSerializer TimestampSigner URLSafeSerializerMixin URLSafeTimedSerializer URLSafeSerializer _constant_time_compare _CompactJSON asyncfiltervariant dualfilter AsyncLoopContextIterator patch_runtime patch_all AsyncLoopContext wrap_macro_invoke patch_filters patch_template wrap_block_reference_call wrap_default_module wrap_generate_func wrap_render_func MemcachedBytecodeCache BytecodeCache Bucket FileSystemBytecodeCache optimizeconst find_undeclared VisitorExit DependencyFinderVisitor has_safe_repr UndeclaredNameVisitor CompilerExit MacroRef Frame generate CodeGenerator make_traceback ProcessedTraceback fake_exc_info _init_ugly_crap TracebackFrameProxy translate_exception make_frame_proxy get_jinja_locals translate_syntax_error load_extensions get_spontaneous_environment create_cache Environment fail_for_missing_callable Template TemplateExpression TemplateStream _environment_sanity_check TemplateModule copy_cache TemplateNotFound TemplateRuntimeError FilterArgumentError UndefinedError TemplateSyntaxError TemplateError SecurityError TemplateAssertionError TemplatesNotFound ExprStmtExtension babel_extract extract_from_ast _CommentFinder WithExtension ExtensionRegistry Extension InternationalizationExtension _make_new_gettext LoopControlExtension _make_new_ngettext _gettext_alias AutoEscapeExtension do_join do_tojson prepare_select_or_reject select_or_reject do_title do_lower do_rejectattr do_attr do_unique do_default do_wordcount do_list do_indent prepare_map do_first do_max do_format do_truncate do_dictsort do_striptags do_wordwrap do_select do_trim do_slice do_groupby do_int do_round do_capitalize do_sort do_min do_sum do_last do_batch evalcontextfilter do_selectattr _min_or_max do_float environmentfilter do_urlencode make_attrgetter do_xmlattr do_filesizeformat contextfilter do_mark_unsafe do_replace do_center do_random ignore_case do_pprint do_reject do_reverse do_mark_safe do_map do_urlize do_forceescape do_upper symbols_for_node find_symbols FrameSymbolVisitor RootVisitor Symbols count_newlines Token Lexer _describe_token_type compile_rules describe_token_expr Failure TokenStreamIterator get_lexer TokenStream describe_token ChoiceLoader PrefixLoader ModuleLoader PackageLoader _TemplateModule BaseLoader FileSystemLoader FunctionLoader split_template_path DictLoader find_undeclared_variables find_referenced_templates TrackingCodeGenerator native_concat NativeEnvironment NativeCodeGenerator NativeTemplate Neg Filter Output Import Compare Helper For ImportedName Pow Getitem AssignBlock MarkSafeIfAutoescape Sub NSRef CallBlock BinExpr Extends Slice Mod Scope Keyword Add Name OverlayScope If Impossible With EnvironmentAttribute ExtensionAttribute ScopedEvalContextModifier Expr Dict CondExpr args_as_const get_eval_context Block TemplateData Pos Stmt Tuple List InternalName Continue MarkSafe Template Macro Include Assign Node UnaryExpr Call Concat Operand And Break Literal Const FromImport EvalContextModifier ContextReference ExprStmt Div EvalContext Pair FloorDiv _failing_new Getattr Not FilterBlock Mul Or NodeType Test optimize Optimizer Parser unicode_join ContextMeta DebugUndefined StrictUndefined make_logging_undefined Macro Undefined resolve_or_missing LoopContextBase LoopContextIterator new_context TemplateReference _get_func markup_join LoopContext BlockReference Context inspect_format_method ImmutableSandboxedEnvironment modifies_known_mutable safe_range unsafe SandboxedEnvironment is_internal_attribute SandboxedFormatter SandboxedEscapeFormatter _MagicFormatMapping SandboxedFormatterMixin test_even test_mapping test_divisibleby test_undefined test_sameas test_odd test_in test_none test_lower test_number test_sequence test_escaped test_upper test_defined test_iterable test_string generate_lorem_ipsum open_if_exists htmlsafe_json_dumps urlize internalcode Cycler clear_caches Joiner LRUCache consume import_string Namespace object_type_repr pformat select_autoescape is_undefined unicode_urlencode contextfunction environmentfunction evalcontextfunction NodeTransformer NodeVisitor reraise with_metaclass _patch_async iteritems soft_unicode escape_silent escape _MarkupEscapeHelper Markup _escape_argspec EscapeFormatter _MagicFormatMapping RequirementCommand Command ConfigOptionParser PrettyHelpFormatter UpdatingDefaultsHelpFormatter CustomOptionParser only_binary make_option_group _handle_no_binary _handle_only_binary no_binary editable extra_index_url allow_external _merge_hash exists_action _get_format_control allow_unsafe find_links requirements check_install_build_global resolve_wheel_no_use_binary trusted_host constraints MultiDomainBasicAuth InsecureHTTPAdapter SafeFileCache _copy_file unpack_http_url unpack_vcs_link is_archive_file unpack_file_url get_file_content unpack_url path_to_url is_vcs_url _progress_indicator _copy_dist_from_dir _download_url _download_http_url is_file_url url_to_path _check_download_dir is_dir_url PipSession LocalFSAdapter PipXmlrpcTransport is_url user_agent _get_used_vcs_backend PreviousBuildDirError PipError HashErrors BadCommand RequirementsFileParseError InvalidWheelFilename UninstallationError BestVersionAlreadyInstalled InstallationError VcsHashUnsupported CommandError HashMissing HashUnpinned DirectoryUrlHashUnsupported UnsupportedPythonVersion UnsupportedWheel HashError DistributionNotFound HashMismatch egg_info_matches PackageFinder InstallationCandidate Link fmt_ctl_formats fmt_ctl_no_binary fmt_ctl_no_use_wheel fmt_ctl_handle_mutual_exclude HTMLPage distutils_scheme virtualenv_no_global running_under_virtualenv write_delete_marker_file get_supported get_impl_tag get_abbr_impl get_darwin_arches _is_running_32bit is_manylinux1_compatible get_config_var get_flag get_abi_tag get_impl_ver get_impl_version_info get_platform uninstallation_paths check_compatibility get_entrypoints fix_script WheelBuilder _unique rehash Wheel open_for_csv WheelCache move_wheel_files _cache_for_link cached_wheel wheel_version root_is_purelib check_isolated FrozenRequirement parseopts autocomplete create_main_parser main CheckCommand CompletionCommand DownloadCommand FreezeCommand HashCommand _hash_of_file HelpCommand InstallCommand get_lib_location_guesses tabulate format_for_json ListCommand format_for_columns transform_hits highest_version SearchCommand print_results ShowCommand print_results search_packages_info UninstallCommand WheelCommand _sort_commands get_similar_commands get_summaries valid_ident dictConfig ConvertingTuple ConvertingList ConvertingDict BaseConfigurator DictConfigurator total_seconds samefile get_stdlib console_to_str native_str expanduser get_path_uid Index get_missing_reqs check_requirements get_incompatible_reqs freeze ignore_comments join_lines break_args_options preprocess parse_requirements skip_regex build_parser process_line InstallRequirement _safe_extras _strip_extras parse_editable _strip_postfix RequirementSet make_abstract_dist Requirements IsWheel IsSDist Installed DistAbstraction UninstallPthEntries UninstallPathSet user_data_dir _win_path_to_bytes _get_win_folder_from_registry site_config_dirs user_config_dir _get_win_folder_with_ctypes user_cache_dir BuildDirectory _showwarning RemovedInPip11Warning install_warning_logger PipDeprecationWarning Python26DeprecationWarning Pending RemovedInPip10Warning auto_decode check_path_owner check_glibc_version libc_ver glibc_version_string have_compatible_glibc Hashes MissingHashes BetterRotatingFileHandler IndentingFormatter get_indentation indent_log MaxLevelFilter _color_wrap ColorizedStreamHandler pip_version_check VirtualenvSelfCheckState GlobalSelfCheckState load_selfcheck_statefile check_dist_requires_python check_requires_python get_metadata _select_progress_class hidden_cursor DownloadProgressSpinner InteractiveSpinner NonInteractiveSpinner InterruptibleMixin DownloadProgressMixin RateLimiter DownloadProgressBar WindowsMixin open_spinner rmtree_errorhandler ask normalize_path get_installed_version ask_path_exists captured_stdout get_installed_distributions captured_output _make_build_dir dist_is_local is_svn_page split_leading_dir renames unpack_file unzip_file consume current_umask file_contents read_chunks format_size read_text_file splitext get_prog import_or_raise ensure_dir backup_dir FakeFile call_subprocess has_leading_dir is_local untar_file get_terminal_size dist_in_usersite dist_location dist_is_editable rmtree dist_in_site_packages is_installable_dir egg_link_path StreamWrapper display_path cached_property Bazaar Git Mercurial Subversion get_rev_options get_src_requirement VersionControl VcsSupport vendored _makedirs_31 _is_egg_path NullProvider _rebuild_mod_path get_build_platform Environment invalid_marker fixup_namespace_packages __getstate__ get_supported_platform EggProvider _sset_dict VersionConflict find_eggs_in_zip register_finder ResolutionError _macosx_arch DistributionNotFound register_loader_type safe_listdir load_entry_point dist_factory parse_version WorkingSet ZipManifests UnknownExtra _initialize find_distributions PathMetadata FileMetadata PEP440Warning find_on_path _version_from_file safe_extra file_ns_handler _normalize_cached get_entry_info _bypass_ensure_directory EggInfoDistribution safe_name ExtractionError ResourceManager EggMetadata declare_namespace MemoizedZipManifests DistInfoDistribution get_entry_map _initialize_master_working_set _by_version_descending ContextualVersionConflict normalize_path register_namespace_handler Distribution find_nothing issue_warning parse_requirements IResourceProvider DefaultProvider _always_object resolve_egg_link compatible_platforms evaluate_marker get_provider IMetadataProvider _find_adapter safe_version _sget_dict Requirement RequirementParseError _handle_ns _call_aside _remove_md5_fragment yield_lines ensure_directory null_ns_handler _macosx_vers get_distribution EmptyProvider EntryPoint split_sections get_default_cache ZipProvider _set_parent_ns __setstate__ _ReqExtras _mkstemp distributions_from_metadata run_script _sget_object _is_unpacked_egg NoDists _sset_object non_empty_lines to_filename _declare_state VendorImporter user_data_dir user_log_dir _get_win_folder_from_registry AppDirs user_config_dir _get_win_folder_with_pywin32 site_config_dir _get_win_folder_with_ctypes site_data_dir user_cache_dir _get_win_folder_with_jna _SixMetaPathImporter remove_move u Module_six_moves_urllib_parse python_2_unicode_compatible create_unbound_method add_move assertRaisesRegex Module_six_moves_urllib_request print_ iteritems assertCountEqual MovedAttribute assertRegex _LazyDescr _MovedItems get_unbound_function MovedModule Module_six_moves_urllib iterlists wraps with_metaclass Module_six_moves_urllib_error itervalues _add_doc b _LazyModule Module_six_moves_urllib_response add_metaclass iterkeys Module_six_moves_urllib_robotparser reraise _import_module UndefinedEnvironmentName Op Marker _coerce_parse_result _get_env Variable Value UndefinedComparison InvalidMarker default_environment Node _format_marker _eval_op _evaluate_markers format_full_version Requirement InvalidRequirement _version_split BaseSpecifier _IndividualSpecifier Specifier _pad_version _require_version_compare SpecifierSet LegacySpecifier InvalidSpecifier canonicalize_name parse _BaseVersion InvalidVersion LegacyVersion _parse_local_version Version _legacy_cmpkey _parse_letter_version _cmpkey _parse_version_parts with_metaclass Infinity NegativeInfinity unpack_archive unpack_zipfile unpack_directory unpack_tarfile UnrecognizedFormat default_filter build_wheel _run_setup _get_build_requires SetupRequirementsError _get_immediate_subdirectories prepare_metadata_for_build_wheel build_sdist Distribution _fix_config get_requires_for_build_wheel get_requires_for_build_sdist read_configuration ConfigHandler ConfigMetadataHandler ConfigOptionsHandler configuration_to_dict parse_configuration get_module_constant _update_globals extract_constant find_module Require newer_pairwise_group write_pkg_info check_importable _check_extra check_specifier check_package_data check_test_suite assert_bool _get_unpatched Distribution check_entry_points check_nsp write_pkg_file assert_string_list check_packages get_metadata_version check_requirements check_extras Feature Library Extension _have_cython check_glibc_version libc_ver glibc_version_string have_compatible_glibc iglob glob _isrecursive glob0 _iglob escape _rlistdir has_magic glob1 glob2 run DistutilsRefactoringTool Mixin2to3 _get_mro patch_func _patch_distribution_metadata_write_pkg_info get_unpatched_function patch_all _patch_distribution_metadata_write_pkg_file get_unpatched patch_for_msvc_specialized_compiler get_unpatched_class _augment_exception RegistryInfo msvc9_find_vcvarsall SystemInfo msvc14_gen_lib_options EnvironmentInfo PlatformInfo msvc9_query_vcvarsall msvc14_get_vc_env Installer DevelopInstaller decode_entity HashChecker parse_bdist_wininst socket_timeout open_with_auth parse_requirement_arg interpret_distro_name find_external_links htmldecode ContentChecker _encode_auth Credential PyPIConfig unique_everseen unique_values egg_info_for_url PackageIndex fix_sf_url local_open distros_for_location distros_for_filename distros_for_url get_supported get_impl_tag get_abbr_impl get_darwin_arches _is_running_32bit is_manylinux1_compatible get_config_var get_flag get_abi_tag get_impl_ver get_impl_version_info get_platform get_all_headers Bytecode_compat Distribution_parse_config_files hide_setuptools _clear_modules ExceptionSaver save_path DirectorySandbox save_argv UnpickleableException override_temp _needs_hiding run_setup SandboxViolation _execfile save_modules pushd save_pkg_resources_state setup_context AbstractSandbox __boot opener_for match_hostname _certifi_where CertificateError find_ca_bundle get_win_certfile _dnsname_match VerifyingHTTPSConn once VerifyingHTTPSHandler filesys_decode try_encode decompose unpack Wheel windows_only hide_file _install_setup_requires PackageFinder setup Command PEP420PackageFinder _find_all_simple findall format_alias shquote alias strip_module make_zipfile _get_purelib write_safety_flag can_scan sorted_walk analyze_egg bdist_egg iter_symbols write_stub scan_module walk_egg bdist_rpm bdist_wininst build_clib link_shared_object _get_config_var_837 build_ext get_abi3_suffix _customize_compiler_for_shlib build_py assert_relative _unique_everseen develop VersionlessRequirement dist_info is_sh chmod _patch_usage get_site_dirs get_win_launcher load_launcher_manifest isascii extract_wininst_cfg WindowsExecutableLauncherWriter RewritePthDistributions easy_install is_python ScriptWriter is_64bit _pythonpath current_umask bootstrap update_dist_caches WindowsCommandSpec auto_chmod _remove_and_clear_zip_directory_cache_data get_exe_prefixes _to_ascii _update_zipimporter_cache nt_quote_arg CommandSpec main _first_line_re is_python_script samefile WindowsScriptWriter expand_paths PthDistributions rmtree _uncache _collect_zipimporter_cache_entries write_pkg_info FileList overwrite_arg _write_requirements egg_info write_setup_requirements get_pkg_info_revision write_requirements write_entries translate_pattern write_toplevel_names write_arg warn_depends_obsolete write_file manifest_maker install install_egg_info install_lib install_scripts sdist_add_defaults register rotate saveopts sdist walk_revctrl option_base edit_config config_file setopt NonDataProperty test ScanningLoader upload _encode upload_docs VendorImporter _SixMetaPathImporter remove_move u Module_six_moves_urllib_parse python_2_unicode_compatible create_unbound_method add_move assertRaisesRegex Module_six_moves_urllib_request print_ iteritems assertCountEqual MovedAttribute assertRegex _LazyDescr _MovedItems get_unbound_function MovedModule Module_six_moves_urllib iterlists wraps with_metaclass Module_six_moves_urllib_error itervalues _add_doc b _LazyModule Module_six_moves_urllib_response add_metaclass iterkeys Module_six_moves_urllib_robotparser reraise _import_module UndefinedEnvironmentName Op Marker _coerce_parse_result _get_env Variable Value UndefinedComparison InvalidMarker default_environment Node _format_marker _eval_op _evaluate_markers format_full_version Requirement InvalidRequirement _version_split BaseSpecifier _IndividualSpecifier Specifier _pad_version _require_version_compare SpecifierSet LegacySpecifier InvalidSpecifier canonicalize_name parse _BaseVersion InvalidVersion LegacyVersion _parse_local_version Version _legacy_cmpkey _parse_letter_version _cmpkey _parse_version_parts with_metaclass Infinity NegativeInfinity _unicodify_header_value CharsetAccept OrderedMultiDict Accept Range MIMEAccept cache_property CallbackDict RequestCacheControl ContentRange ImmutableOrderedMultiDict ImmutableHeadersMixin ResponseCacheControl iter_multi_items ImmutableTypeConversionDict ETags UpdateDictMixin ImmutableList native_itermethods IfRange LanguageAccept ImmutableMultiDict EnvironHeaders Authorization _CacheControl ImmutableDict HeaderSet FileMultiDict is_immutable ImmutableDictMixin ViewItems ImmutableListMixin _options_header_vkw MultiDict TypeConversionDict WWWAuthenticate FileStorage Headers ImmutableMultiDictMixin CombinedMultiDict _omd_bucket InternalServerError GatewayTimeout BadHost Gone _find_exceptions BadGateway PreconditionRequired NotImplemented HTTPVersionNotSupported PreconditionFailed SecurityError RequestedRangeNotSatisfiable BadRequest MethodNotAllowed NotAcceptable Conflict TooManyRequests UnprocessableEntity ClientDisconnected RequestURITooLarge ExpectationFailed NotFound RequestEntityTooLarge Forbidden Unauthorized UnsupportedMediaType Locked abort Aborter RequestTimeout FailedDependency LengthRequired HTTPException UnavailableForLegalReasons ImATeapot ServiceUnavailable RequestHeaderFieldsTooLarge _is_ascii_encoding get_filesystem_encoding BrokenFilesystemWarning exhaust_stream default_stream_factory _line_parse parse_multipart_headers MultiPartParser is_valid_multipart_boundary FormDataParser parse_form_data CharsetAccept parse_range_header parse_date bytes_to_wsgi _dump_date dump_options_header parse_content_range_header MIMEAccept parse_list_header parse_accept_header parse_set_header wsgi_to_bytes cookie_date quote_header_value remove_entity_headers parse_authorization_header parse_options_header dump_header remove_hop_by_hop_headers is_byte_range_valid unquote_etag LanguageAccept is_hop_by_hop_header dump_cookie parse_if_range_header parse_cache_control_header parse_age parse_dict_header is_resource_modified http_date parse_etags unquote_header_value dump_age parse_www_authenticate_header is_entity_header parse_cookie Headers quote_etag generate_etag LocalManager Local LocalStack LocalProxy release_local _rename _rename_atomic rename RuleFactory Subdomain parse_rule RuleTemplateFactory RequestSlash RoutingException IntegerConverter Submount Map FloatConverter RuleTemplate ValidationError AnyConverter RequestAliasRedirect UUIDConverter BaseConverter EndpointPrefix NumberConverter UnicodeConverter PathConverter MapAdapter BuildError _pythonize RequestRedirect Rule parse_converter_args _hash_internal gen_salt generate_password_hash pbkdf2_bin _create_mac check_password_hash pbkdf2_hex safe_str_cmp safe_join _SSLContext BaseWSGIServer is_running_from_reloader select_address_family make_server ThreadedWSGIServer generate_adhoc_ssl_context _get_openssl_crypto_module DechunkedInput get_sockaddr is_ssl_error main ForkingWSGIServer load_ssl_context run_simple make_ssl_devcert WSGIRequestHandler run_with_reloader generate_adhoc_ssl_pair EnvironBuilder _TestCookieJar encode_multipart _TestCookieHeaders create_environ File Client run_wsgi_app ClientRedirectError stream_encode_multipart _iter_data _TestCookieResponse test_app iter_sys_path render_testapp BaseURL url_encode_stream url_decode_stream Href _url_decode_impl url_join _make_fast_url_quote url_unquote_plus url_unparse url_fix _fast_url_quote_plus url_quote_plus url_unquote url_decode uri_to_iri url_encode _url_unquote_legacy URL _codec_error_url_quote _unquote_to_bytes url_quote BytesURL iri_to_uri url_parse _url_encode_impl UserAgentParser UserAgentMixin UserAgent bind_arguments secure_filename CombinedMultiDict validate_arguments detect_utf_encoding find_modules unescape HTMLBuilder escape header_property redirect environ_property import_string EnvironHeaders dump_cookie get_content_type format_string ArgumentValidationError MultiDict Headers parse_cookie append_slash_redirect ImportStringError cached_property ClosingIterator SharedDataMiddleware get_query_string make_line_iter ProxyMiddleware get_path_info _RangeWrapper responder wrap_file get_input_stream _make_chunk_iter get_current_url FileWrapper LimitedStream DispatcherMiddleware peek_path_info get_script_name make_chunk_iter get_host get_content_length extract_path_info pop_path_info host_is_trusted try_coerce_native native_string_result to_native fix_tuple_repr to_bytes wsgi_decoding_dance wsgi_encoding_dance to_unicode implements_bool implements_to_string normalize_string_tuple make_literal_wrapper implements_iterator _cookie_quote _Missing _make_cookie_domain _parse_signature _date_to_unix _DictAccessorProperty _easteregg _has_level_handler _cookie_parse_impl _get_environ _encode_idna _decode_idna _log _cookie_unquote _get_args_for_reloading ReloaderLoop run_with_reloader _find_common_roots _find_observable_paths StatReloaderLoop ensure_echo_on WatchdogReloaderLoop _iter_module_files module FeedEntry _make_text_block format_iso8601 AtomFeed NullCache UWSGICache BaseCache SimpleCache MemcachedCache FileSystemCache _items RedisCache ProxyFix PathInfoFromRequestUriFix HeaderRewriterFix CGIRootFix InternetExplorerFix LighttpdCGIRootFix IterIO IterI IterO _mixed_join _newline MergeStream UnquoteError SecureCookie SessionMiddleware FilesystemSessionStore SessionStore _urandom generate_key ModificationTrackingDict Session ReverseSlashBehaviorRequestMixin JSONRequestMixin ProtobufRequestMixin is_known_charset RoutingArgsRequestMixin DynamicCharsetResponseMixin DynamicCharsetRequestMixin ThreadedStream Console _InteractiveConsole _wrap_compiler HTMLStringO _ConsoleLoader _Helper dump debug_repr _add_subclass_info DebugReprGenerator get_current_traceback Group Frame Line render_console_html Traceback hash_pin debug_repr get_pin_and_cookie_name _ConsoleFrame get_machine_id DebuggedApplication DispatcherMiddleware ProxyMiddleware ErrorStream HTTPWarning GuardedWrite LintMiddleware GuardedIterator WSGIWarning InputStream check_string ProfilerMiddleware ProxyFix SharedDataMiddleware AcceptMixin AuthorizationMixin WWWAuthenticateMixin _assert_not_shallow BaseRequest _run_wsgi_app _warn_if_string _iter_encoded BaseResponse _clean_accept_ranges CommonResponseDescriptorsMixin CommonRequestDescriptorsMixin ETagResponseMixin ETagRequestMixin _JSONModule JSONMixin Request StreamOnlyMixin PlainRequest ResponseStream Response ResponseStreamMixin UserAgentMixin index _get_data get_database_paths get_browserhistory write_browserhistory_csv get_username process_text Classifier process_text Classifier Parameter _check_multicommand MultiCommand iter_params_for_processing _maybe_show_deprecated_notice BaseCommand augment_usage_errors invoke_param_callback Command fast_exit _bashcomplete Group Option CommandCollection Context batch Argument version_option help_option argument _make_command password_option pass_obj group make_pass_decorator command option confirmation_option _param_memo pass_context _join_param_hints BadParameter ClickException UsageError MissingParameter NoSuchOption FileError BadArgumentUsage BadOptionUsage Abort Exit join_options wrap_text measure_table iter_rows HelpFormatter get_current_context pop_context push_context resolve_color_default normalize_opt ParsingState OptionParser Option split_arg_string _unpack_args _error_opt_args split_opt Argument clear echo_via_pager progressbar get_terminal_size style unstyle prompt _build_prompt hidden_prompt_func secho launch pause edit raw_terminal confirm getchar make_input_stream Result CliRunner EchoingStdin ParamType CompositeParamType FloatRange Tuple UUIDParameterType IntParamType FloatParamType File UnprocessedParamType convert_type Choice StringParamType DateTime IntRange Path FuncParamType BoolParamType get_os_args safecall open_file get_text_stream get_app_dir echo LazyFile get_binary_stream _posixify make_default_short_help KeepOpenFile PacifyFlushWrapper make_str format_filename add_subcommand_completions bashcomplete get_user_autocompletions get_choices get_visible_commands_starting_with is_incomplete_argument resolve_ctx do_complete start_of_option is_incomplete_option get_completion_script filename_to_ui get_text_stderr get_binary_stdout _make_text_stream _make_cached_stream_func open_stream get_streerror _get_argv_encoding get_filesystem_encoding strip_ansi get_best_encoding set_binary_mode is_ascii_encoding _NonClosingTextIOWrapper isatty get_binary_stdin is_bytes raw_input _AtomicFile should_strip_ansi get_text_stdin get_binary_stderr term_len _FixupStream get_text_stdout isidentifier _length_hint open_url _nullpager ProgressBar _pipepager raw_terminal pager Editor _tempfilepager _translate_ch_to_exc getchar TextWrapper _verify_python3_env _check_for_unicode_literals _find_unicode_literals_frame _get_text_stdin _wrap_std_stream _hash_py_argv Py_buffer _get_windows_argv ConsoleStream _get_text_stderr _WindowsConsoleWriter _get_text_stdout _WindowsConsoleRawIOBase _WindowsConsoleReader _get_windows_console_stream WindowsChunkedWriter _make_timedelta setupmethod Flask BlueprintSetupState Blueprint find_app_by_string get_version run_command call_factory prepare_import show_server_banner with_appcontext load_dotenv _validate_key shell_command ScriptInfo CertParamType _path_is_ancestor locate_app _called_with_wrong_args DispatchingApp FlaskGroup routes_command main find_best_app AppGroup NoAppException Config ConfigAttribute RequestContext _AppCtxGlobals copy_current_request_context AppContext after_this_request has_app_context has_request_context attach_enctype_error_multidict explain_template_loading_attempts DebugFilesKeyError explain_ignored_app_run _dump_loader_info FormDataRoutingRedirect UnexpectedUnicodeError _find_app _lookup_req_object _lookup_app_object _PackageBoundObject get_load_dotenv send_from_directory flash get_env locked_cached_property send_file safe_join get_debug_flag get_template_attribute stream_with_context is_ip make_response url_for get_flashed_messages _matching_loader_thinks_module_is_package total_seconds get_root_path _endpoint_from_view_func find_package create_logger has_level_handler wsgi_errors_stream NullSession SessionMixin SecureCookieSession SessionInterface SecureCookieSessionInterface render_template_string Environment _render render_template _default_template_ctx_processor DispatchingJinjaLoader make_test_environ_builder FlaskCliRunner FlaskClient MethodViewType View MethodView Request Response JSONMixin reraise with_metaclass _Mgr TagTuple TagBytes PassDict TagMarkup PassList TaggedJSONSerializer TagDict TagUUID JSONTag TagDateTime load dump JSONEncoder htmlsafe_dump _dump_arg_defaults _wrap_writer_for_text _load_arg_defaults jsonify tojson_filter dumps detect_encoding htmlsafe_dumps loads _wrap_reader_for_text JSONDecoder base64_encode bytes_to_int base64_decode int_to_bytes want_bytes SignatureExpired BadHeader BadTimeSignature BadPayload BadSignature BadData TimedJSONWebSignatureSerializer JSONWebSignatureSerializer Serializer is_text_serializer SigningAlgorithm NoneAlgorithm Signer HMACAlgorithm TimedSerializer TimestampSigner URLSafeSerializerMixin URLSafeTimedSerializer URLSafeSerializer _constant_time_compare _CompactJSON asyncfiltervariant dualfilter AsyncLoopContextIterator patch_runtime patch_all AsyncLoopContext wrap_macro_invoke patch_filters patch_template wrap_block_reference_call wrap_default_module wrap_generate_func wrap_render_func MemcachedBytecodeCache BytecodeCache Bucket FileSystemBytecodeCache optimizeconst find_undeclared VisitorExit DependencyFinderVisitor has_safe_repr UndeclaredNameVisitor CompilerExit MacroRef Frame generate CodeGenerator make_traceback ProcessedTraceback fake_exc_info _init_ugly_crap TracebackFrameProxy translate_exception make_frame_proxy get_jinja_locals translate_syntax_error load_extensions get_spontaneous_environment create_cache Environment fail_for_missing_callable Template TemplateExpression TemplateStream _environment_sanity_check TemplateModule copy_cache TemplateNotFound TemplateRuntimeError FilterArgumentError UndefinedError TemplateSyntaxError TemplateError SecurityError TemplateAssertionError TemplatesNotFound ExprStmtExtension babel_extract extract_from_ast _CommentFinder WithExtension ExtensionRegistry Extension InternationalizationExtension _make_new_gettext LoopControlExtension _make_new_ngettext _gettext_alias AutoEscapeExtension do_join do_tojson prepare_select_or_reject select_or_reject do_title do_lower do_rejectattr do_attr do_unique do_default do_wordcount do_list do_indent prepare_map do_first do_max do_format do_truncate do_dictsort do_striptags do_wordwrap do_select do_trim do_slice do_groupby do_int do_round do_capitalize do_sort do_min do_sum do_last do_batch evalcontextfilter do_selectattr _min_or_max do_float environmentfilter do_urlencode make_attrgetter do_xmlattr do_filesizeformat contextfilter do_mark_unsafe do_replace do_center do_random ignore_case do_pprint do_reject do_reverse do_mark_safe do_map do_urlize do_forceescape do_upper symbols_for_node find_symbols FrameSymbolVisitor RootVisitor Symbols count_newlines Token Lexer _describe_token_type compile_rules describe_token_expr Failure TokenStreamIterator get_lexer TokenStream describe_token ChoiceLoader PrefixLoader ModuleLoader PackageLoader _TemplateModule BaseLoader FileSystemLoader FunctionLoader split_template_path DictLoader find_undeclared_variables find_referenced_templates TrackingCodeGenerator native_concat NativeEnvironment NativeCodeGenerator NativeTemplate Neg Filter Output Import Compare Helper For ImportedName Pow Getitem AssignBlock MarkSafeIfAutoescape Sub NSRef CallBlock BinExpr Extends Slice Mod Scope Keyword Add Name OverlayScope If Impossible With EnvironmentAttribute ExtensionAttribute ScopedEvalContextModifier Expr Dict CondExpr args_as_const get_eval_context Block TemplateData Pos Stmt Tuple List InternalName Continue MarkSafe Template Macro Include Assign Node UnaryExpr Call Concat Operand And Break Literal Const FromImport EvalContextModifier ContextReference ExprStmt Div EvalContext Pair FloorDiv _failing_new Getattr Not FilterBlock Mul Or NodeType Test optimize Optimizer Parser unicode_join ContextMeta DebugUndefined StrictUndefined make_logging_undefined Macro Undefined resolve_or_missing LoopContextBase LoopContextIterator new_context TemplateReference _get_func markup_join LoopContext BlockReference Context inspect_format_method ImmutableSandboxedEnvironment modifies_known_mutable safe_range unsafe SandboxedEnvironment is_internal_attribute SandboxedFormatter SandboxedEscapeFormatter _MagicFormatMapping SandboxedFormatterMixin test_even test_mapping test_divisibleby test_undefined test_sameas test_odd test_in test_none test_lower test_number test_sequence test_escaped test_upper test_defined test_iterable test_string generate_lorem_ipsum open_if_exists htmlsafe_json_dumps urlize internalcode Cycler clear_caches Joiner LRUCache consume import_string Namespace object_type_repr pformat select_autoescape is_undefined unicode_urlencode contextfunction environmentfunction evalcontextfunction NodeTransformer NodeVisitor reraise with_metaclass _patch_async iteritems soft_unicode escape_silent escape _MarkupEscapeHelper Markup _escape_argspec EscapeFormatter _MagicFormatMapping RequirementCommand Command ConfigOptionParser PrettyHelpFormatter UpdatingDefaultsHelpFormatter CustomOptionParser only_binary make_option_group _handle_no_binary _handle_only_binary no_binary editable extra_index_url allow_external _merge_hash exists_action _get_format_control allow_unsafe find_links requirements check_install_build_global resolve_wheel_no_use_binary trusted_host constraints MultiDomainBasicAuth InsecureHTTPAdapter SafeFileCache _copy_file unpack_http_url unpack_vcs_link is_archive_file unpack_file_url get_file_content unpack_url path_to_url is_vcs_url _progress_indicator _copy_dist_from_dir _download_url _download_http_url is_file_url url_to_path _check_download_dir is_dir_url PipSession LocalFSAdapter PipXmlrpcTransport is_url user_agent _get_used_vcs_backend PreviousBuildDirError PipError HashErrors BadCommand RequirementsFileParseError InvalidWheelFilename UninstallationError BestVersionAlreadyInstalled InstallationError VcsHashUnsupported CommandError HashMissing HashUnpinned DirectoryUrlHashUnsupported UnsupportedPythonVersion UnsupportedWheel HashError DistributionNotFound HashMismatch egg_info_matches PackageFinder InstallationCandidate Link fmt_ctl_formats fmt_ctl_no_binary fmt_ctl_no_use_wheel fmt_ctl_handle_mutual_exclude HTMLPage distutils_scheme virtualenv_no_global running_under_virtualenv write_delete_marker_file get_supported get_impl_tag get_abbr_impl get_darwin_arches _is_running_32bit is_manylinux1_compatible get_config_var get_flag get_abi_tag get_impl_ver get_impl_version_info get_platform uninstallation_paths check_compatibility get_entrypoints fix_script WheelBuilder _unique rehash Wheel open_for_csv WheelCache move_wheel_files _cache_for_link cached_wheel wheel_version root_is_purelib check_isolated FrozenRequirement parseopts autocomplete create_main_parser main CheckCommand CompletionCommand DownloadCommand FreezeCommand HashCommand _hash_of_file HelpCommand InstallCommand get_lib_location_guesses tabulate format_for_json ListCommand format_for_columns transform_hits highest_version SearchCommand print_results ShowCommand print_results search_packages_info UninstallCommand WheelCommand _sort_commands get_similar_commands get_summaries valid_ident dictConfig ConvertingTuple ConvertingList ConvertingDict BaseConfigurator DictConfigurator total_seconds samefile get_stdlib console_to_str native_str expanduser get_path_uid Index get_missing_reqs check_requirements get_incompatible_reqs freeze ignore_comments join_lines break_args_options preprocess parse_requirements skip_regex build_parser process_line InstallRequirement _safe_extras _strip_extras parse_editable _strip_postfix RequirementSet make_abstract_dist Requirements IsWheel IsSDist Installed DistAbstraction UninstallPthEntries UninstallPathSet user_data_dir _win_path_to_bytes _get_win_folder_from_registry site_config_dirs user_config_dir _get_win_folder_with_ctypes user_cache_dir BuildDirectory _showwarning RemovedInPip11Warning install_warning_logger PipDeprecationWarning Python26DeprecationWarning Pending RemovedInPip10Warning auto_decode check_path_owner check_glibc_version libc_ver glibc_version_string have_compatible_glibc Hashes MissingHashes BetterRotatingFileHandler IndentingFormatter get_indentation indent_log MaxLevelFilter _color_wrap ColorizedStreamHandler pip_version_check VirtualenvSelfCheckState GlobalSelfCheckState load_selfcheck_statefile check_dist_requires_python check_requires_python get_metadata _select_progress_class hidden_cursor DownloadProgressSpinner InteractiveSpinner NonInteractiveSpinner InterruptibleMixin DownloadProgressMixin RateLimiter DownloadProgressBar WindowsMixin open_spinner rmtree_errorhandler ask normalize_path get_installed_version ask_path_exists captured_stdout get_installed_distributions captured_output _make_build_dir dist_is_local is_svn_page split_leading_dir renames unpack_file unzip_file consume current_umask file_contents read_chunks format_size read_text_file splitext get_prog import_or_raise ensure_dir backup_dir FakeFile call_subprocess has_leading_dir is_local untar_file get_terminal_size dist_in_usersite dist_location dist_is_editable rmtree dist_in_site_packages is_installable_dir egg_link_path StreamWrapper display_path cached_property Bazaar Git Mercurial Subversion get_rev_options get_src_requirement VersionControl VcsSupport vendored _makedirs_31 _is_egg_path NullProvider _rebuild_mod_path get_build_platform Environment invalid_marker fixup_namespace_packages __getstate__ get_supported_platform EggProvider _sset_dict VersionConflict find_eggs_in_zip register_finder ResolutionError _macosx_arch DistributionNotFound register_loader_type safe_listdir load_entry_point dist_factory parse_version WorkingSet ZipManifests UnknownExtra _initialize find_distributions PathMetadata FileMetadata PEP440Warning find_on_path _version_from_file safe_extra file_ns_handler _normalize_cached get_entry_info _bypass_ensure_directory EggInfoDistribution safe_name ExtractionError ResourceManager EggMetadata declare_namespace MemoizedZipManifests DistInfoDistribution get_entry_map _initialize_master_working_set _by_version_descending ContextualVersionConflict normalize_path register_namespace_handler Distribution find_nothing issue_warning parse_requirements IResourceProvider DefaultProvider _always_object resolve_egg_link compatible_platforms evaluate_marker get_provider IMetadataProvider _find_adapter safe_version _sget_dict Requirement RequirementParseError _handle_ns _call_aside _remove_md5_fragment yield_lines ensure_directory null_ns_handler _macosx_vers get_distribution EmptyProvider EntryPoint split_sections get_default_cache ZipProvider _set_parent_ns __setstate__ _ReqExtras _mkstemp distributions_from_metadata run_script _sget_object _is_unpacked_egg NoDists _sset_object non_empty_lines to_filename _declare_state VendorImporter user_data_dir user_log_dir _get_win_folder_from_registry AppDirs user_config_dir _get_win_folder_with_pywin32 site_config_dir _get_win_folder_with_ctypes site_data_dir user_cache_dir _get_win_folder_with_jna _SixMetaPathImporter remove_move u Module_six_moves_urllib_parse python_2_unicode_compatible create_unbound_method add_move assertRaisesRegex Module_six_moves_urllib_request print_ iteritems assertCountEqual MovedAttribute assertRegex _LazyDescr _MovedItems get_unbound_function MovedModule Module_six_moves_urllib iterlists wraps with_metaclass Module_six_moves_urllib_error itervalues _add_doc b _LazyModule Module_six_moves_urllib_response add_metaclass iterkeys Module_six_moves_urllib_robotparser reraise _import_module UndefinedEnvironmentName Op Marker _coerce_parse_result _get_env Variable Value UndefinedComparison InvalidMarker default_environment Node _format_marker _eval_op _evaluate_markers format_full_version Requirement InvalidRequirement _version_split BaseSpecifier _IndividualSpecifier Specifier _pad_version _require_version_compare SpecifierSet LegacySpecifier InvalidSpecifier canonicalize_name parse _BaseVersion InvalidVersion LegacyVersion _parse_local_version Version _legacy_cmpkey _parse_letter_version _cmpkey _parse_version_parts with_metaclass Infinity NegativeInfinity unpack_archive unpack_zipfile unpack_directory unpack_tarfile UnrecognizedFormat default_filter build_wheel _run_setup _get_build_requires SetupRequirementsError _get_immediate_subdirectories prepare_metadata_for_build_wheel build_sdist Distribution _fix_config get_requires_for_build_wheel get_requires_for_build_sdist read_configuration ConfigHandler ConfigMetadataHandler ConfigOptionsHandler configuration_to_dict parse_configuration get_module_constant _update_globals extract_constant find_module Require newer_pairwise_group write_pkg_info check_importable _check_extra check_specifier check_package_data check_test_suite assert_bool _get_unpatched Distribution check_entry_points check_nsp write_pkg_file assert_string_list check_packages get_metadata_version check_requirements check_extras Feature Library Extension _have_cython check_glibc_version libc_ver glibc_version_string have_compatible_glibc iglob glob _isrecursive glob0 _iglob escape _rlistdir has_magic glob1 glob2 run DistutilsRefactoringTool Mixin2to3 _get_mro patch_func _patch_distribution_metadata_write_pkg_info get_unpatched_function patch_all _patch_distribution_metadata_write_pkg_file get_unpatched patch_for_msvc_specialized_compiler get_unpatched_class _augment_exception RegistryInfo msvc9_find_vcvarsall SystemInfo msvc14_gen_lib_options EnvironmentInfo PlatformInfo msvc9_query_vcvarsall msvc14_get_vc_env Installer DevelopInstaller decode_entity HashChecker parse_bdist_wininst socket_timeout open_with_auth parse_requirement_arg interpret_distro_name find_external_links htmldecode ContentChecker _encode_auth Credential PyPIConfig unique_everseen unique_values egg_info_for_url PackageIndex fix_sf_url local_open distros_for_location distros_for_filename distros_for_url get_supported get_impl_tag get_abbr_impl get_darwin_arches _is_running_32bit is_manylinux1_compatible get_config_var get_flag get_abi_tag get_impl_ver get_impl_version_info get_platform get_all_headers Bytecode_compat Distribution_parse_config_files hide_setuptools _clear_modules ExceptionSaver save_path DirectorySandbox save_argv UnpickleableException override_temp _needs_hiding run_setup SandboxViolation _execfile save_modules pushd save_pkg_resources_state setup_context AbstractSandbox __boot opener_for match_hostname _certifi_where CertificateError find_ca_bundle get_win_certfile _dnsname_match VerifyingHTTPSConn once VerifyingHTTPSHandler filesys_decode try_encode decompose unpack Wheel windows_only hide_file _install_setup_requires PackageFinder setup Command PEP420PackageFinder _find_all_simple findall format_alias shquote alias strip_module make_zipfile _get_purelib write_safety_flag can_scan sorted_walk analyze_egg bdist_egg iter_symbols write_stub scan_module walk_egg bdist_rpm bdist_wininst build_clib link_shared_object _get_config_var_837 build_ext get_abi3_suffix _customize_compiler_for_shlib build_py assert_relative _unique_everseen develop VersionlessRequirement dist_info is_sh chmod _patch_usage get_site_dirs get_win_launcher load_launcher_manifest isascii extract_wininst_cfg WindowsExecutableLauncherWriter RewritePthDistributions easy_install is_python ScriptWriter is_64bit _pythonpath current_umask bootstrap update_dist_caches WindowsCommandSpec auto_chmod _remove_and_clear_zip_directory_cache_data get_exe_prefixes _to_ascii _update_zipimporter_cache nt_quote_arg CommandSpec main _first_line_re is_python_script samefile WindowsScriptWriter expand_paths PthDistributions rmtree _uncache _collect_zipimporter_cache_entries write_pkg_info FileList overwrite_arg _write_requirements egg_info write_setup_requirements get_pkg_info_revision write_requirements write_entries translate_pattern write_toplevel_names write_arg warn_depends_obsolete write_file manifest_maker install install_egg_info install_lib install_scripts sdist_add_defaults register rotate saveopts sdist walk_revctrl option_base edit_config config_file setopt NonDataProperty test ScanningLoader upload _encode upload_docs VendorImporter _SixMetaPathImporter remove_move u Module_six_moves_urllib_parse python_2_unicode_compatible create_unbound_method add_move assertRaisesRegex Module_six_moves_urllib_request print_ iteritems assertCountEqual MovedAttribute assertRegex _LazyDescr _MovedItems get_unbound_function MovedModule Module_six_moves_urllib iterlists wraps with_metaclass Module_six_moves_urllib_error itervalues _add_doc b _LazyModule Module_six_moves_urllib_response add_metaclass iterkeys Module_six_moves_urllib_robotparser reraise _import_module UndefinedEnvironmentName Op Marker _coerce_parse_result _get_env Variable Value UndefinedComparison InvalidMarker default_environment Node _format_marker _eval_op _evaluate_markers format_full_version Requirement InvalidRequirement _version_split BaseSpecifier _IndividualSpecifier Specifier _pad_version _require_version_compare SpecifierSet LegacySpecifier InvalidSpecifier canonicalize_name parse _BaseVersion InvalidVersion LegacyVersion _parse_local_version Version _legacy_cmpkey _parse_letter_version _cmpkey _parse_version_parts with_metaclass Infinity NegativeInfinity _unicodify_header_value CharsetAccept OrderedMultiDict Accept Range MIMEAccept cache_property CallbackDict RequestCacheControl ContentRange ImmutableOrderedMultiDict ImmutableHeadersMixin ResponseCacheControl iter_multi_items ImmutableTypeConversionDict ETags UpdateDictMixin ImmutableList native_itermethods IfRange LanguageAccept ImmutableMultiDict EnvironHeaders Authorization _CacheControl ImmutableDict HeaderSet FileMultiDict is_immutable ImmutableDictMixin ViewItems ImmutableListMixin _options_header_vkw MultiDict TypeConversionDict WWWAuthenticate FileStorage Headers ImmutableMultiDictMixin CombinedMultiDict _omd_bucket InternalServerError GatewayTimeout BadHost Gone _find_exceptions BadGateway PreconditionRequired NotImplemented HTTPVersionNotSupported PreconditionFailed SecurityError RequestedRangeNotSatisfiable BadRequest MethodNotAllowed NotAcceptable Conflict TooManyRequests UnprocessableEntity ClientDisconnected RequestURITooLarge ExpectationFailed NotFound RequestEntityTooLarge Forbidden Unauthorized UnsupportedMediaType Locked abort Aborter RequestTimeout FailedDependency LengthRequired HTTPException UnavailableForLegalReasons ImATeapot ServiceUnavailable RequestHeaderFieldsTooLarge _is_ascii_encoding get_filesystem_encoding BrokenFilesystemWarning exhaust_stream default_stream_factory _line_parse parse_multipart_headers MultiPartParser is_valid_multipart_boundary FormDataParser parse_form_data CharsetAccept parse_range_header parse_date bytes_to_wsgi _dump_date dump_options_header parse_content_range_header MIMEAccept parse_list_header parse_accept_header parse_set_header wsgi_to_bytes cookie_date quote_header_value remove_entity_headers parse_authorization_header parse_options_header dump_header remove_hop_by_hop_headers is_byte_range_valid unquote_etag LanguageAccept is_hop_by_hop_header dump_cookie parse_if_range_header parse_cache_control_header parse_age parse_dict_header is_resource_modified http_date parse_etags unquote_header_value dump_age parse_www_authenticate_header is_entity_header parse_cookie Headers quote_etag generate_etag LocalManager Local LocalStack LocalProxy release_local _rename _rename_atomic rename RuleFactory Subdomain parse_rule RuleTemplateFactory RequestSlash RoutingException IntegerConverter Submount Map FloatConverter RuleTemplate ValidationError AnyConverter RequestAliasRedirect UUIDConverter BaseConverter EndpointPrefix NumberConverter UnicodeConverter PathConverter MapAdapter BuildError _pythonize RequestRedirect Rule parse_converter_args _hash_internal gen_salt generate_password_hash pbkdf2_bin _create_mac check_password_hash pbkdf2_hex safe_str_cmp safe_join _SSLContext BaseWSGIServer is_running_from_reloader select_address_family make_server ThreadedWSGIServer generate_adhoc_ssl_context _get_openssl_crypto_module DechunkedInput get_sockaddr is_ssl_error main ForkingWSGIServer load_ssl_context run_simple make_ssl_devcert WSGIRequestHandler run_with_reloader generate_adhoc_ssl_pair EnvironBuilder _TestCookieJar encode_multipart _TestCookieHeaders create_environ File Client run_wsgi_app ClientRedirectError stream_encode_multipart _iter_data _TestCookieResponse test_app iter_sys_path render_testapp BaseURL url_encode_stream url_decode_stream Href _url_decode_impl url_join _make_fast_url_quote url_unquote_plus url_unparse url_fix _fast_url_quote_plus url_quote_plus url_unquote url_decode uri_to_iri url_encode _url_unquote_legacy URL _codec_error_url_quote _unquote_to_bytes url_quote BytesURL iri_to_uri url_parse _url_encode_impl UserAgentParser UserAgentMixin UserAgent bind_arguments secure_filename CombinedMultiDict validate_arguments detect_utf_encoding find_modules unescape HTMLBuilder escape header_property redirect environ_property import_string EnvironHeaders dump_cookie get_content_type format_string ArgumentValidationError MultiDict Headers parse_cookie append_slash_redirect ImportStringError cached_property ClosingIterator SharedDataMiddleware get_query_string make_line_iter ProxyMiddleware get_path_info _RangeWrapper responder wrap_file get_input_stream _make_chunk_iter get_current_url FileWrapper LimitedStream DispatcherMiddleware peek_path_info get_script_name make_chunk_iter get_host get_content_length extract_path_info pop_path_info host_is_trusted try_coerce_native native_string_result to_native fix_tuple_repr to_bytes wsgi_decoding_dance wsgi_encoding_dance to_unicode implements_bool implements_to_string normalize_string_tuple make_literal_wrapper implements_iterator _cookie_quote _Missing _make_cookie_domain _parse_signature _date_to_unix _DictAccessorProperty _easteregg _has_level_handler _cookie_parse_impl _get_environ _encode_idna _decode_idna _log _cookie_unquote _get_args_for_reloading ReloaderLoop run_with_reloader _find_common_roots _find_observable_paths StatReloaderLoop ensure_echo_on WatchdogReloaderLoop _iter_module_files module FeedEntry _make_text_block format_iso8601 AtomFeed NullCache UWSGICache BaseCache SimpleCache MemcachedCache FileSystemCache _items RedisCache ProxyFix PathInfoFromRequestUriFix HeaderRewriterFix CGIRootFix InternetExplorerFix LighttpdCGIRootFix IterIO IterI IterO _mixed_join _newline MergeStream UnquoteError SecureCookie SessionMiddleware FilesystemSessionStore SessionStore _urandom generate_key ModificationTrackingDict Session ReverseSlashBehaviorRequestMixin JSONRequestMixin ProtobufRequestMixin is_known_charset RoutingArgsRequestMixin DynamicCharsetResponseMixin DynamicCharsetRequestMixin ThreadedStream Console _InteractiveConsole _wrap_compiler HTMLStringO _ConsoleLoader _Helper dump debug_repr _add_subclass_info DebugReprGenerator get_current_traceback Group Frame Line render_console_html Traceback hash_pin get_pin_and_cookie_name _ConsoleFrame get_machine_id DebuggedApplication DispatcherMiddleware ProxyMiddleware ErrorStream HTTPWarning GuardedWrite LintMiddleware GuardedIterator WSGIWarning InputStream check_string ProfilerMiddleware ProxyFix SharedDataMiddleware AcceptMixin AuthorizationMixin WWWAuthenticateMixin _assert_not_shallow BaseRequest _run_wsgi_app _warn_if_string _iter_encoded BaseResponse _clean_accept_ranges CommonResponseDescriptorsMixin CommonRequestDescriptorsMixin ETagResponseMixin ETagRequestMixin _JSONModule JSONMixin Request StreamOnlyMixin PlainRequest ResponseStream Response ResponseStreamMixin UserAgentMixin open readline close run getcwd split join getcwd copy dict dirname expanduser exists split fetchall items list cursor get_database_paths close connect execute items list get_browserhistory word_tokenize words lower PorterStemmer range len echo style deprecated _exit flush upper fast_exit get bashcomplete Warning getattr warn get decode isinstance getdoc cleandoc _check_for_unicode_literals reverse __click_params__ setdefault append isinstance get hasattr isinstance get term_len max enumerate tuple term_len lstrip splitlines TextWrapper append _flush_par expandtabs append sort join append pop get_current_context tuple _fetch reversed reverse deque append len isalnum split_opt S decode strip append finditer isinstance value_proc echo prompt_func _build_prompt convert_type echo strip _build_prompt get_winterm_size ctermid O_RDONLY ioctl_gwinsz getattr shutil_get_terminal_size open resolve_color_default isinstance text_or_generator isgeneratorfunction iter resolve_color_default system write append style Editor edit_file echo getchar encode hasattr _find_binary_reader pathsep pathsep issubclass isinstance tuple map type isinstance append split text_type resolve_color_default isinstance auto_wrap_for_ansi _find_binary_writer write strip_ansi _default_text_stderr should_strip_ansi _default_text_stdout flush get get KeepOpenFile open_stream basename get expanduser sub replace protected_args isinstance make_context command resolve_command args start_of_option is_flag reversed enumerate type autocompletion isinstance list_commands get_command startswith parent command extend isinstance deepcopy add_subcommand_completions partition extend params is_incomplete_argument resolve_ctx append start_of_option is_incomplete_option echo split_arg_string get_choices int echo startswith get_completion_script get_best_encoding is_ascii_encoding _wrap_std_stream _wrap_std_stream _get_windows_console_stream stdin _get_windows_console_stream stdout _wrap_std_stream _get_windows_console_stream _wrap_std_stream stderr decode get_filesystem_encoding isinstance str decode hasattr isinstance strerror mkstemp any fdopen open stdin _default_text_stdin write _default_text_stdout flush WeakKeyDictionary mkstemp strip close _default_text_stdout get join stdin encode wait strip_ansi write dict environ get_best_encoding Popen split stdout join mktemp strip_ansi system get_best_encoding write strip_ansi replace _unquote_file append Popen open _translate_ch_to_exc getwch func getwche f_back co_flags startswith compiler_flag _getframe _find_unicode_literals_frame Warning warn decode isinstance name endswith strip set add splitlines insert setattr getattr WindowsChunkedWriter add BufferedReader _NonClosingTextIOWrapper _WindowsConsoleReader _WindowsConsoleWriter BufferedWriter _NonClosingTextIOWrapper _WindowsConsoleWriter BufferedWriter _NonClosingTextIOWrapper CommandLineToArgvW c_int GetCommandLineW byref startswith get O_BINARY fileno setmode getattr JSONEncoder property ImmutableDict JSONDecoder ConfigAttribute SecureCookieSessionInterface isfunction getattr call_factory isinstance getargspec defaults args tb_next format isinstance literal_eval groups call_factory match getattr isfunction insert realpath dirname append split __import__ echo exit chdir find_dotenv secho dirname echo format secho get isinstance SSLContext run_simple get_env DispatchingApp load_app show_server_banner app_import_path get_debug_flag get update app make_shell_context interact list sorted format rstrip echo strip set zip iter_rules append copy top property __name__ __class__ __module__ items sorted isinstance startswith join blueprint isinstance repr _dump_loader_info import_name info append enumerate top Warning warn top top top get get generator next iter pop blueprint url_scheme build inject_url_defaults url_adapter top get _get_current_object append send list flashes make_conditional getmtime root_path set_etag wrap_file open basename add encode getsize get_send_file_max_age close environ pop join int time isinstance response_class Headers append normpath setdefault join safe_join root_path get hasattr get_filename __import__ getattr get_loader hasattr hasattr get_filename _matching_loader_thinks_module_is_package __file__ getcwd __import__ prefix archive abspath get_loader dirname startswith split property inet_aton inet_pton any parent getEffectiveLevel addHandler DEBUG setLevel getLogger sha1 staticmethod request g session top render send update_template_context top update_template_context top query path url_parse format BufferedReader read TextIOWrapper isinstance write setdefault setdefault pop encode _dump_arg_defaults pop _wrap_writer_for_text _dump_arg_defaults pop decode isinstance _load_arg_defaults detect_encoding _wrap_reader_for_text _load_arg_defaults replace htmlsafe_dumps write text_type encode isinstance want_bytes want_bytes sha1 staticmethod sha1 staticmethod bytearray zip getattr make_module_async update_wrapper _get_default_module render_async generate_async render generate wrap_default_module wrap_generate_func wrap_render_func wrap_block_reference_call __call__ _invoke wrap_macro_invoke update patch_runtime patch_filters patch_template visit code_generator_class iteritems visit UndeclaredNameVisitor uaop binop TracebackFrameProxy translate_syntax_error isinstance filename get make_frame_proxy tb_lineno tb_next append reraise range get_corresponding_lineno get int iteritems pop copy split pop co_stacksize co_nlocals f_locals co_lnotab exec co_flags co_consts co_firstlineno co_code CodeType co_names co_varnames co_name startswith get_jinja_locals co_kwonlyargcount compile hasattr c_ssize_t c_int pythonapi c_int64 get Environment import_string extension isinstance _fail_with_undefined_error isinstance property set set set set value args tuple Call find_all append kwargs get import_string decode parse list frozenset Environment _CommentFinder extract_from_ast strip getbool add set preprocess lex split isinstance hasattr __html__ iter iteritems isinstance soft_unicode escape join autoescape Markup make_attrgetter getter add make_attrgetter set next make_attrgetter iter list hasattr text_type environment map escape make_attrgetter enumerate float enumerate update policies autoescape add set Markup urlize split pop join DeprecationWarning warn splitlines newline_sequence isinstance hasattr __html__ append list range len append getattr make_attrgetter make_attrgetter map isinstance str prepare_map dict policies pop make_attrgetter environment environment make_attrgetter prepare_select_or_reject func FrameSymbolVisitor visit Symbols analyze_node Symbols split append escape property get Lexer append split environment visit TrackingCodeGenerator items value isinstance template find_all Const join list islice __hash__ dict update extend as_const Optimizer append hasattr map dict iteritems _all property addHandler stderr StreamHandler getLogger _fail_with_undefined_error __self__ isinstance list range MethodType GeneratorType isinstance FunctionType isinstance frozenset __getitem__ len iter __code__ add clear join split __name__ __module__ text_type escape groups match enumerate split join endswith capitalize choice randrange split append range enumerate text_type replace isinstance url_quote encode tuple replace dumps patch_all hasattr text_type make_simple_escaping_wrapper hasattr __doc__ escape option add_option OptionGroup fmt_ctl_no_use_wheel format_control fmt_ctl_no_binary map warn format_control any only_binary no_binary dest getattr fmt_ctl_handle_mutual_exclude values only_binary dest no_binary getattr fmt_ctl_handle_mutual_exclude values append error split join list python_version pypy_version_info machine linux_distribution system dict OPENSSL_VERSION filter libc_ver startswith zip release get replace unquote search group lstrip lower raise_for_status match startswith lower url2pathname urlsplit urljoin abspath normpath pathname2url lower unpack _get_used_vcs_backend backends url backend url_without_fragment url_to_path int resp_read progress_indicator debug url_without_fragment format_size check_against_chunks getattr iter info consume written_chunks show_url join remove info move backup_dir exit copy warning filename ask_path_exists display_path exists mkdtemp _copy_file unpack_file unlink rmtree _download_http_url _check_download_dir is_dir_url isdir _check_download_dir url_without_fragment _copy_file unpack_file rmtree info check_against_path copytree url_to_path join isdir unpack_file rmtree info append unpack_file_url PipSession unpack_vcs_link unpack_http_url is_file_url is_vcs_url write_delete_marker_file get join raise_for_status guess_extension filename parse_header join filename info check_against_path exists compile replace debug search group lower startswith I compile compile clear discard add canonicalize_name split discard set only_binary no_binary fmt_ctl_handle_mutual_exclude warn fmt_ctl_no_binary join hasattr __file__ join dirname abspath update join running_under_virtualenv get_command_obj Distribution dict parse_config_files finalize_options getattr prefix hasattr startswith join get_impl_version_info map get_config_var debug get_config_var get_abbr_impl get_flag replace get_config_var mac_ver replace split OrderedDict _supports_arch append get_impl_version_info sorted list map groups add append range format get_darwin_arches reversed set startswith enumerate join int get_suffixes extend match append join hexdigest join is_wheel fmt_ctl_formats sort Wheel canonicalize_name _cache_for_link listdir append new rstrip isfile match listdir replace items RawConfigParser dict readfp has_section pop join make rstrip get_entrypoints move debug clobber distutils_scheme extend set getvalue make_multiple append sep listdir ScriptMaker root_is_purelib join reader location endswith get_metadata_lines FakeFile split tuple strip map get_metadata split parsestr join warning map VERBOSE compile int join print exit key create_main_parser lower append option_list get_installed_distributions join make_option_group disable_interspersed_args add_option_group ConfigOptionParser dirname abspath general_group get_summaries remove get_similar_commands write linesep exit create_main_parser print_help version append parse_args setlocale parseopts autocomplete install_warning_logger LC_ALL compile distutils_scheme append join max location latest_filetype dist_is_editable any latest_version append outdated text_type latest_filetype latest_version append outdated OrderedDict append join get_distribution wrap info max get working_set sorted isinstance strip close DistInfoDistribution feed get_metadata_lines get_metadata splitlines startswith append FeedParser has_metadata get strip enumerate _sort_commands items list list lower keys get_close_matches match compile configure isinstance seconds hasattr days microseconds hasattr O_RDONLY close st_uid O_NOFOLLOW open path hasattr abspath normcase get_missing_reqs list get_incompatible_reqs add requires set get requires project_name working_set sorted get_installed_distributions list search extend set get_metadata_lines from_dist append values has_metadata get_file_content preprocess process_line ignore_comments join_lines skip_regex splitlines enumerate pre urljoin require_hashes fmt_ctl_no_use_wheel search break_args_options warn parse_requirements abspath find_links get_default_values exists extra_index_urls allow_all_external editables allow_external dirname trusted_hosts encode parse_args append check_install_build_global build_parser format_control index_url requirements join extend process_dependency_links allow_unverified split append pop split add_option option_factory OptionParser append match strip strip sub filterfalse compile match group compile search group join isdir group warn match lower startswith path_to_url egg_fragment editable join _win_path_to_bytes getenv normpath expanduser _get_win_folder join getenv normpath expanduser _get_win_folder user_data_dir getenv join expanduser append getenv _get_win_folder normpath HKEY_CURRENT_USER QueryValueEx OpenKey create_unicode_buffer value GetShortPathNameW SHGetFolderPathW _warnings_showwarning issubclass getLogger error warning simplefilter showwarning decode startswith get_path_uid lexists gnu_get_libc_version decode CDLL c_char_p match warn glibc_version_string glibc_version_string running_under_virtualenv get parse strptime get_installed_version raise_for_status utcnow warning save pip_json_url load_selfcheck_statefile join SpecifierSet map parse has_metadata get close feed get_metadata FeedParser file encode getattr stdout stdout write InteractiveSpinner NonInteractiveSpinner makedirs chmod st_mode S_IREAD S_IWRITE func decode getdefaultencoding getcwd abspath startswith encode normcase sep getfilesystemencoding str exists split get print lower eval input join isfile read lstrip split_leading_dir realpath expanduser abspath endswith makedirs move removedirs split list running_under_virtualenv normalize_path prefix startswith values normalize_path dist_location join path project_name isfile join running_under_virtualenv virtualenv_no_global isfile append project_name egg_link_path close ioctl_GWINSZ umask join read write infolist dirname filename ensure_dir ZipFile open getmembers has_leading_dir join extractfile chmod isdir endswith name issym current_umask close utime mode warning dirname ensure_dir _extract_member open untar_file realpath unzip_file unpack critical update join readline rstrip replace debug wait copy returncode console_to_str warning finish info append PIPE spin Popen decode write_delete_marker_file makedirs from_stream setattr getattr WorkingSet parse find deque hasattr urlsplit split warning get_backend_from_location locals format __import__ globals makedirs update fromkeys items list globals items list globals clear update __setstate__ get_build_platform match _template getattr isinstance readPlist hasattr append exists split _macosx_vers replace get_platform int match group clear f_globals string_types get_provider parse isinstance evaluate_marker Marker namedtuple MemoizedZipManifests _find_adapter get_importer join _is_egg_path endswith zipimporter EggMetadata resource_listdir has_metadata dist_factory join _is_unpacked_egg _normalize_cached _by_version_descending safe_listdir factory endswith lower any map PY2 basename isdir PathMetadata FileMetadata dirname non_empty_lines list map get _rebuild_mod_path _find_adapter ModuleType handler get_importer load_module append _set_parent_ns find_module __path__ sort join _handle_ns setdefault __import__ acquire_lock append __path__ get _handle_ns acquire_lock join __path__ _normalize_cached pop join setattr split string_types isinstance strip splitlines compile urlparse startswith list partition filter iter next compile globals warn endswith yield_lines strip iter getmro _always_object type getattr dirname makedirs mkdir split endswith strip yield_lines startswith append open f update ResourceManager run_script update iter_entry_points list locals tuple require add_activation_listener map _build_master path add_entry _declare_state subscribe join getenv normpath expanduser _get_win_folder getenv join site_data_dir user_data_dir join expanduser user_cache_dir str GetShortPathName SHGetFolderPath getattr MAX_PATH SHGFP_TYPE_CURRENT rstrip SHGetFolderPath INSTANCE getattr GetShortPathName zeros ShlObj __import__ _get_module name setattr delattr tp get stdout pop _print flush __str__ isinstance isinstance get join serialize Specifier get value isinstance _get_env _eval_op append format releaselevel name format_full_version hasattr version VERBOSE IGNORECASE compile VERBOSE IGNORECASE compile search extend groups append split list insert append max takewhile len get split pop tuple lower startswith append _parse_version_parts VERBOSE IGNORECASE compile lower tuple list dropwhile reversed driver join copystat copyfile progress_filter ensure_directory walk open locals replace exec close compile setdefault _fix_config _fix_config _fix_config _run_setup join rmtree move _run_setup _fix_config rmtree abspath copytree _run_setup _fix_config rmtree abspath copytree chdir getcwd parse_configuration Distribution parse_config_files dirname abspath command_options append section_prefix defaultdict set_options getter target_obj getattr metadata ConfigMetadataHandler parse ConfigOptionsHandler pop split load read get_frozen_object load_module find_module compile Bytecode arg index opcode remove append newer_group range len warn get_long_description get_obsoletes get_description get_version list sorted rfc822_escape hasattr long_description_content_type download_url get_contact_email get_url get_keywords _write_list getattr python_requires PY2 get_provides _encode_field get_name get_contact get_requires get_metadata_version get_platforms provides_extras items join get_classifiers write get_license parse rpartition assert_string_list warn items list starmap list parse_requirements partition parse_requirements isinstance SpecifierSet parse_map iter items list isinstance warn build_ext next _iglob lexists isdir has_magic glob1 glob2 glob_in_dir split encode listdir curdir isinstance join lexists isdir _rlistdir curdir isinstance binary_type listdir search isinstance isinstance splitdrive sub isinstance read replace exec dict getattr compile next _patch_distribution_metadata_write_pkg_info _patch_distribution_metadata_write_pkg_file Extension Distribution Command findall patch_for_msvc_specialized_compiler write_pkg_file write_pkg_info setattr getattr setdefault patch_func import_module partial join get_value isfile get_unpatched format lower get endswith lower startswith urlparse unquote split egg_info_for_url group distros_for_location match interpret_distro_name endswith parse_bdist_wininst Wheel len range split filterfalse seen_add __contains__ add set key strip search map groups set find finditer split compile group encode decode encodestring unquote str endswith url splituser urlunparse Request opener _encode_auth add_header info find_credential urlparse join format isdir url2pathname isfile append listdir urlparse StringIO format warn exec compile tempdir makedirs chdir getcwd update resume _clear_modules copy list __getstate__ join compile list _clear_modules filter modules dirname abspath _mk_single_path_wrapper hasattr _mk_query _mk_single_with_return _mk_dual_path_wrapper fromkeys lstrip get makepath insert len dict path getattr dirname pathsep load_module append find_module addsitedir split join replace escape split append IGNORECASE compile count get _dnsname_match append CertFile addstore list filter isfile decode text_type isinstance encode normalize text_type isinstance join list relpath reversed renames rmdir walk enumerate SetFileAttributesW SetFileAttributes __import__ BOOL setup_requires Distribution dict fetch_build_eggs parse_config_files _install_setup_requires __doc__ list partial relpath map _find_all_simple boolean_options user_options endswith sort walk lstrip remove next sorted_walk join list items walk_egg exists join list items close write unlink exists open load join read replace fromkeys close warn iter_symbols sep open string_types isinstance co_consts co_names warn close sorted_walk visit mkpath dirname info ZipFile customize_compiler copy link SHARED_LIBRARY filterfalse seen_add __contains__ add set key lstrip boolean_options user_options normpath text_type USER_SITE lstrip dict dedent append ENABLE_USER_SITE pathsep split get join list getsitepackages exec_prefix extend map USER_SITE append _pythonpath ENABLE_USER_SITE join list rstrip normalize_path close yield_lines listdir open decode read seek RawConfigParser readfp unpack _EndRecData getfilesystemencoding StringIO open decode read replace endswith insert sort infolist yield_lines reverse PY3 filename append ZipFile split _one_liner isinstance pattern reraise exc_info chmod S_IWRITE _remove_and_clear_zip_directory_cache_data normalize_path path_importer_cache _uncache _replace_zip_directory_cache_data append normalize_path len _collect_zipimporter_cache_entries _update_zipimporter_cache _update_zipimporter_cache _zip_directory_cache compile is_python startswith debug _chmod dict dict lstrip replace is_64bit resource_string PY2 append main dirname lstrip gen_usage escape split sep enumerate len encode join egg_info distribution write_safety_flag metadata getattr info exists warn list sorted map yield_lines writelines sorted _write_requirements format distribution install_requires write getvalue write_or_delete_file StringIO _write_requirements setup_requires getvalue write_or_delete_file StringIO join sorted write_file fromkeys write_arg distribution join write_or_delete_file getattr join parse_group sorted list items map entry_points append write_or_delete_file values exists warn boolean_options user_options dict __doc__ iter_entry_points tuple items read list RawConfigParser add_section debug remove_section remove_option set info boolean_options user_options boolean_options iteritems isinstance calls_update decode text_type isinstance cache_property cache_property cache_property _callback_property property auth_property staticmethod _set_property frozenset get iteritems issubclass code append globals __name__ format getfilesystemencoding warn append split _line_parse to_native isinstance isinstance str isinstance issubset bytes_to_wsgi set append iteritems append iteritems isinstance append _parse_list_header unquote_header_value cls unquote_header_value _parse_list_header bytes_to_wsgi split get decode replace group unquote_header_value groups match append min group append float max finditer wsgi_to_bytes lower parse_dict_header split lower split parse_date int strip lower startswith append split int isdigit is_byte_range_valid split strip startswith end groups match append len strip parsedate_tz gmtime isinstance utctimetuple int seconds int days isinstance get replace isinstance parse_date parse_etags contains_weak contains parse_if_range_header date generate_etag unquote_etag set get encode isinstance _cookie_quote join time _make_cookie_domain text_type append isinstance bytearray bytes decode format to_bytes warn iri_to_uri seconds cookie_date days len __release_local__ property _rename_atomic get_filesystem_encoding to_unicode sleep _MoveFileEx _MoveFileTransacted _CreateTransaction _CommitTransaction sleep _rename _pythonize group finditer append groupdict end set add match do_match len ImmutableDict pbkdf2_bin hashfunc getattr callable to_bytes encode isinstance zip pop isinstance pbkdf2_hex startswith encode _create_mac hexdigest split callable _hash_internal split int set_serial_number random get_issuer gmtime_adj_notAfter get_subject O generate_key set_pubkey sign TYPE_RSA CN _get_openssl_crypto_module X509 maxsize PKey gmtime_adj_notBefore generate_adhoc_ssl_pair dump_certificate remove dump_privatekey write close load_ssl_context mkstemp FILETYPE_PEM _get_openssl_crypto_module register generate_adhoc_ssl_pair _SSLContext load_cert_chain PROTOCOL_SSLv23 startswith SOCK_STREAM IPPROTO_TCP getaddrinfo listen SharedDataMiddleware select_address_family log_startup str socket hasattr setsockopt SO_REUSEADDR SOCK_STREAM SOL_SOCKET bind set_inheritable close get_sockaddr unlink fileno DebuggedApplication _log run_with_reloader inner import_string add_option run_simple OptionParser address write exit parse_args split str int seek reader iterlists tell write to_bytes MultiDict getattr write_binary stream_encode_multipart warn iterlists iteritems isinstance form_property staticmethod dumps property EnvironBuilder list app ClosingIterator _get_environ getattr iter append chain getcwd join path abspath items sorted list iter_sys_path version append Request render_testapp Response bytearray frozenset isinstance extend iter encode next append split iter_multi_items sorted encode isinstance min split s find make_literal_wrapper len encode bytearray frozenset isinstance text_type bytearray frozenset isinstance extend encode append normalize_string_tuple make_literal_wrapper s decode _unquote_to_bytes replace isinstance replace url_quote_plus url_quote query path fragment url_parse decode _fast_url_quote isinstance url_unquote to_unicode path query fragment url_parse url_unparse isinstance url_quote to_unicode path query to_native encode url_parse fragment url_unparse encode decode make_chunk_iter _url_decode_impl try_coerce_native s make_literal_wrapper url_unquote_plus split to_native write enumerate _url_encode_impl to_native join isinstance len s split normalize_string_tuple url_parse make_literal_wrapper url_unparse compile UserAgentParser copy compile decode replace isinstance strip encode replace warn text_type Response iri_to_uri escape isinstance get strip rsplit locals replace __import__ globals import_string iter_modules getattr __name__ _parse_signature tuple set zip warn rstrip get_query_string url_quote lstrip append cat startswith isinstance _normalize get get get_content_length get wsgi_get_bytes get wsgi_get_bytes get wsgi_get_bytes get lstrip wsgi_get_bytes split split rstrip isinstance uri_to_iri get_current_url _normalize_netloc read LimitedStream isinstance _read _iter_basic_lines _make_chunk_iter chain next make_literal_wrapper s join _join isinstance len _make_chunk_iter to_bytes _split to_unicode append chain next split __next__ __str__ __bool__ any isinstance isinstance getattr any parent getEffectiveLevel rstrip getLogger addHandler StreamHandler setLevel INFO get getargspec getfullargspec hasattr isinstance tuple append enumerate __func__ len toordinal isinstance utctimetuple get bytearray extend iter_bytes _push _lookup int bytearray search extend start _push append len end strip search len encode decode enumerate split decode isinstance split encode enumerate _encode_idna join join list getattr dirname values list add set getattr dirname abspath values pop argv __package__ extend abspath append clear sorted setdefault _walk set staticmethod sleep stdin tcsetattr tcgetattr TCSANOW Thread setDaemon exit start SIGTERM signal restart_with_reloader ensure_echo_on run tzinfo isoformat hasattr next isinstance iter isinstance staticmethod hasattr encode __slots__ lookup property property compile _write f_locals dump_locals dump_object DebugReprGenerator isinstance __module__ _sequence_repr_maker exc_info range_type tb_next filter_hidden_frames reraise Traceback warn encode isinstance _generate get update join isinstance md5 getuser getattr __class__ encode chain property warn property environ_property shallow isinstance warn isinstance isinstance property environ_property header_property _set_property property header_property | serenera/Serenera | 3,582 |
sergivalverde/cnn-ms-lesion-segmentation | ['lesion segmentation'] | ['Improving automated multiple sclerosis lesion segmentation with a cascaded 3D convolutional neural network approach'] | data_utils.py metrics.py build_model_nolearn.py base.py config.py train_leave_one_out.py train_cascaded_model test_scan post_process_segmentation test_cascaded_model load_test_patches get_mask_voxels load_training_data select_voxels_from_previous_model load_train_patches get_patches select_training_voxels cascade_model Rotate_batch_Iterator train_cascaded_model test_scan post_process_segmentation test_cascaded_model load_test_patches get_mask_voxels load_training_data select_voxels_from_previous_model load_train_patches get_patches select_training_voxels DSC rtpf ftpf vol_dif print shape load_training_data fit join test_scan print post_process_segmentation mkdir seed max list permutation squeeze astype keys stack select_voxels_from_previous_model load_train_patches append randint expand_dims select_training_voxels seed concatenate list get_mask_voxels get_patches append keys range len stack nonzero tuple pad all join list zeros_like squeeze load_test_patches get_data Nifti1Image load_nii predict_proba stack to_filename keys list keys join zeros_like labeled_comprehension to_filename where Nifti1Image stack unique eye label sum range len join Conv3DLayer Pool3DLayer DropoutLayer batch_norm print load_params_from DenseLayer mkdir InputLayer NeuralNet len eye select_training_voxels logical_and bool sum astype bool astype | # WARNING: *DEPRECATED*: This repository is not maintained anymore. For a new version of the toolbox, see [nicMSlesions](https://github.com/sergivalverde/nicMSlesions). # Multiple Sclerosis (MS) lesion segmentation of MRI images using a cascade of two 3D convolutional neural networks This repository implements the method proposed in the [NeuroImage publication](https://doi.org/10.1016/j.neuroimage.2017.04.034), but an electronic preprint is available from [Arxiv](http://arxiv.org/abs/1702.04869): ``` Valverde, S., Cabezas, M., Roura, E., González-Villà, S., Pareto, D., Vilanova, J. C., … Lladó, X. (2017). Improving automated multiple sclerosis lesion segmentation with a cascaded 3D convolutional neural network approach. NeuroImage, 155, 159–168. https://doi.org/10.1016/j.neuroimage.2017.04.034 ``` | 3,583 |
sergts/botnet-traffic-analysis | ['anomaly detection'] | ['N-BaIoT: Network-based Detection of IoT Botnet Attacks Using Deep Autoencoders'] | classification/train.py classification/experiment.py anomaly-detection/test.py jupyter/utils.py anomaly-detection/train.py download_data.py classification/test.py download_mirai download_gafgyt read_config download_device download get_one_hot AnomalyModel test test_with_data load_mal_data train create_model ModelWrapper test_with_data ModelWrapper test train_with_data train create_model load_data plot_confusion_matrix list download_mirai download_gafgyt read_config download_device keys print download exists mkdir print download exists mkdir print download exists mkdir iglob concat append DataFrame read_csv test_with_data load_mal_data concat save_to_file accuracy_score DataFrame values scale_predict_classes load_model AnomalyModel precision_score append range predict explain_instance recall_score sample as_list LimeTabularExplainer print confusion_matrix split transform randint StandardScaler read_csv fit concat max values TensorBoard append sum predict create_model mean sample power compile print min split transform ModelCheckpoint StandardScaler std read_csv fit int Dense Sequential add load_data ModelWrapper drop get_dummies argmax scale_predict tolist train_test_split evaluate print concat sample shape append Activation range train_with_data load_data drop get_dummies argmax values open TensorBoard train_test_split predict dump create_model compile evaluate print confusion_matrix transform ModelCheckpoint StandardScaler read_csv fit list format arange product print yticks text xlabel astype ylabel colorbar tight_layout imshow title xticks max range len | # botnet-traffic-analysis This is a project for my thesis for IoT botnet traffic analysis *DETECTING, CLASSIFYING AND EXPLAINING IOT BOTNET ATTACKS USING DEEP LEARNING METHODS BASED ON NETWORK DATA* Abstract: The growing adoption of Internet-of-Things devices brings with it the increased participation of said devices in botnet attacks, and as such novel methods for IoT botnet attack detection are needed. This work demonstrates that deep learning models can be used to detect and classify IoT botnet attacks based on network data in a device agnostic way and that it can be more accurate than some more traditional machine learning methods, especially without feature selection. Furthermore, this works shows that the opaqueness of deep learning models can mitigated to some degree with Local Interpretable Model-Agnostic Explanations technique. ---------------------- It additionally attempts to reproduce results from this paper https://arxiv.org/abs/1805.03409 This is the dataset used https://archive.ics.uci.edu/ml/machine-learning-databases/00442/ | 3,584 |
seth814/Audio-Classification | ['data augmentation'] | ['Kapre: On-GPU Audio Preprocessing Layers for a Quick Implementation of Deep Neural Network Models with Keras'] | clean.py train.py predict.py models.py downsample_mono split_wavs test_threshold envelope check_dir save_sample Conv2D Conv1D LSTM make_prediction train DataGenerator append abs max apply int16 read T resample rate reshape astype float32 to_mono join str format write exists mkdir join delta_time format int arange dst_root glob check_dir downsample_mono sr tqdm src_root zeros envelope listdir enumerate save_sample show str format use threshold plot print glob downsample_mono grid sr fn title legend src_root envelope Model get_melspectrogram_layer output compile Model get_melspectrogram_layer output compile concatenate output Model get_melspectrogram_layer compile sr LabelEncoder save argmax sorted load_model model_fn dt append envelope src_dir fit_transform range predict format glob mean pred_fn listdir enumerate int join print reshape downsample_mono tqdm zeros array delta_time batch_size warn LabelEncoder src_root sorted model_type train_test_split format DataGenerator glob set listdir join sample_rate fit CSVLogger transform ModelCheckpoint len | seth814/Audio-Classification | 3,585 |
seung-lab/znn-release | ['boundary detection'] | ['Recursive Training of 2D-3D Convolutional Networks for Neuronal Boundary Detection'] | python/front_end/znetio.py python/train.py python/front_end/zdataset.py python/emirt/label2omni/label2omni.py python/malis/malis_show.py python/malis/data_prepare.py python/emirt/compare_vols.py docs/conf.py python/emirt/show.py benchmark/Theano/benchmark_convnet.py python/emirt/volume_util.py python/front_end/__init__.py python/emirt/emos.py python/aws_train/aws_train.py python/front_end/zsample.py python/refactoring/tensor.py python/emirt/__init__.py python/emirt/mirror_data.py python/front_end/zlog.py benchmark/Theano/benchmark_forward.py python/tifffile.py python/emirt/convert_to_hdf5.py python/emirt/setup.py python/refactoring/volume.py python/forward.py python/front_end/zconfig.py python/zcheck.py python/emirt/domains.py benchmark/Theano/maxpool3d.py python/zstatistics.py python/emirt/emio.py python/front_end/zshow.py python/refactoring/coordinate.py python/test.py python/emirt/cynn/__init__.py python/malis/test.py python/tests/test_seg.py python/cost_fn.py python/utils.py evaluate_convnet Conv3DLayer random_matrix max_pool_3d constrained_malis_weight_bdm_2D binomial_cross_entropy softmax_loss malis_weight_bdm constrained_malis malis_weight square_loss softmax_loss2 constrain_label softmax multinomial_cross_entropy square_square_loss get_cls _single_test znn_test TiffPage read_mm_stamp read_json TiffSequence datetime_from_timestamp TiffTags imagej_description _replace_by read_cz_lsm_time_stamps read_nih_image_header decodepackbits decodelzw imshow read_bytes _app_show TiffFile unpackrgb imread imsave read_mm_uic2 natural_sorted format_size numpy_fromfile read_numpy read_cz_lsm_event_list read_mm_uic1 main lazyattr unpackints read_mm_uic4 Record TIFF_SUBFILE_TYPES read_cz_lsm_scan_info reorient test_tifffile read_mm_header imagej_metadata read_micromanager_metadata TiffTag stripnull read_mm_uic3 read_cz_lsm_info main parse_args check_gradient check_dict_all_zero check_patch CLearnCurve main ThreadRun node_search main load_data main write_channel_file write_affinity_file CDomainLabelSizes CDisjointSets CDomains znn_img_read h5write znn_img_save write_for_znn h5read tif2h5 imread imsave mkdir_p main mirror_data compare_volumes matshow random_color_show imshow VolSlider CompareVol progress bdm2seg aff2seg norm seg2aff bdm2seg_2D add_boundary_3D add_boundary_im lbl_RGB2uint32 bdm2aff mark_bd relabel_1N add_boundary_2D crop crop3d segment chann check_config parser ConfigImage ConfigOutputLabel ConfigInputImage CDataset record_config_file make_logfile_name create_net init_network load_opts save_opts save_network consolidate_opts load_network find_load_net assert_arglist get_net_fname ConfigSampleOutput CBoundarySample CSamples CAffinitySample CSample inter_show make_fake_3D_aff make_fake_2D_bdm read_image make_unique_bdm read_bin_img plot plot_aff plot_bdm rescale compute_gradient combine2rgb disk_plot aleks_malis constrained_aleks_malis make_edge_unique aleks_bin_malis get_params exchange_x_z TensorData RWTensorData RWVolumeData VolumeData evaluate_convnet Conv3DLayer random_matrix max_pool_3d constrained_malis_weight_bdm_2D binomial_cross_entropy softmax_loss malis_weight_bdm constrained_malis malis_weight square_loss softmax_loss2 constrain_label softmax multinomial_cross_entropy square_square_loss get_cls _single_test znn_test TiffPage read_mm_stamp read_json TiffSequence datetime_from_timestamp TiffTags imagej_description _replace_by read_cz_lsm_time_stamps read_nih_image_header decodepackbits decodelzw imshow read_bytes _app_show TiffFile unpackrgb imread imsave read_mm_uic2 natural_sorted format_size numpy_fromfile read_numpy read_cz_lsm_event_list read_mm_uic1 main lazyattr unpackints read_mm_uic4 Record TIFF_SUBFILE_TYPES read_cz_lsm_scan_info reorient test_tifffile read_mm_header imagej_metadata read_micromanager_metadata TiffTag stripnull read_mm_uic3 read_cz_lsm_info main parse_args check_gradient check_dict_all_zero check_patch CLearnCurve ThreadRun node_search load_data main write_channel_file write_affinity_file CDomainLabelSizes CDisjointSets CDomains znn_img_read h5write znn_img_save write_for_znn h5read tif2h5 imread imsave mkdir_p mirror_data compare_volumes matshow random_color_show imshow VolSlider CompareVol progress bdm2seg aff2seg norm seg2aff bdm2seg_2D add_boundary_3D add_boundary_im lbl_RGB2uint32 bdm2aff mark_bd relabel_1N add_boundary_2D crop crop3d segment chann check_config parser ConfigImage ConfigOutputLabel ConfigInputImage CDataset record_config_file make_logfile_name create_net init_network load_opts save_opts save_network consolidate_opts load_network find_load_net assert_arglist get_net_fname ConfigSampleOutput CBoundarySample CSamples CAffinitySample CSample inter_show make_fake_3D_aff make_fake_2D_bdm read_image make_unique_bdm read_bin_img plot plot_aff plot_bdm rescale compute_gradient combine2rgb disk_plot aleks_malis constrained_aleks_malis make_edge_unique aleks_bin_malis get_params exchange_x_z TensorData RWTensorData RWVolumeData VolumeData train_model Conv3DLayer format RandomState function print grad output default_timer params random_matrix lscalar append sum range join shape_padright DownsampleFactorMax dimshuffle reshape ndim op cast as_tensor prod dict items mask_dict_vol list dict items mask_dict_vol list dict items mask_dict_vol list items list mask_dict_vol dict log items list exp dict shape empty sum max range items list mask_dict_vol dict log softmax sum list exp items print logaddexp dict shape empty max copy constrain_label zalis malis_weight_bdm_2D constrain_label malis_weight_bdm_2D reshape range shape empty bdm2seg items list malis_weight_bdm constrained_malis dict float zalis get_random_sample get_rand_error make_continuous get_malis_cost malis_weight forward get_cls print append_test_malis_eng set_phase append_test append_test_malis_cls _single_test range join sorted asarray atleast_2d itemsize addtag reshape strftime shape rational glob isinstance read unpack numpy_fromfile numpy_fromfile read unpack read unpack stripnull read unpack append Record pop read unpack stripnull setattr append newbyteorder update get dict unpack func zip append range dtype strip splitlines split read read_json seek unpack result_extend func extend table_append next_code extend warn unpack append result_append len dtype int unpackbits char reshape fromstring empty unpack next range len dtype sum int itemsize byteorder char fromstring astype empty next enumerate get find compile join time asarray print glob lower TiffFile on_changed max log subplot str atleast_2d itemsize list squeeze colorbar title ceil mpl_connect astype swapaxes enumerate int rc min ndim subplots_adjust figure show verbose opt is_palette dtype add_option argv doctest hasattr use testmod shape series getattr TiffFile append parse_args OptionParser glob close test upper version enumerate Record join time tags test_tifffile print error micromanager_metadata is_micromanager any is_ome seed record_config_file print warn parser make_logfile_name dict_mul znn_test get_malis_cost save get_net_fname forward get_last_it create_net write_to_log set_eta check_patch range get_outputs_setsz malis_weight save_network CSamples append_train_malis_eng get_random_sample backward get_total_num append_train_malis_cls make_continuous append_train dict_mask_empty inter_save items get_random_sample list deepcopy print abs make_continuous maximum dict CompareVol vol_compare_slice forward print list all values items get_random_sample list print File close dirname exists nodes wait_for_ssh getfloat wait_for_volume open sleep get wait_for_cluster format node_search ConfigParser get_config getint execute add_node read has_option write add_tag get_volume ThreadRun wait_for_propagation File znn_img_read vol_compare_slice CompareVol norm tuple File astype close shape create_dataset tuple File astype close shape create_dataset basename znn_img_read write_affinity_file crop write_channel_file asarray print File close print File znn_img_save close create_dataset reshape replace tofile astype replace File close create_dataset str asarray tofile write shape mkdir_p open File close create_dataset File close value makedirs shape array zeros tuple znn_img_save mirror_data array vol_compare_slice CompareVol show str list zip set_xlabel add_subplot ravel shape figure annotate meshgrid round range show ListedColormap print rand shape imshow max int float round write astype shape range nonzero copy shape range add_boundary_im reshape copy add_boundary_im shape nonzero range int astype shape any zeros array max min astype flatten reshape unique shape dtype reshape min shape zeros range join isinstance reshape size find_root copy shape mark_bd range CDisjointSets reshape range zeros shape union_tree arange ones reshape size find_root shape mark_bd relabel_1N range size dict unique range len reshape shape bdm2seg_2D empty max range remove norm File close create_dataset imread exists remove print File astype close unique create_dataset imread exists get int read asarray replace has_option ConfigParser cpu_count getboolean dict getfloat getint check_config parseIntSet array get binomial_cross_entropy softmax_loss replace set square_loss sections square_square_loss format copy timestamp mkdir dirname isfile assert_arglist format timestamp mkdir dirname assert_arglist all isinstance list File close keys create_dataset array range len print mkdir format dirname splitext remove print save_opts get_opts exists str value print tuple File append list format print keys range len int print init_network load_opts consolidate_opts isfile assert_arglist get_opts int assert_arglist print init_network set_eta set_momentum load_network set_weight_decay find_load_net CLearnCurve subplot plot xlabel popitem tt_cls tt_err tn_err tn_cls tn_it tt_it crop ones zeros zeros seg2aff print ones copy lbl_RGB2uint32 fill_boundary_holes imread binary_erosion astype min max rescale zeros shape all rescale argsort scatter nonzero annotate max show subplot xlabel imshow combine2rgb disk_plot log show subplot print xlabel abs copy imshow compute_gradient combine2rgb disk_plot log plot_bdm plot_aff fromfile reshape dict copy seg2aff print astype ascontiguousarray zalis exchange_x_z reshape tofile system astype ascontiguousarray shape constrain_label aleks_malis range | ZNN ====== [](https://travis-ci.org/seung-lab/znn-release) ZNN is a multicore CPU implementation of deep learning for sliding window convolutional networks. This type of ConvNet is used for image-to-image transformations, i.e., it produces dense output. Use of ZNN is currently deprecated, except for the special case of 3D kernels that are 5x5x5 or larger. In this case, the FFT-based convolutions of ZNN are able to compensate for the lower FLOPS of most CPUs relative to GPUs. For most dense output ConvNet applications, we are currently using https://github.com/torms3/DataProvider with Caffe or TensorFlow. ZNN will be superseded by ZNNphi, which is currently in preparation. By vectorizing direct convolutions, ZNNphi more efficiently utilizes the FLOPS of multicore CPUs for 2D and small 3D kernels. This includes manycore CPUs like Xeon Phi Knights Landing, which has narrowed the FLOPS gap with GPUs. Resources --------- * [**Documentation**](http://znn-release.readthedocs.org/en/latest/index.html#) * [**Slides: How to ZNN**](https://docs.google.com/presentation/d/1B5g4lgnHN92fD5bkqDCAHraGZL3lz3Df6G-QiYrEWPg/edit?usp=sharing) | 3,586 |
seungryong/FCSS | ['semantic correspondence'] | ['FCSS: Fully Convolutional Self-Similarity for Dense Semantic Correspondence'] | matconvnet-1.0-beta23/utils/proto/caffe_pb2.py vlfeat-0.9.20/docsrc/mdoc.py vlfeat-0.9.20/docsrc/webdoc.py matconvnet-1.0-beta23/doc/matdocparser.py matconvnet-1.0-beta23/utils/proto/vgg_caffe_pb2.py matconvnet-1.0-beta23/doc/matdoc.py matconvnet-1.0-beta23/utils/proto/caffe_fastrcnn_pb2.py matconvnet-1.0-beta23/utils/proto/caffe_b590f1d_pb2.py vlfeat-0.9.20/docsrc/doxytag.py vlfeat-0.9.20/docsrc/formatter.py matconvnet-1.0-beta23/utils/proto/caffe_old_pb2.py matconvnet-1.0-beta23/utils/proto/caffe_6e3916_pb2.py matconvnet-1.0-beta23/utils/proto/caffe_0115_pb2.py matconvnet-1.0-beta23/utils/layers.py vlfeat-0.9.20/docsrc/wikidoc.py matconvnet-1.0-beta23/utils/import-caffe.py extract render_L render_V render_P render_DIVL render_DH render_BL render_L_from_indent render_SL render_S render Context render_DI Frame render_B findNextFunction getFunctionDoc readText MatlabFunction render_DL clean Lexer P PL Parser BH EOF DI L DL SL BL DH DIVL Terminal S DIV NonTerminal B V Symbol blobproto_to_array versiontuple dict_to_struct_array keyboard tolist escape bilinear_interpolate getopts find rowcell CaffeInnerProduct ConversionError CaffeScale CaffeBatchNorm CaffeLayer CaffeCrop CaffeConcat CaffeConv CaffePooling CaffeData reorder CaffeElementWise getFilterOutputSize CaffeROIPooling CaffeSoftMaxLoss CaffeReLU getFilterTransform CaffeModel CaffeTransform CaffeDeconvolution row dictToMatlabStruct rowarray CaffeBlob transposeTransform CaffeDropout CaffeLRN CaffeEltWise composeTransforms CaffeSoftMax HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter SliceParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter PoolingParameter DropoutParameter Datum SigmoidParameter AccuracyParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter InfogainLossParameter HDF5DataParameter ThresholdParameter ReductionParameter HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter LossParameter SliceParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter SPPParameter ParamSpec EmbedParameter SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter PoolingParameter DropoutParameter Datum SigmoidParameter BlobShape ExpParameter AccuracyParameter LogParameter ThresholdParameter TileParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter ReshapeParameter InfogainLossParameter V1LayerParameter HDF5DataParameter PReLUParameter FlattenParameter PythonParameter ReductionParameter HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter LossParameter SliceParameter BatchNormParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter SPPParameter ParamSpec EmbedParameter SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter BiasParameter PoolingParameter DropoutParameter Datum SigmoidParameter BlobShape ExpParameter AccuracyParameter LogParameter ThresholdParameter TileParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter ELUParameter ReshapeParameter InfogainLossParameter ScaleParameter V1LayerParameter HDF5DataParameter PReLUParameter FlattenParameter PythonParameter ROIPoolingParameter HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter LossParameter SliceParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter ParamSpec SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter PoolingParameter DropoutParameter Datum SigmoidParameter BlobShape ExpParameter AccuracyParameter ThresholdParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter InfogainLossParameter V1LayerParameter HDF5DataParameter PReLUParameter PythonParameter NetParameter LayerConnection BlobProto BlobProtoVector LayerParameter FillerParameter Datum SolverParameter SolverState BlobProto BlobProtoVector PowerParameter LayerParameter FillerParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState WindowDataParameter HDF5OutputParameter ConcatParameter DataParameter SolverParameter NetParameter PoolingParameter DropoutParameter Datum MemoryDataParameter LRNParameter ImageDataParameter InfogainLossParameter HDF5DataParameter NetParameter EvalHistoryIter LayerConnection BlobProto BlobProtoVector LayerParameter FillerParameter Datum EvalHistory SolverParameter SolverState Doxytag Terminal Lexer B PL L lex Formatter DL BL E extract towiki depth_first breadCrumb MFile Node runcmd xscan wikidoc usage search clean match strip group append getFunctionDoc findNextFunction print print print children render_SL print pop render_DH print Frame push render_DIVL children render_DI print children render_L print pop children render_L_from_indent isa Frame render_B push indent pop children Frame push render_DIVL children render_BL render_V render_S render_DL isa render_P print Context render_DIVL dim tolist hasattr list empty keys RepeatedScalarFieldContainer isinstance update print f_locals interact copy reshape asarray astype clip hasattr list ndarray isinstance append empty keys CaffeTransform CaffeTransform bullet indent inner_content PL group match DL BL len pid Popen waitpid children group lstrip match startswith open join addMFile addChildNode print sort MFile Node match listdir __next__ prev runcmd join wikidoc print print insert print readlines close len writelines append range exists open | # FCSS (Fully Convolutional Self-Similarity) Descriptor > Version 1.0 (14 Aug. 2017) > > Contributed by Seungryong Kim ([email protected]). This code is written in MATLAB, and implements the FCSS descriptor [[project website](https://seungryong.github.io/FCSS/)]. ## Dependencies ## - Download [[VLFeat](http://www.vlfeat.org/)] and [[MatConvNet](http://www.vlfeat.org/matconvnet/)]. - Download the datasets: - [[Taniai Benchmark](http://taniai.space/projects/cvpr16_dccs/)]; - [[Proposal Flow Benchmark](http://www.di.ens.fr/willow/research/proposalflow/)]; | 3,587 |
seungryong/JCNF | ['depth estimation', 'intrinsic image decomposition'] | ['Unified Depth Prediction and Intrinsic Image Decomposition from a Single Image via Joint Convolutional Neural Fields'] | Dependencies/matconvnet-1.0-beta25/doc/matdocparser.py Dependencies/vlfeat-0.9.20/docsrc/doxytag.py Dependencies/matconvnet-1.0-beta25/utils/proto/caffe_old_pb2.py Dependencies/matconvnet-1.0-beta25/utils/import-caffe.py Dependencies/matconvnet-1.0-beta25/utils/proto/caffe_pb2.py Dependencies/matconvnet-1.0-beta25/utils/layers.py Dependencies/matconvnet-1.0-beta25/utils/proto/vgg_caffe_pb2.py Dependencies/vlfeat-0.9.20/docsrc/formatter.py Dependencies/vlfeat-0.9.20/docsrc/mdoc.py Dependencies/vlfeat-0.9.20/docsrc/webdoc.py Dependencies/matconvnet-1.0-beta25/doc/matdoc.py Dependencies/matconvnet-1.0-beta25/utils/proto/caffe_0115_pb2.py Dependencies/matconvnet-1.0-beta25/utils/proto/caffe_b590f1d_pb2.py Dependencies/vlfeat-0.9.20/docsrc/wikidoc.py Dependencies/matconvnet-1.0-beta25/utils/proto/caffe_fastrcnn_pb2.py Dependencies/matconvnet-1.0-beta25/utils/proto/caffe_6e3916_pb2.py extract render_L render_V render_P render_DIVL render_DH render_BL render_L_from_indent render_SL render_S render Context render_DI Frame render_B findNextFunction getFunctionDoc readText MatlabFunction render_DL clean Lexer P PL Parser BH EOF DI L DL SL BL DH DIVL Terminal S DIV NonTerminal B V Symbol blobproto_to_array versiontuple dict_to_struct_array keyboard tolist escape bilinear_interpolate getopts find rowcell CaffeInnerProduct ConversionError CaffeScale CaffeBatchNorm CaffeLayer CaffeCrop CaffeConcat CaffeConv CaffePooling CaffeData reorder CaffeElementWise getFilterOutputSize CaffeROIPooling CaffeSoftMaxLoss CaffeReLU getFilterTransform CaffeModel CaffeTransform CaffeDeconvolution row dictToMatlabStruct rowarray CaffeBlob transposeTransform CaffeDropout CaffeLRN CaffeEltWise composeTransforms CaffeSoftMax HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter SliceParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter PoolingParameter DropoutParameter Datum SigmoidParameter AccuracyParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter InfogainLossParameter HDF5DataParameter ThresholdParameter ReductionParameter HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter LossParameter SliceParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter SPPParameter ParamSpec EmbedParameter SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter PoolingParameter DropoutParameter Datum SigmoidParameter BlobShape ExpParameter AccuracyParameter LogParameter ThresholdParameter TileParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter ReshapeParameter InfogainLossParameter V1LayerParameter HDF5DataParameter PReLUParameter FlattenParameter PythonParameter ReductionParameter HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter LossParameter SliceParameter BatchNormParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter SPPParameter ParamSpec EmbedParameter SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter BiasParameter PoolingParameter DropoutParameter Datum SigmoidParameter BlobShape ExpParameter AccuracyParameter LogParameter ThresholdParameter TileParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter ELUParameter ReshapeParameter InfogainLossParameter ScaleParameter V1LayerParameter HDF5DataParameter PReLUParameter FlattenParameter PythonParameter ROIPoolingParameter HingeLossParameter BlobProto BlobProtoVector NetStateRule LayerParameter PowerParameter FillerParameter ArgMaxParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState EltwiseParameter LossParameter SliceParameter WindowDataParameter DummyDataParameter HDF5OutputParameter TanHParameter TransformationParameter SoftmaxParameter ConcatParameter DataParameter ParamSpec SolverParameter MVNParameter ContrastiveLossParameter NetState NetParameter PoolingParameter DropoutParameter Datum SigmoidParameter BlobShape ExpParameter AccuracyParameter ThresholdParameter MemoryDataParameter LRNParameter ReLUParameter ImageDataParameter InfogainLossParameter V1LayerParameter HDF5DataParameter PReLUParameter PythonParameter NetParameter LayerConnection BlobProto BlobProtoVector LayerParameter FillerParameter Datum SolverParameter SolverState BlobProto BlobProtoVector PowerParameter LayerParameter FillerParameter V0LayerParameter InnerProductParameter ConvolutionParameter SolverState WindowDataParameter HDF5OutputParameter ConcatParameter DataParameter SolverParameter NetParameter PoolingParameter DropoutParameter Datum MemoryDataParameter LRNParameter ImageDataParameter InfogainLossParameter HDF5DataParameter NetParameter EvalHistoryIter LayerConnection BlobProto BlobProtoVector LayerParameter FillerParameter Datum EvalHistory SolverParameter SolverState Doxytag Terminal Lexer B PL L lex Formatter DL BL E extract towiki depth_first breadCrumb MFile Node runcmd xscan wikidoc usage search clean match strip group append getFunctionDoc findNextFunction print print print children render_SL print pop render_DH print Frame push render_DIVL children render_DI print children render_L print pop children render_L_from_indent isa Frame render_B push indent pop children Frame push render_DIVL children render_BL render_V render_S render_DL isa render_P print Context render_DIVL dim tolist hasattr list empty keys RepeatedScalarFieldContainer isinstance update print f_locals interact copy reshape asarray astype clip hasattr list ndarray isinstance append empty keys CaffeTransform CaffeTransform bullet indent inner_content PL group match DL BL len pid Popen waitpid children group lstrip match startswith open join addMFile addChildNode print sort MFile Node match listdir __next__ prev runcmd join wikidoc print print insert print readlines close len writelines append range exists open | # JCNF (Joint Convolutional Neural Fields) Model > Version 1.0 (19 Feb. 2019) > > Contributed by Seungryong Kim ([email protected]). This code is written in MATLAB, and implements the JCNF descriptor [[website](https://github.com/seungryong/JCNF/)]. ## Dependencies ## - Download [[VLFeat](http://www.vlfeat.org/)] and [[MatConvNet](http://www.vlfeat.org/matconvnet/)]. - Download the datasets: - [[MPI-SINTEL Benchmark](http://sintel.is.tue.mpg.de/)] ([[external link](https://drive.google.com/open?id=1K_8wnyc2fvxT9tlzCUaRapz0zm6k0sjL)]); | 3,588 |
seuretm/diamond-square-fragmentation | ['image retrieval'] | ['ICFHR 2020 Competition on Image Retrieval for Historical Handwritten Fragments'] | horizon.py runme_generate_fragments.py diamondsquare.py square_displace get_DS_size_and_iters square_step diamond_step square_step_original diamond_displace diamond_square horizon horizon_step seed list min get_DS_size_and_iters square_step uniform diamond_step square_step_original zeros max range print format max range list range diamond_displace list range square_displace list range square_displace uniform uniform horizon_step min astype uniform max int uniform | # diamond-square-fragmentation This is the fragmentation algorithm used for ICFHR 2020 Competition on Image Retrieval for Historical Handwritten Fragments ## Requirements It works with Python3 and the following libraries: future==0.18.2 numpy==1.19.0 Pillow==7.2.0 pkg-resources==0.0.0 scipy==1.1.0 | 3,589 |
sevenysw/python_segy | ['denoising'] | ['Deep learning for denoising'] | get_patch.py gain.py main_test_inter.py main_train_denoise.py main_train_inter.py main_test_denoise.py download_data.py Download_data gain regular_mask data_aug progress_bar irregular_mask datagenerator _compute_n_patches patch_show DenoisingDataset _compute_total_patches DownsamplingDataset gen_patches compare_SNR show save_result DnCNN parse_args log compare_SNR show save_result DnCNN parse_args log findLastCheckpoint log DnCNN findLastCheckpoint log DnCNN get join int replace print range conv2 max sum reshape shape sqrt floor zeros abs triang range len list size sample zeros round range zeros size range show subplot join print axis subplots_adjust choice imshow savefig enumerate len int write flush floor data_aug progress_bar shape resize append range str print glob Download_data expand_dims range len add_argument ArgumentParser print strftime clip savetxt imsave mean sum log subplot colorbar imshow title figure join int glob findall max append | # Seismic data sample generation Based on pytorch By Jing Wang and Siwei Yu ([email protected]) Center of Geophysics, Harbin Insititute of Technology, Harbin, China If you find this toolbox useful, please cite the following paper (accepted by Geophysics): Deep learning for denoising (https://arxiv.org/abs/1810.11614) Note that the results from examples of this toolbox are not identical to those in the paper. The training set, test set, programming language are different. ## Introduction - This code is used to generate sample data from .segy seismic data for deep learning based on pytorch. - It can be used for denoising or interpolation for seismic data. | 3,590 |
severilov/A2Grad_optimizer | ['stochastic optimization'] | ['On the insufficiency of existing momentum schemes for Stochastic Optimization', 'Optimal Adaptive and Accelerated Stochastic Gradient Descent'] | optimizers.py A2GradInc SUG A2GradExp AccSGD A2GradUni | # A2Grad This is the code associated with Adaptive and Accelerated SGD algorithm used in the paper [Optimal Adaptive and Accelerated Stochastic Gradient Descent](https://arxiv.org/abs/1810.00553), oct. 2018 ## Usage: In a manner similar to using any usual optimizer from the pytorch toolkit, it is also possible to use the A2Grad optimizer with little effort. First, we require importing the optimizer through the following command: ``` from optimizers import * ``` Next, an A2Grad optimizer working with a given pytorch `model` can be invoked using the following command (depending on which realisation you want): ``` | 3,591 |
sezinata/MANE | ['network embedding'] | ['Multi-View Collaborative Network Embedding'] | attention/Node_Classification/node2vec.py without_attention/Link_Prediction_binaryclass/args_parser_Link_Prediction_binaryclass_MANE.py attention/Link_Prediction_binaryclass/node2vec.py without_attention/Link_Prediction_multiclass/node2vec.py attention/Link_Prediction_binaryclass/main_Link_Prediction_binaryclass_MANE_Attention.py without_attention/Link_Prediction_binaryclass/node2vec.py without_attention/Link_Prediction_multiclass/generate_pairs.py attention/Node_Classification/generate_pairs.py without_attention/Node_Classification/node2vec.py attention/Link_Prediction_multiclass/node2vec.py without_attention/Link_Prediction_multiclass/args_parser_Link_Prediction_multiclass_MANE.py attention/Link_Prediction_multiclass/main_Link_Prediction_multiclass_MANE_Attention.py without_attention/Link_Prediction_binaryclass/main_Link_Prediction_binaryclass_MANE.py without_attention/Link_Prediction_binaryclass/generate_pairs.py without_attention/Node_Classification/generate_pairs.py attention/Node_Classification/main_Node_Classification_MANE_Attention.py attention/Link_Prediction_binaryclass/generate_pairs.py data/test_data/Evaluate_logistic_regression_function_MANE-Attention.py attention/Link_Prediction_binaryclass/args_parser_Link_Prediction_binaryclass_MANE_Attention.py without_attention/Link_Prediction_multiclass/main_Link_Prediction_multiclass_MANE.py without_attention/Node_Classification/args_parser_Node_Classification_MANE.py without_attention/Node_Classification/main_Node_Classification_MANE.py attention/Node_Classification/args_parser_Node_Classification_MANE_Attention.py attention/Link_Prediction_multiclass/generate_pairs.py attention/Link_Prediction_multiclass/args_parser_Link_Prediction_multiclass_MANE_Attention.py get_parser save_train_neigh save_pairs save_walks construct_word2vec_pairs read_supervision_link_labels MANEAttention main degree_nodes_common_nodes read_graphs read_word2vec_pairs Graph alias_draw alias_setup get_parser save_train_neigh save_pairs save_walks construct_word2vec_pairs read_supervision_link_labels MANEAttention main degree_nodes_common_nodes read_graphs read_word2vec_pairs Graph alias_draw alias_setup get_parser save_train_neigh save_pairs save_walks construct_word2vec_pairs read_supervision_node_labels MANEAttention main degree_nodes_common_nodes read_graphs read_word2vec_pairs Graph alias_draw alias_setup computeLogRes_mane_attention get_parser save_train_neigh save_pairs save_walks construct_word2vec_pairs Mane main degree_nodes_common_nodes read_graphs read_word2vec_pairs Graph alias_draw alias_setup get_parser save_train_neigh save_pairs save_walks construct_word2vec_pairs Mane main degree_nodes_common_nodes read_graphs read_word2vec_pairs Graph alias_draw alias_setup get_parser save_train_neigh save_pairs save_walks construct_word2vec_pairs Mane main degree_nodes_common_nodes read_graphs read_word2vec_pairs Graph alias_draw alias_setup add_argument ArgumentParser str time list zip Graph sort print save_train_neigh save_pairs save_walks array preprocess_transition_probs simulate_walks append randint max enumerate print read_adjlist append listdir range append loadtxt range str dict sum append append loadtxt range str num_walks batch_size model zero_grad read_graphs dataset argmax open str sorted list p nsplits att_link_label_path map len Adam read_pair intersection append num_net read_word2vec_pairs to range q cat LabelBinarizer input_pairs read_supervision_link_labels MANEAttention size close shuffle window_size unique nviews alpha gamma output_pairs supervision_link_binary_class join time transform collect construct_word2vec_pairs print Variable backward fit cpu output write parameters cur_split empty_cache walk_length beta degree_nodes_common_nodes Tensor step array input_graphs pop len append zeros enumerate int rand floor len supervision_link_multi_class append loadtxt range str supervision read_supervision_node_labels att_node_label_path score tuple strip values column_stack open str list survey_methods_eval std map Counter LogisticRegression OrderedDict precision_recall_curve shape append OneVsOneClassifier range predict int_ concatenate close sqrt unique zip f1_score auc int remove print loadtxt fit roc_curve OneVsRestClassifier write average_precision_score dict argsort array len Mane parse_args | # MANE Multi-View Collaborative Network Embedding https://arxiv.org/abs/2005.08189. (https://dl.acm.org/doi/fullHtml/10.1145/3441450) Embedding learning algorithm with two versions: <strong>attention (MANE+, semi-supervised version) </strong> and <strong>without attention (MANE, unsupervised version)</strong> on a multi-view / multi-network dataset. Three different datasets /tasks are available: 1) Link prediction: Binary class 2) Link prediction: Multi-class, i.e., edges have labels -- relationship mining 3) Node classification Example datasets and input formats are provided. Usage: 1) args_parser file of a chosen task should be modified for parameter settings or other choices before running the code. | 3,592 |
sfb833-a3/commix | ['semantic composition'] | ['No Word is an Island -- A Transformation Weighting Model for Semantic Composition'] | evaluation_composed.py models/transweight_transformations.py tests/test_base.py tests/test_vector_weighted_addition.py models/scalar_weighted_addition.py models/vector_weighted_addition.py models/fulllex.py models/transweight.py data.py evaluation.py models/matrix.py tests/test_abstract_model.py utils/gensim_utils.py models/__init__.py tests/test_evaluation.py training_graph.py training.py tests/test_fulllex.py tests/test_scalar_weighted_addition.py models/transweight_features.py tests/test_matrix.py models/abstract_model.py utils/__init__.py tests/test_addition.py models/wmask.py utils/plot_utils.py models/transweight_matrix.py models/addition.py logger_config.py tests/test_evaluation_composed.py tests/test_transweight_features.py utils/ops.py tests/test_transweight_transformations.py tests/test_data.py tests/test_ops.py models/bilinear.py tests/test_bilinear.py utils/matrix_mapping.py tests/test_training_graph.py tests/test_transweight_matrix.py tests/__init__.py tests/test_wmask.py tests/test_transweight.py read_word_embeddings get_word_id generate_instances add_unknown_embedding get_loss get_target_based_rank read_test_data get_all_ranks calculate_quartiles save_ranks get_all_ranks get_composed_based_rank create_config save_predictions do_eval write_loss train predict get_plots TrainingGraph RunMode AbstractModel Addition BiLinear FullLex Regularizer Matrix ScalarWeightedAddition TransWeight TransWeightFeatures TransWeightMatrix TransWeightTransformations VectorWeightedAddition WMask AbstractModelTest ConcreteModel2 AdditionTest TestBase BiLinearTest DataTest EvaluationTest EvaluationComposedBasedTest FullLexTest MatrixTest UVAffineTransformationTest InitializationOpsTest HashTableInitTest ScalarWeightedAdditionTest TrainingGraphTest TransWeightTest TransWeightFeaturesTest TransWeightMatrixTest TransWeightTransformationsTest VectorWeightedAdditionTest WMaskTest read_gensim_model save_gensim_model_preserve_order save_gensim_model create_matrix_mapping create_matrix_mapping_with_neighbours identity_initialisation_matrix identity_initialisation_vector uv_affine_transform bias_variable init_hashtable init_index_hash create_plots mean randint add read_gensim_model add_unknown_embedding get_word_id asarray print add set append SimpleNamespace len index count_nonzero transpose delete dot take append syn0 range len get_target_based_rank read_test_data append range save_ranks len cosine_distance read_test_data take syn0 range len append array print list sorted map floor median sum len count_nonzero transpose dot append syn0 range len get_composed_based_rank float merge_all info tuple write close info range open str joinpath create_plots info save_name save_name str joinpath info str joinpath get_all_ranks info save_name calculate_quartiles load_word2vec_format suffix dict save_word2vec_format Word2VecKeyedVectors Vocab list arange dict dot zip argmax keys constant concat MutableDenseHashTable list constant insert keys int64 array values run legend savefig arange plot | # commix Code for the paper: Corina Dima, Daniël de Kok, Neele Witte, Erhard Hinrichs. 2019. [No Word is an Island — a Transformation Weighting Model for Semantic Composition](https://arxiv.org/abs/1907.05048). Transactions of the Association for Computational Linguistics 2019. Creating phrasal representations, and in particular representing low-frequency phrases like *purple car* is a task for composition models of distributional semantics. A composition model is a function *f* that combines the vectors of individual words, e.g. **u** for *black* and **v** for *car* into a phrase representation **p** (*black car*): **p** = *f*(**u**, **v**) The project contains implementations for a range of existing composition models and the new model proposed in the paper. | 3,593 |
sfc-computational-creativity-lab/x-adversarialfashion | ['human detection'] | ['Fooling automated surveillance cameras: adversarial patches to attack person detection'] | models/caffe_net.py debug.py tools/lmdb/create_dataset.py oude versies/craft_adv_draaien_scalen_plaatsen_werkt.py train_patch.py tools/lmdb/train_lmdb.py valid.py darknet.py detect.py oude versies/rotate2.py test_patch.py region_loss.py train.py batch_rotate.py FocalLoss.py models/tiny_yolo.py dataset.py recall.py partial.py utils.py oude versies/rotate.py layers/batchnorm/bn.py train_patch_dog.py unity_dataset.py oude versies/craft_adv_patch_plaatsen_werkt.py cfg.py patch_config.py detect_cam.py osc_client.py tools/lmdb/lmdb_utils.py scripts/voc_label.py image.py batch_detect.py load_data.py tools/lmdb/plot_lmdb.py demo.py layers/batchnorm/bn_lib/__init__.py train_patch_inria.py craft_adv.py eval.py median_pool.py osc_server.py scripts/voc_eval.py scripts/eval_widerface.py layers/batchnorm/build.py models/resnet.py PatchApplier PatchTransformer InriaDataset load_fc save_fc save_conv_bn load_conv parse_cfg save_conv print_cfg load_conv_bn get_max_probability read_and_size_image calc_nps transform_patch total_variation apply_patch get_printability_array EmptyModule MaxPoolStride1 Darknet Reorg GlobalAvgPool2d listDataset extract demo detect_cv2 detect detect_skimage detect test FocalLoss distort_image random_distort_image load_data_detection scale_image_channel data_augmentation fill_truth_detection rand_scale NPSCalculator PatchTransformer TotalVariation MaxProbExtractor InriaDataset AdaINStyleLoss PatchApplier ContentLoss MedianPool2d OscClient OscServer partial Experiment3LowRes ReproducePaperObj Experiment4ClassOnly BaseConfig Experiment1 Experiment2HighRes Experiment1Desktop eval_list RegionLoss build_targets train adjust_learning_rate test main PatchTrainer main PatchTrainer main PatchTrainer UnityDataset scale_bboxes logging do_detect read_truths get_image_size read_truths_args plot_boxes nms convert2cpu bbox_ious load_class_names file_lines convert2cpu_long softmax image2torch plot_boxes_cv2 read_data_cfg sigmoid bbox_iou get_region_boxes valid BN2dFunc BN2d_slow BN2d _import_symbols Scale Concat CaffeNet Eltwise parse_prototxt ResNet Bottleneck conv3x3 Resnet101 BasicBlock TinyYoloNet get_max_probability read_and_size_image calc_nps transform_patch total_variation apply_patch get_printability_array get_max_probability read_and_size_image calc_nps total_variation apply_patch get_printability_array transform_patch th_affine2d th_iterproduct th_bilinear_interp2d getRotationMatrix eval_widerface save_boxes parse_rec voc_eval _do_python_eval voc_ap convert_annotation convert createDataset writeCache checkImageIsValid lmdbDataset lmdb_nsamples train adjust_learning_rate test readline rstrip strip close dict open append split print int append split copy_ from_numpy reshape numel tofile is_cuda copy_ from_numpy reshape numel tofile is_cuda copy_ from_numpy numel tofile view print size contiguous sigmoid shape unsqueeze max list asarray float32 append full sqrt sum prod abs sum numel view size convert from_buffer contiguous ByteTensor div resize tobytes grid_sample FloatTensor ones abs size rand ConstantPad2d mypad pi affine_grid sqrt uniform sin ceil zeros round max int size ConstantPad2d mypad sqrt transform_patch data convert2cpu load_class_names VideoCapture read print exit plot_boxes_cv2 do_detect waitKey Darknet imshow load_weights resize print_network cuda load_class_names time format print convert do_detect Darknet load_weights resize print_network plot_boxes cuda load_class_names time COLOR_BGR2RGB print plot_boxes_cv2 do_detect Darknet load_weights resize print_network imread cuda range cvtColor load_class_names time print plot_boxes_cv2 do_detect Darknet load_weights resize print_network imread cuda range VideoCapture release destroyAllWindows fromarray COLOR_BGR2RGB imshow read isOpened array cvtColor data nms num_classes view logging Variable get_region_boxes num_anchors anchors size eval bbox_iou truths_length cuda range enumerate len list point tuple merge split mode list point tuple convert mode split merge randint uniform uniform distort_image rand_scale int FLIP_LEFT_RIGHT height random_distort_image resize transpose width randint float crop getsize loadtxt reshape min zeros max range height replace convert width data_augmentation fill_truth_detection print Darknet save_weights load_weights print_network max height rstrip replace resize print do_detect Darknet read_truths_args eval load_weights bbox_iou width plot_boxes cuda range len int bbox_ious fill_ ones size log t pow repeat zero_ bbox_iou zeros max range len param_groups range len logging model zero_grad listDataset DataLoader adjust_learning_rate save_weights dataset cuda region_loss seen module size enumerate time backward print zeros step len module print train PatchTrainer patch_configs sum exp max min max min max sort append zeros range len data max time exp view LongTensor print convert2cpu size contiguous convert2cpu_long sigmoid index_select unsqueeze append cuda range len int imwrite FloatTensor print putText FONT_HERSHEY_SIMPLEX rectangle get_color round range len height Draw get_color FloatTensor print text rectangle save width range len getsize size loadtxt reshape append range read_truths append rstrip height view contiguous from_buffer ByteTensor div width tobytes Image div unsqueeze forward cuda nms view exit width height ByteTensor eval tobytes time isinstance print Variable contiguous from_buffer dict strip split deepcopy range len read close open print data get_image_size listDataset Darknet DataLoader cuda open nms num_classes range load_class_names num_anchors anchors size close eval load_weights mkdir enumerate Variable print write read_data_cfg print_network get_region_boxes len append dir getattr _wrap_function readline line_type strip dict split parse_layer_block append open data print shape print item print shape show squeeze shape interpolate to_pil_image mul view print clamp size stride gather add floor tensor long print pi FloatTensor bmm th_bilinear_interp2d print th_nearest_interp2d size transpose contiguous unsqueeze repeat expand_as float th_iterproduct basename height write close width open round len load_class_names join int basename height save_boxes resize print convert do_detect Darknet load_weights mkdir width plot_boxes round cuda walk int parse findall text append find arange concatenate size maximum sum max range parse_rec cumsum argmax max sum range eps format astype mkdir float enumerate minimum join print sort maximum voc_ap argsort zeros bool array len join format print mean mkdir voc_eval enumerate int str parse join text convert write index getroot iter open find imdecode fromstring IMREAD_COLOR join str rstrip replace print len writeCache range open open logging write lmdbDataset max | - - - This repository is the fork of https://gitlab.com/EAVISE/adversarial-yolo - - - # Adversarial YOLO This repository is based on the marvis YOLOv2 inplementation: https://github.com/marvis/pytorch-yolo2 This work corresponds to the following paper: https://arxiv.org/abs/1904.08653: ``` @inproceedings{thysvanranst2019, title={Fooling automated surveillance cameras: adversarial patches to attack person detection}, author={Thys, Simen and Van Ranst, Wiebe and Goedem\'e, Toon}, | 3,594 |
sftekin/ieee_weather | ['weather forecasting'] | ['Spatio-temporal Weather Forecasting and Attention Mechanism on Convolutional LSTMs'] | models/baseline/moving_avg.py models/weather/input_cnn.py eda/temporal_shift.py transformer/weather_transform.py evaluation/evaluate_model.py models/baseline/convlstm.py run.py eda/correlation.py models/weather/weather_model.py data_creator.py dataset.py trainer.py eda/temporal_visualisation.py experiment.py eda/flow_visualisation.py eda/plot_helper.py models/baseline/u_net.py batch_generator.py eda/pacf_acf.py evaluation/print_exp_losses.py models/weather/attention.py config.py models/adaptive_normalizer.py BatchGenerator WeatherDataset DataCreator _get_exp_count _find_best_model _load_model train predict run Trainer load_dump_data create_flow_mat check_point calc_eval_metrics evaluate get_experiment_scores plot_scores run_model get_scores AdaptiveNormalizer ConvLSTMCell ConvLSTM MovingAvg Up DoubleConv Down UNet OutConv Attention DoubleConv InputCNN Down WeatherModel WeatherTransformer join str _get_exp_count fit Trainer zip transform to makedirs _find_best_model transform encoder to range len print join str glob join glob join len join create_data BatchGenerator to_datetime print strftime DataCreator rmtree date_range DateOffset train range predict len load join to_datetime stack append listdir enumerate append shape stack range zeros metric range enumerate format hasattr normalizer calc_eval_metrics print num_iter inv_norm MSELoss permute generate zeros to forward init_hidden enumerate join join rstrip glob print concat to_csv get_experiment_scores plot_scores DataFrame makedirs int to_datetime strftime mean stack date_range DateOffset append DataFrame range len join subplots errorbar set_title set_yticks set_xlabel grid sqrt set_xticks set_ylabel linspace legend savefig range enumerate len join list check_point create_data glob to_datetime print BatchGenerator strftime DataCreator rmtree run_model DateOffset append split | # The Weather Model A spatio-temporal forecasting model for the Numerical Weather Prediction. ## Install & Run ``` $ docker build -t weather:v1 docker/. ``` ``` $ docker run -dit --name weather_model --gpus all --rm weather:v1 python run.py ``` ``` | 3,595 |
sfu-gruvi-3dv/deep_human | ['depth estimation'] | ['A Neural Network for Detailed Human Depth Estimation from a Single Image'] | network/util.py params/params_nonsmpl.py network/model.py normal/normal_Unet.py normal/produce_normal_file.py utils/util_kernel_regression.py params/params_opt.py utils/util_detail.py utils/util.py function/glob2/__init__.py network/util_detail.py network/processing_detail_data.py function/opt_depth.py network/drawheat3d.py params/params_halfsmpl.py network/hourglass_multioutput.py params/params_iccv.py function/glob2/impl.py function/glob2/fnmatch.py network/visualizer.py network/modified_hgmodel.py network/util_kernel_regression.py network/old_datagen.py function/glob2/compat.py network/detail_hooker.py params/params.py normal/normal_util.py function/integral_loss.py normal/hg_trainer.py network/datagen_multithread.py utils/tensorlayer_data_generation.py network/Refine_model.py normal/trainer.py demo.py network/model_kel.py network/depth_optimization.py normal/params.py function/filelist.py network/datagen_single_thread.py normal/PointCloud.py normal/test_rebuild.py utils/visualizer.py softmax_integral_tensor generate_3d_integral_preds_tensor persp_depth_opt_stereo gradient_y persp_depth_opt compute_smooth_loss gradient_x _HashedSeq _make_key lru_cache translate fnmatchcase filter _norm_paths fnmatch _compile_pattern getsubfolders DataGenerator getsubfolders DataGenerator neighbor_index_generator batch_neighbor_index_generator depth_to_pointcloud optimize_depth getsubfolders DataGenerator HourglassModel HourglassModel HourglassModel ModifiedHgModel getsubfolders DataGenerator Cam_Model kaiming Cascade_Model quantize drawgaussian2d getTightBox getCenter cropdepth Drawgaussian2D changeSegmIx getTransform crop rnd getTightmask gaussian2D Drawguassian3D cropfor3d getScale gaussian1D relative extent transform neighbor_index_generator depth_to_pointcloud kernel_regression draw2dskeleton draw3dskeleton draw2dskeleton_2 draw3dskeleton_joints draw2dskeleton_joints show_prections N_Unet smooth_depth calc_normal apply_mask transform_normal depth_to_normal naive_pcd normalize draw_normal_sphere dump_pointcloud PointCloud produce_normal_file getsubfolders DataGenerator quantize cropfor3d_intrinsic drawgaussian2d getCenter getTightBox cropdepth Drawgaussian2D changeSegmIx getTransform crop rnd getTightmask gaussian2D Drawguassian3D cropfor3d getScale gaussian1D relative extent projector transform neighbor_index_generator depth_to_pointcloud kernel_regression draw2dskeleton draw3dskeleton test draw2dskeleton_2 draw3dskeleton_joints draw2dskeleton_joints show_prections reshape transpose reduce_sum conv1d range reshape transpose softmax generate_3d_integral_preds_tensor zeros_like boolean_mask where floor stop_gradient abs squeeze logical_and matmul reduce_sum gather_nd cast ceil meshgrid less expand_dims convert_to_tensor ones_like stack constant float32 scatter_nd reduce_mean int32 zeros_like boolean_mask where floor stop_gradient abs squeeze logical_and matmul reduce_sum gather_nd cast ceil meshgrid less expand_dims convert_to_tensor ones_like stack constant float32 scatter_nd reduce_mean int32 to_float exp gradient_y gradient_x items sorted normcase sub encode decode isinstance translate append match _norm_paths _compile_pattern _compile_pattern replace escape join isdir append listdir exists split convert_to_tensor list concatenate int32 meshgrid zeros expand_dims range convert_to_tensor constant concat float32 tile meshgrid expand_dims neighbor_index_generator reshape concat tile range as_list depth_to_pointcloud constant zeros_like batch_neighbor_index_generator reduce_sum gather_nd tile expand_dims abs min max min max where getTightmask zeros getTightmask pi cos eye sin ones inv getTransform uint8 imresize reshape astype int8 shape floor transform zeros max len imresize astype int64 int32 resize transform zeros astype float32 int64 resize transform zeros zeros len range shape zeros drawgaussian2d int int_ drawgaussian2d gaussian1D zeros range ceil zeros exp range norm exp ceil zeros range gaussian2D ones astype where int8 shape clip len ones where shape clip len shape range zeros as_list depth_to_pointcloud constant neighbor_index_generator reshape concat squeeze reduce_sum where gather_nd tile expand_dims range show asarray plot print set_xlabel set_xlim add_subplot shape set_zlim scatter figure set_ylabel set_zlabel unravel_index zeros argmax range set_ylim show int asarray plot print set_xlabel set_xlim add_subplot set_zlim scatter figure set_ylabel set_zlabel zeros range set_ylim fromarray int show asarray line COLOR_BGR2RGB print circle shape unravel_index zeros argmax range cvtColor fromarray int show asarray line COLOR_BGR2RGB print circle zeros range cvtColor fromarray int show asarray line COLOR_BGR2RGB circle shape unravel_index zeros argmax range cvtColor FONT_HERSHEY_DUPLEX str destroyAllWindows print putText waitKey imshow range circle zeros shape expand_dims repeat transform_normal range expand_dims norm zeros shape meshgrid expand_dims repeat arange norm ones squeeze min matmul pinv array append max range str close write range open calc_normal shape naive_pcd zeros range dump_pointcloud as_list resize_nearest_neighbor expand_dims squeeze format getCenter_detail glob print squeeze cropfor3d expand_dims getScale_detail save normalize imread sum range PointCloud len show str int write close copy imshow figure float abs range open uint8 imresize astype dict int64 int32 resize transform zeros zeros_like | # Deep_human Code for iccv2019 paper "A Neural Network for Detailed Human Depth Estimation from a Single Image" (Under construction) Requirements<br/> CUDA 9.0<br/> OpenCV 3.2<br/> Python 3.5<br/> tensorflow >= 1.6.0<br/> numpy<br/> Preparation<br/> Download model from https://drive.google.com/open?id=16CWE_1tx3IfWDucfkTmOnRPylvv2ekRM<br/> | 3,596 |
sfzhang15/FaceBoxes | ['face detection'] | ['FaceBoxes: A CPU Real-time Face Detector with High Accuracy'] | python/caffe/io.py test/pascal_test.py python/caffe/test/test_python_layer.py scripts/download_model_binary.py test/afw_test.py python/caffe/net_spec.py python/caffe/coord_map.py test/demo.py python/caffe/test/test_net.py tools/extra/resize_and_crop_images.py python/draw_net.py python/caffe/test/test_net_spec.py src/caffe/test/test_data/generate_sample_data.py python/caffe/draw.py python/caffe/pycaffe.py tools/extra/extract_seconds.py scripts/cpp_lint.py python/classify.py scripts/convert_inception_v3.py python/caffe/model_libs.py python/caffe/test/test_solver.py python/caffe/classifier.py python/caffe/test/test_io.py python/caffe/test/test_python_layer_with_param_str.py tools/extra/parse_log.py python/caffe/__init__.py python/caffe/test/test_layer_type_list.py scripts/copy_notebook.py python/caffe/detector.py python/detect.py test/fddb_test.py scripts/create_annoset.py python/caffe/test/test_coord_map.py tools/extra/summarize.py main main main parse_args Classifier coord_map UndefinedMapException conv_params coord_map_from_to AxisMismatchException inverse crop_params compose crop Detector get_edge_label draw_net get_layer_label get_pydot_graph choose_color_by_layertype get_pooling_types_dict draw_net_to_file Transformer blobproto_to_array datum_to_array array_to_blobproto array_to_datum resize_image arraylist_to_blobprotovector_str blobprotovector_str_to_arraylist load_image oversample make_if_not_exist VGGNetBody UnpackVariable InceptionTower InceptionV3Body ConvBNLayer CreateMultiBoxHead CreateAnnotatedDataLayer ResNet10Body ResNet152Body ResNet101Body check_if_exist ConvBNLayer10 ResBody ResBody10 ZFNetBody Layers Function Parameters Top NetSpec assign_proto param_name_dict to_proto _Net_blobs _Net_forward_all _Net_set_input_arrays _Net_backward _Net_params _Net_forward _Net_outputs _Net_forward_backward_all _Net_blob_loss_weights _Net_batch _Net_get_id_name _Net_inputs TestCoordMap coord_net_spec TestBlobProtoToArray TestArrayToDatum TestLayerTypeList TestLevels TestStages simple_net_file TestNet TestAllInOne lenet TestNetSpec silent_net anon_lenet exception_net_file parameter_net_file SimpleLayer phase_net_file TestPythonLayer ParameterLayer PhaseLayer python_net_file ExceptionLayer SimpleParamLayer TestLayerWithParam python_param_net_file TestSolver dump_inception dump_model dump_softmax get_labelname create_graph dump_pool dump_inputlayer dump_convbn dump_tower main make_padding maybe_download_and_extract run_inference_on_image ParseNolintSuppressions CheckVlogArguments CheckSectionSpacing FindNextMultiLineCommentEnd ReplaceAll CheckForFunctionLengths _SetOutputFormat _IsTestFilename _VerboseLevel CheckBraces RemoveMultiLineComments ResetNolintSuppressions CheckForNonStandardConstructs _SetVerboseLevel PrintUsage _NestingState CheckIncludeLine CheckAccess _CppLintState Search CheckInvalidIncrement RemoveMultiLineCommentsFromRange CleansedLines CheckForBadCharacters UpdateIncludeState FindPreviousMatchingAngleBracket CheckEmptyBlockBody FindNextMultiLineCommentStart Match _NamespaceInfo CheckMakePairUsesDeduction CheckCheck IsBlankLine _SetFilters ProcessLine _FunctionState CheckPosixThreading GetLineWidth GetHeaderGuardCPPVariable IsCppString _IncludeState CheckSpacing _ClassInfo CheckForCopyright IsErrorSuppressedByNolint ProcessFileData CheckForMultilineCommentsAndStrings CloseExpression _PreprocessorInfo _OutputFormat CheckForIncludeWhatYouUse CheckSpacingForFunctionCall FindEndOfExpressionInLine FindNextMatchingAngleBracket _SetCountingStyle ProcessFile _IncludeError CleanseRawStrings CheckAltTokens CheckForNewlineAtEOF ParseArguments CheckForNonConstReference PrintCategories _Filters main FilesBelongToSameModule CheckCStyleCast FileInfo _BlockInfo CheckForHeaderGuard CheckCaffeDataLayerSetUp ReverseCloseExpression CleanseComments _DropCommonSuffixes _ClassifyInclude CheckStyle CheckCaffeAlternatives FindStartOfExpressionInLine _ShouldPrintError CheckComment Error _GetTextInside CheckLanguage CheckCaffeRandom GetPreviousNonBlankLine reporthook parse_readme_frontmatter model_checks_out valid_dirname get_start_time extract_seconds extract_datetime_from_line get_log_created_year write_csv parse_log fix_initial_nan_learning_rate save_csv_files main parse_args parse_line_for_net_output ResizeCropImagesMapper PILResizeCrop OpenCVResizeCrop print_table printed_len summarize_net main read_net format_param model_def endswith ArgumentParser save mean_file channel_swap output_file dirname expanduser parse_args input_file predict Classifier set_mode_cpu load time isdir print add_argument set_mode_gpu pretrained_model gpu len DataFrame Detector format to_hdf detect_selective_search mean set_index to_csv detect_windows read_csv add_argument ArgumentParser read NetParameter output_image_file rankdir Merge TRAIN draw_net_to_file TEST get params array get params array crop_params conv_params pop collect_bottoms add fn coord_map compose coord_map_from_to items list DESCRIPTOR batch_size str num_output get_pooling_types_dict add_edge get_edge_label list Dot exclude get_layer_label add_node values choose_color_by_layertype Edge Node bottom append type layer include top data array diff shape BlobProto extend flat extend BlobProtoVector ParseFromString BlobProtoVector extend tostring shape Datum flat data len astype float32 tile zoom tuple resize fill empty array concatenate shape tile empty array makedirs append range get update format UnpackVariable Convolution Bias Scale ReLU BatchNorm update format UnpackVariable Convolution Bias Scale ReLU BatchNorm int format ConvBNLayer Eltwise ReLU format Convolution Scale Eltwise ReLU BatchNorm update format ConvBNLayer Pooling update pool2 Softmax fc7 ReLU conv1 relu7 Pooling pool1 conv2 norm2 list relu6 norm1 update conv5 conv3 Convolution fc6 relu2 keys relu1 fc8 LRN relu4 relu3 relu5 pool5 InnerProduct conv4 Dropout conv4_1 relu2_2 relu3_2 relu2_1 relu1_2 conv5_1 fc7 ReLU relu5_1 relu7 Pooling list conv4_2 relu5_3 conv3_2 relu4_2 conv4_3 relu6 relu5_2 update Convolution conv2_2 conv1_2 fc6 relu4_3 relu1_1 keys conv5_3 int conv3_3 relu4_1 conv2_1 relu3_1 relu3_3 pool5 conv3_1 InnerProduct conv1_1 conv5_2 Dropout Pooling Scale ConvBNLayer10 BatchNorm conv1 ResBody10 Pooling format ConvBNLayer res5c range ResBody conv1 Pooling format ConvBNLayer res5c range ResBody conv1 Pooling InnerProduct format Softmax InceptionTower ConvBNLayer Concat pool_3 softmax AVE append MAX range update list format Permute PriorBox ConvBNLayer Concat Normalize append keys range Flatten len LayerParameter list NetParameter _to_proto extend Counter OrderedDict values iteritems hasattr isinstance extend add getattr setattr list OrderedDict _blobs _blob_names zip list _blob_loss_weights OrderedDict _blob_names zip OrderedDict list keys list keys iteritems layers index set outputs _forward len iteritems _backward layers inputs index set len iteritems asarray extend copy next _batch itervalues forward len iteritems asarray backward extend copy next _batch itervalues zip_longest zip forward len ascontiguousarray concatenate itervalues zeros next range len data Pooling pool Convolution NetSpec Deconvolution conv Input NamedTemporaryFile str close write data Pooling pool1 conv2 pool2 ip1 relu1 SoftmaxWithLoss Convolution NetSpec DummyData ip2 ReLU InnerProduct label conv1 Pooling SoftmaxWithLoss Convolution DummyData ReLU InnerProduct data NetSpec DummyData Silence data2 range item len exit float eval Input format Convolution get_operation_by_name transpose Bias shape eval ReLU BatchNorm get_attr make_padding flat Pooling get_operation_by_name AVE get_attr make_padding MAX format Softmax transpose shape eval InnerProduct flat dump_convbn format dump_pool append format Concat read TEST print name squeeze reshape get_operations create_graph get_labelname close transpose Net fatal run forward get_tensor_by_name flat InteractiveSession dump_pool save dump_inception set_device dump_inputlayer dirname range TEST format dump_softmax close create_graph Net dump_tower InteractiveSession NetSpec set_mode_gpu dump_convbn makedirs join urlretrieve st_size print extractall stat model_dir makedirs maybe_download_and_extract dump_model run_inference_on_image error search add group clear compile compile compile SetOutputFormat SetCountingStyle SetFilters _Filters startswith IsErrorSuppressedByNolint _ShouldPrintError write IncrementErrorCount replace append Match group find startswith endswith range error FindNextMultiLineCommentEnd RemoveMultiLineCommentsFromRange FindNextMultiLineCommentStart rstrip find range len FindEndOfExpressionInLine range len FindStartOfExpressionInLine error min search I range len FileInfo RepositoryName sep sub ParseNolintSuppressions error startswith split GetHeaderGuardCPPVariable enumerate error enumerate error len error replace count error find error find error find error find error Search error match InnermostClass replace error escape Match Search error group Search Check error lines Count End group Begin NumLines Match raw_lines range Search error match group error Match group pop group append Search pop group append Search elided replace CheckSpacingForFunctionCall rfind error len group min CloseExpression NumLines sub find CheckComment Match range Search lines_without_raw_strings error group starting_linenum Match range Search error rfind len group ReverseCloseExpression Search Match CloseExpression find error Match CloseExpression find elided error strip group FindEndOfExpressionInLine find Match range CloseExpression len error Match finditer normalize isinstance GetLineWidth int InnermostClass CheckCheck error CheckAltTokens CheckBraces CheckSpacing CheckSectionSpacing CheckEmptyBlockBody CheckAccess GetHeaderGuardCPPVariable lines_without_raw_strings _DropCommonSuffixes RepositoryName match split CheckNextIncludeOrder CanonicalizeAlphabeticalOrder FileInfo error search group SetLastHeader match _ClassifyInclude Match pop end search set append values M rstrip replace CheckCStyleCast error _GetTextInside CheckIncludeLine search group lstrip startswith Match ResetSection Search split rfind error group ReverseCloseExpression lstrip findall Match range Search ReplaceAll error Match Search endswith replace setdefault group search CleanseComments open list FilesBelongToSameModule error search copy sub NumLines FullName keys range error search CheckPosixThreading ParseNolintSuppressions CheckVlogArguments CheckMakePairUsesDeduction CheckCaffeDataLayerSetUp CheckLanguage CheckInvalidIncrement CheckCaffeRandom CheckForNonConstReference check_fn Update CheckForNonStandardConstructs CheckStyle raw_lines CheckForMultilineCommentsAndStrings CheckCaffeAlternatives CheckForFunctionLengths CleansedLines _NestingState CheckForBadCharacters CheckForNewlineAtEOF _IncludeState RemoveMultiLineComments CheckForCopyright ResetNolintSuppressions CheckForHeaderGuard NumLines CheckCompletedBlocks CheckForIncludeWhatYouUse range ProcessLine _FunctionState Error rstrip endswith len write ProcessFileData _SetVerboseLevel range split write exit join write exit _VerboseLevel int getopt _SetOutputFormat set _SetVerboseLevel PrintCategories _SetFilters _OutputFormat PrintUsage _SetCountingStyle split getreader ParseArguments ResetErrorCounts stderr exit verbose_level PrintErrorCounts StreamReaderWriter ProcessFile getwriter int time write flush load join index int rfind datetime split getctime year strip extract_datetime_from_line get_start_time total_seconds strip write get_log_created_year close extract_datetime_from_line open float get_log_created_year compile fix_initial_nan_learning_rate search group OrderedDict append float join basename write_csv print excel parse_log save_csv_files output_dir logfile_path NetParameter decay_mult format name lr_mult append print zip len get join str format convolution_param list setdefault param kernel_size map set top bottom append type module layer enumerate print_table filename summarize_net read_net | # FaceBoxes: A CPU Real-time Face Detector with High Accuracy [](LICENSE) By [Shifeng Zhang](http://www.cbsr.ia.ac.cn/users/sfzhang/) ### Introduction We propose a novel face detector, named FaceBoxes, with superior performance on both speed and accuracy. Moreover, the speed of FaceBoxes is invariant to the number of faces. You can use the code to train/evaluate the FaceBoxes method for face detection. For more details, please refer to our [paper](https://arxiv.org/pdf/1708.05234.pdf). <p align="left"> <img src="https://github.com/sfzhang15/FaceBoxes/blob/master/faceboxes_framework.jpg" alt="FaceBoxes Framework" width="777px"> </p> <p align="left"> <img src="https://github.com/sfzhang15/FaceBoxes/blob/master/faceboxes_performance.jpg" alt="FaceBoxes Performance" width="770px"> | 3,597 |
sfzhang15/SFD | ['face detection'] | ['S$^3$FD: Single Shot Scale-invariant Face Detector'] | sfd_test_code/AFW/afw_test.py sfd_test_code/WIDER_FACE/wider_test.py sfd_test_code/FDDB/fddb_test.py sfd_test_code/PASCAL_face/pascal_test.py bbox_vote write_to_txt multi_scale_test flip_test detect_face Transformer set_channel_swap set_mean reshape set_raw_scale preprocess set_transpose resize array column_stack detect_face row_stack detect_face flip zeros shape minimum maximum delete row_stack tile zeros sum max encode format write range | # S³FD: Single Shot Scale-invariant Face Detector By [Shifeng Zhang](http://www.cbsr.ia.ac.cn/users/sfzhang/) ### Introduction S³FD is a real-time face detector, which performs superiorly on various scales of faces with a single deep neural network, especially for small faces. For more details, please refer to our [arXiv paper](https://arxiv.org/abs/1708.05237). ### Contents 1. [Preparation](#preparation) 2. [Eval](#eval) 3. [Train](#train) ### Preparation 1. Get the [SSD](https://github.com/weiliu89/caffe/tree/ssd) code. We will call the directory that you cloned Caffe into `$SFD_ROOT` | 3,598 |
sgadgil6/cnslab_fmri | ['time series'] | ['Spatio-Temporal Graph Convolution for Resting-State fMRI Analysis'] | preprocessing.py net/st_gcn_lstm.py run_training_lstm.py net/utils/graph.py run_training_save_acc_ts.py net/fmri_lstm.py plot_mlp_baseline.py preproc_baseline.py run_training_save_acc.py run_training_save_acc_lstm.py net/utils/tgcn.py net/__init__.py mlp_baseline.py net/st_gcn.py run_training_edge_imp.py run_training_st_gcn_lstm.py run_training.py mlp train covariance_matrx fMRI_LSTM Model st_gcn Model st_gcn Graph normalize_undigraph get_hop_distance normalize_digraph ConvTemporalGraphical mlp format model print backward step zero_grad SGD range parameters eval to BCELoss loss accuracy_score zeros abs range zeros inf range dot zeros sum range dot zeros sum range | This project was done in the Computational Neuroscience Lab (CNS Lab) at Stanford. The main goal of the project is to predict sex and age from resting state functional MRI (f-MRI) scans using a Spatio-Temporal Graph Convolutional Network. The accepted paper can be found at https://arxiv.org/abs/2003.10613 This is a simplified version of the ST-GCN module: https://github.com/yysijie/st-gcn The previous version of this module implementation for f-MRI scans can be found at https://github.com/ericksiavichay/cs230-final-project **DATA USAGE** For HCP, the the data "Resting State fMRI 1 Preprocessed" was downloaded from https://db.humanconnectome.org/. The GIFTI images were then parcellated using https://balsa.wustl.edu/QnXj Here are the final processed BOLD signal files: https://drive.google.com/file/d/1c4UYvp089KwqAllAHdHMHGjq8y5x882D/view. If you need the NCANDA data, you should directly contact last author Dr. Kilian Pohl ([email protected]) for data usage. | 3,599 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.