VSCode Jupyter Interactive Window - show long output - python
The VSCode Interactive window for Jupyter truncates long output:
import os
dir(os)
['CLD_CONTINUED',
'CLD_DUMPED',
'CLD_EXITED',
'CLD_TRAPPED',
'DirEntry',
'EX_CANTCREAT',
'EX_CONFIG',
'EX_DATAERR',
'EX_IOERR',
'EX_NOHOST',
'EX_NOINPUT',
'EX_NOPERM',
'EX_NOUSER',
'EX_OK',
'EX_OSERR',
'EX_OSFILE',
'EX_PROTOCOL',
'EX_SOFTWARE',
'EX_TEMPFAIL',
'EX_UNAVAILABLE',
'EX_USAGE',
'F_LOCK',
'F_OK',
'F_TEST',
'F_TLOCK',
show more (open the raw output data in a text editor) ...
'waitid',
'waitid_result',
'waitpid',
'walk',
'write',
'writev']
This is nice functionality as it stops commands that generate a lot of output from overwhelming the Interactive window.
How can I see the entire output?
I can click on the "show more" link, but the output is in a JSON format which is difficult to read.
[
{
"metadata": {
"outputType": "execute_result",
"executionCount": 8,
"metadata": {}
},
"outputItems": [
{
"mimeType": "text/plain",
"data": "['CLD_CONTINUED',\n 'CLD_DUMPED',\n 'CLD_EXITED',\n 'CLD_TRAPPED',\n 'DirEntry',\n 'EX_CANTCREAT',\n 'EX_CONFIG',\n 'EX_DATAERR',\n 'EX_IOERR',\n 'EX_NOHOST',\n 'EX_NOINPUT',\n 'EX_NOPERM',\n 'EX_NOUSER',\n 'EX_OK',\n 'EX_OSERR',\n 'EX_OSFILE',\n 'EX_PROTOCOL',\n 'EX_SOFTWARE',\n 'EX_TEMPFAIL',\n 'EX_UNAVAILABLE',\n 'EX_USAGE',\n 'F_LOCK',\n 'F_OK',\n 'F_TEST',\n 'F_TLOCK',\n 'F_ULOCK',\n 'GRND_NONBLOCK',\n 'GRND_RANDOM',\n 'MutableMapping',\n 'NGROUPS_MAX',\n 'O_ACCMODE',\n 'O_APPEND',\n 'O_ASYNC',\n 'O_CLOEXEC',\n 'O_CREAT',\n 'O_DIRECT',\n 'O_DIRECTORY',\n 'O_DSYNC',\n 'O_EXCL',\n 'O_LARGEFILE',\n 'O_NDELAY',\n 'O_NOATIME',\n 'O_NOCTTY',\n 'O_NOFOLLOW',\n 'O_NONBLOCK',\n 'O_PATH',\n 'O_RDONLY',\n 'O_RDWR',\n 'O_RSYNC',\n 'O_SYNC',\n 'O_TMPFILE',\n 'O_TRUNC',\n 'O_WRONLY',\n 'POSIX_FADV_DONTNEED',\n 'POSIX_FADV_NOREUSE',\n 'POSIX_FADV_NORMAL',\n 'POSIX_FADV_RANDOM',\n 'POSIX_FADV_SEQUENTIAL',\n 'POSIX_FADV_WILLNEED',\n 'PRIO_PGRP',\n 'PRIO_PROCESS',\n 'PRIO_USER',\n 'P_ALL',\n 'P_NOWAIT',\n 'P_NOWAITO',\n 'P_PGID',\n 'P_PID',\n 'P_WAIT',\n 'PathLike',\n 'RTLD_DEEPBIND',\n 'RTLD_GLOBAL',\n 'RTLD_LAZY',\n 'RTLD_LOCAL',\n 'RTLD_NODELETE',\n 'RTLD_NOLOAD',\n 'RTLD_NOW',\n 'R_OK',\n 'SCHED_BATCH',\n 'SCHED_FIFO',\n 'SCHED_IDLE',\n 'SCHED_OTHER',\n 'SCHED_RESET_ON_FORK',\n 'SCHED_RR',\n 'SEEK_CUR',\n 'SEEK_DATA',\n 'SEEK_END',\n 'SEEK_HOLE',\n 'SEEK_SET',\n 'ST_APPEND',\n 'ST_MANDLOCK',\n 'ST_NOATIME',\n 'ST_NODEV',\n 'ST_NODIRATIME',\n 'ST_NOEXEC',\n 'ST_NOSUID',\n 'ST_RDONLY',\n 'ST_RELATIME',\n 'ST_SYNCHRONOUS',\n 'ST_WRITE',\n 'TMP_MAX',\n 'WCONTINUED',\n 'WCOREDUMP',\n 'WEXITED',\n 'WEXITSTATUS',\n 'WIFCONTINUED',\n 'WIFEXITED',\n 'WIFSIGNALED',\n 'WIFSTOPPED',\n 'WNOHANG',\n 'WNOWAIT',\n 'WSTOPPED',\n 'WSTOPSIG',\n 'WTERMSIG',\n 'WUNTRACED',\n 'W_OK',\n 'XATTR_CREATE',\n 'XATTR_REPLACE',\n 'XATTR_SIZE_MAX',\n 'X_OK',\n '_Environ',\n '__all__',\n '__builtins__',\n '__cached__',\n '__doc__',\n '__file__',\n '__loader__',\n '__name__',\n '__package__',\n '__spec__',\n '_execvpe',\n '_exists',\n '_exit',\n '_fspath',\n '_fwalk',\n '_get_exports_list',\n '_putenv',\n '_spawnvef',\n '_unsetenv',\n '_wrap_close',\n 'abc',\n 'abort',\n 'access',\n 'altsep',\n 'chdir',\n 'chmod',\n 'chown',\n 'chroot',\n 'close',\n 'closerange',\n 'confstr',\n 'confstr_names',\n 'cpu_count',\n 'ctermid',\n 'curdir',\n 'defpath',\n 'device_encoding',\n 'devnull',\n 'dup',\n 'dup2',\n 'environ',\n 'environb',\n 'errno',\n 'error',\n 'execl',\n 'execle',\n 'execlp',\n 'execlpe',\n 'execv',\n 'execve',\n 'execvp',\n 'execvpe',\n 'extsep',\n 'fchdir',\n 'fchmod',\n 'fchown',\n 'fdatasync',\n 'fdopen',\n 'fork',\n 'forkpty',\n 'fpathconf',\n 'fsdecode',\n 'fsencode',\n 'fspath',\n 'fstat',\n 'fstatvfs',\n 'fsync',\n 'ftruncate',\n 'fwalk',\n 'get_blocking',\n 'get_exec_path',\n 'get_inheritable',\n 'get_terminal_size',\n 'getcwd',\n 'getcwdb',\n 'getegid',\n 'getenv',\n 'getenvb',\n 'geteuid',\n 'getgid',\n 'getgrouplist',\n 'getgroups',\n 'getloadavg',\n 'getlogin',\n 'getpgid',\n 'getpgrp',\n 'getpid',\n 'getppid',\n 'getpriority',\n 'getrandom',\n 'getresgid',\n 'getresuid',\n 'getsid',\n 'getuid',\n 'getxattr',\n 'initgroups',\n 'isatty',\n 'kill',\n 'killpg',\n 'lchown',\n 'linesep',\n 'link',\n 'listdir',\n 'listxattr',\n 'lockf',\n 'lseek',\n 'lstat',\n 'major',\n 'makedev',\n 'makedirs',\n 'minor',\n 'mkdir',\n 'mkfifo',\n 'mknod',\n 'name',\n 'nice',\n 'open',\n 'openpty',\n 'pardir',\n 'path',\n 'pathconf',\n 'pathconf_names',\n 'pathsep',\n 'pipe',\n 'pipe2',\n 'popen',\n 'posix_fadvise',\n 'posix_fallocate',\n 'pread',\n 'putenv',\n 'pwrite',\n 'read',\n 'readlink',\n 'readv',\n 'remove',\n 'removedirs',\n 'removexattr',\n 'rename',\n 'renames',\n 'replace',\n 'rmdir',\n 'scandir',\n 'sched_get_priority_max',\n 'sched_get_priority_min',\n 'sched_getaffinity',\n 'sched_getparam',\n 'sched_getscheduler',\n 'sched_param',\n 'sched_rr_get_interval',\n 'sched_setaffinity',\n 'sched_setparam',\n 'sched_setscheduler',\n 'sched_yield',\n 'sendfile',\n 'sep',\n 'set_blocking',\n 'set_inheritable',\n 'setegid',\n 'seteuid',\n 'setgid',\n 'setgroups',\n 'setpgid',\n 'setpgrp',\n 'setpriority',\n 'setregid',\n 'setresgid',\n 'setresuid',\n 'setreuid',\n 'setsid',\n 'setuid',\n 'setxattr',\n 'spawnl',\n 'spawnle',\n 'spawnlp',\n 'spawnlpe',\n 'spawnv',\n 'spawnve',\n 'spawnvp',\n 'spawnvpe',\n 'st',\n 'stat',\n 'stat_float_times',\n 'stat_result',\n 'statvfs',\n 'statvfs_result',\n 'strerror',\n 'supports_bytes_environ',\n 'supports_dir_fd',\n 'supports_effective_ids',\n 'supports_fd',\n 'supports_follow_symlinks',\n 'symlink',\n 'sync',\n 'sys',\n 'sysconf',\n 'sysconf_names',\n 'system',\n 'tcgetpgrp',\n 'tcsetpgrp',\n 'terminal_size',\n 'times',\n 'times_result',\n 'truncate',\n 'ttyname',\n 'umask',\n 'uname',\n 'uname_result',\n 'unlink',\n 'unsetenv',\n 'urandom',\n 'utime',\n 'wait',\n 'wait3',\n 'wait4',\n 'waitid',\n 'waitid_result',\n 'waitpid',\n 'walk',\n 'write',\n 'writev']"
}
]
}
]
I can take the raw output and massage it in a text editor or other tool. This is time consuming, so I'm looking for an approach that is built into VSCode.
This is a bug that has been reported to the VS Code team and has a fix in already. The fix is in VS Code - Insiders (you can install that side by side with stable) to check. The fix should be in stable VS Code in the next full release:
https://github.com/microsoft/vscode/issues/130512
Installing the JSON formatter (or other similar extension) should work to prettify it in VSCode itself.
Related
Apache_beam--python --error: the following arguments are required: --output-path
When run my code in python or colaborator the following error, I intall all libraries from apache beam, somebody gives in one moment this error or knows about it.. usage: aaa_users_py.py [-h] [--runner RUNNER] [--streaming] [--resource_hint RESOURCE_HINTS] [--beam_services BEAM_SERVICES] [--type_check_strictness {ALL_REQUIRED,DEFAULT_TO_ANY}] [--type_check_additional TYPE_CHECK_ADDITIONAL] [--no_pipeline_type_check] [--runtime_type_check] [--performance_runtime_type_check] [--allow_non_deterministic_key_coders] [--allow_unsafe_triggers] [--no_direct_runner_use_stacked_bundle] [--direct_runner_bundle_repeat DIRECT_RUNNER_BUNDLE_REPEAT] [--direct_num_workers DIRECT_NUM_WORKERS] [--direct_running_mode {in_memory,multi_threading,multi_processing}] [--dataflow_endpoint DATAFLOW_ENDPOINT] [--project PROJECT] [--job_name JOB_NAME] [--staging_location STAGING_LOCATION] [--temp_location TEMP_LOCATION] [--region REGION] [--service_account_email SERVICE_ACCOUNT_EMAIL] [--no_auth] [--template_location TEMPLATE_LOCATION] [--label LABELS] [--update] [--transform_name_mapping TRANSFORM_NAME_MAPPING] [--enable_streaming_engine] [--dataflow_kms_key DATAFLOW_KMS_KEY] [--create_from_snapshot CREATE_FROM_SNAPSHOT] [--flexrs_goal {COST_OPTIMIZED,SPEED_OPTIMIZED}] [--dataflow_service_option DATAFLOW_SERVICE_OPTIONS] [--enable_hot_key_logging] [--enable_artifact_caching] [--impersonate_service_account IMPERSONATE_SERVICE_ACCOUNT] [--hdfs_host HDFS_HOST] [--hdfs_port HDFS_PORT] [--hdfs_user HDFS_USER] [--hdfs_full_urls] [--num_workers NUM_WORKERS] [--max_num_workers MAX_NUM_WORKERS] [--autoscaling_algorithm {NONE,THROUGHPUT_BASED}] [--worker_machine_type MACHINE_TYPE] [--disk_size_gb DISK_SIZE_GB] [--worker_disk_type DISK_TYPE] [--worker_region WORKER_REGION] [--worker_zone WORKER_ZONE] [--zone ZONE] [--network NETWORK] [--subnetwork SUBNETWORK] [--worker_harness_container_image WORKER_HARNESS_CONTAINER_IMAGE] [--sdk_container_image SDK_CONTAINER_IMAGE] [--sdk_harness_container_image_overrides SDK_HARNESS_CONTAINER_IMAGE_OVERRIDES] [--use_public_ips] [--no_use_public_ips] [--min_cpu_platform MIN_CPU_PLATFORM] [--dataflow_worker_jar DATAFLOW_WORKER_JAR] [--dataflow_job_file DATAFLOW_JOB_FILE] [--experiment EXPERIMENTS] [--number_of_worker_harness_threads NUMBER_OF_WORKER_HARNESS_THREADS] [--profile_cpu] [--profile_memory] [--profile_location PROFILE_LOCATION] [--profile_sample_rate PROFILE_SAMPLE_RATE] [--requirements_file REQUIREMENTS_FILE] [--requirements_cache REQUIREMENTS_CACHE] [--requirements_cache_only_sources] [--setup_file SETUP_FILE] [--beam_plugin BEAM_PLUGINS] [--pickle_library {cloudpickle,default,dill}] [--save_main_session] [--sdk_location SDK_LOCATION] [--extra_package EXTRA_PACKAGES] [--prebuild_sdk_container_engine PREBUILD_SDK_CONTAINER_ENGINE] [--prebuild_sdk_container_base_image PREBUILD_SDK_CONTAINER_BASE_IMAGE] [--cloud_build_machine_type CLOUD_BUILD_MACHINE_TYPE] [--docker_registry_push_url DOCKER_REGISTRY_PUSH_URL] [--job_endpoint JOB_ENDPOINT] [--artifact_endpoint ARTIFACT_ENDPOINT] [--job_server_timeout JOB_SERVER_TIMEOUT] [--environment_type ENVIRONMENT_TYPE] [--environment_config ENVIRONMENT_CONFIG] [--environment_option ENVIRONMENT_OPTIONS] [--sdk_worker_parallelism SDK_WORKER_PARALLELISM] [--environment_cache_millis ENVIRONMENT_CACHE_MILLIS] [--output_executable_path OUTPUT_EXECUTABLE_PATH] [--artifacts_dir ARTIFACTS_DIR] [--job_port JOB_PORT] [--artifact_port ARTIFACT_PORT] [--expansion_port EXPANSION_PORT] [--job_server_java_launcher JOB_SERVER_JAVA_LAUNCHER] [--job_server_jvm_properties JOB_SERVER_JVM_PROPERTIES] [--flink_master FLINK_MASTER] [--flink_version {1.12,1.13,1.14}] [--flink_job_server_jar FLINK_JOB_SERVER_JAR] [--flink_submit_uber_jar] [--spark_master_url SPARK_MASTER_URL] [--spark_job_server_jar SPARK_JOB_SERVER_JAR] [--spark_submit_uber_jar] [--spark_rest_url SPARK_REST_URL] [--spark_version {2,3}] [--on_success_matcher ON_SUCCESS_MATCHER] [--dry_run DRY_RUN] [--wait_until_finish_duration WAIT_UNTIL_FINISH_DURATION] [--pubsub_root_url PUBSUBROOTURL] [--s3_access_key_id S3_ACCESS_KEY_ID] [--s3_secret_access_key S3_SECRET_ACCESS_KEY] [--s3_session_token S3_SESSION_TOKEN] [--s3_endpoint_url S3_ENDPOINT_URL] [--s3_region_name S3_REGION_NAME] [--s3_api_version S3_API_VERSION] [--s3_verify S3_VERIFY] [--s3_disable_ssl] [--input-file INPUT_FILE] --output-path OUTPUT_PATH aaa_users_py.py: error: the following arguments are required: --output-path
It probably means that the pipeline built in this Python script has a required customized pipeline option that includes a field named --output-path. Think it as a "template" to spawn jobs by ETL data from the --input-path to the --output-path, you have to tell the pipeline where to read and write before submitting it as a job.
Output not displaying full list of elements appended
from csv import reader def func(sku_list): values = [] with open(sku_list, 'r', encoding = 'utf-8') as pr: rows = reader(pr) for sku in rows: values.append(sku[1]) return(values) if __name__ == '__main__': dir_path = "C:/Users/XXXX/Downloads/" vendors = dir_path + 'file.csv' new_prices = func(vendors) print(new_prices) sku_list is a csv file filled with pairs of brand names and their skus that I have downloaded from my db, for some reason as it iters through the rows and grabs just the sku value, hence sku[1], it stops well short of the actual length I expect the list to be sku_list is 85,892 tuples long but when I print out the values appended to the list values it simply returns this: ['SKU', 'MWGB4896', 'MWGB4872', 'MWGB4848', 'MWGB3648', 'WGB4896', 'WGB4872', 'WGB4848', 'WGB3648', 'WGB2436', 'WGB1824', 'BKGB4896NT', 'BKGB4872NT', 'BKGB4848NT', 'BKGB3648NT', 'BKGB2436NT', 'BKGB1824NT', 'WFC2418G', 'WFC2418', 'WFC3624', 'WFC2418LB', 'WFC3648LB', 'WFC3624LB', 'WFC3624G', 'WFC3648G', 'WFC3648', 'LOWFC3624LB', 'LOWFC3624G', 'LOWFC3624', 'LOWFC2418LB', 'LOWFC2418G', 'LOWFC2418', 'LOWFC3648LB', 'LOWFC3648', 'LOWFC3648G', 'WM-7-B', 'WM-7-G', 'WM-7-BK', 'WMC-7', 'WM-7-R', 'APS-50', 'APS-70', 'APS-60', 'APS-84', 'SS15W', 'SC15W', 'SB15W', 'MFL-2W', 'WP-48', 'WP-40', 'WP-36', 'MP-48', 'MP-40', 'MP-36', 'OP-40', 'OP-36', 'OP-48', 'FFVSU96-2', 'FFVSU144-2', 'FFVSU192-2', '1-WA-1B', '1-WA-1BP', 'WCS-12', 'WCS-144', 'OPLD3416LSPP-2', 'OPLD3416LSPP-4', 'OPLD3416LSPP-5', 'OPLD3416LSPP-7', 'OPLD3416LSPP-8', 'OPLD1818LSPP-2', 'OPLD1818LSPP-4', 'OPLD1818LSPP-5', 'OPLD1818LSPP-7', 'OPLD1818LSPP-8', 'OPLD1818L-2', 'OPLD1818L-5', 'OPLD1818L-4', 'OPLD3416L-2', 'OPLD3416L-4', 'OPLD3416L-5', 'OPLD3416L-7', 'OPLD3416L-8', 'OPLD1818L-7', 'OPLD1818L-8', 'OPLD3416SPP-8-892', 'OPLD3416SPP-8-897', 'OPLD3416SPP-8-878', 'OPLD3416SPP-8-885', 'OPLD3416SPP-8-887', 'OPLD3416SPP-8-890', 'OPLD3416SPP-8-845', 'OPLD3416SPP-8-854', 'OPLD3416SPP-8-856', 'OPLD3416SPP-8-876', 'OPLD3416SPP-8-802', 'OPLD3416SPP-8-706', 'OPLD3416SPP-8-705', 'OPLD3416SPP-8-704', 'OPLD3416SPP-8-837', 'OPLD3416SPP-8-831', 'OPLD3416SPP-8-819', 'OPLD3416SPP-8-812', 'OPLD3416SPP-8-685', 'OPLD3416SPP-8-683', 'OPLD3416SPP-8-679', 'OPLD3416SPP-8-531', 'OPLD3416SPP-8-703', 'OPLD3416SPP-8-702', 'OPLD3416SPP-8-701', 'OPLD3416SPP-8-700', 'OPLD3416SPP-7-892', 'OPLD3416SPP-7-897', 'OPLD3416SPP-7-887', 'OPLD3416SPP-7-890', 'OPLD3416SPP-8-530', 'OPLD3416SPP-7-845', 'OPLD3416SPP-7-854', 'OPLD3416SPP-7-831', 'OPLD3416SPP-7-837', 'OPLD3416SPP-7-878', 'OPLD3416SPP-7-885', 'OPLD3416SPP-7-856', 'OPLD3416SPP-7-876', 'OPLD3416SPP-7-703', 'OPLD3416SPP-7-702', 'OPLD3416SPP-7-705', 'OPLD3416SPP-7-704', 'OPLD3416SPP-7-802', 'OPLD3416SPP-7-706', 'OPLD3416SPP-7-819', 'OPLD3416SPP-7-812', 'OPLD3416SPP-7-530', 'OPLD3416SPP-7-679', 'OPLD3416SPP-7-531', 'OPLD3416SPP-7-685', 'OPLD3416SPP-7-683', 'OPLD3416SPP-7-701', 'OPLD3416SPP-7-700', 'OPLD3416SPP-5-878', 'OPLD3416SPP-5-885', 'OPLD3416SPP-5-887', 'OPLD3416SPP-5-890', 'OPLD3416SPP-5-892', 'OPLD3416SPP-5-897', 'OPLD3416SPP-5-812', 'OPLD3416SPP-5-819', 'OPLD3416SPP-5-831', 'OPLD3416SPP-5-837', 'OPLD3416SPP-5-845', 'OPLD3416SPP-5-854', 'OPLD3416SPP-5-856', 'OPLD3416SPP-5-876', 'OPLD1818SPP-8-819', 'OPLD1818SPP-8-831', 'OPLD1818SPP-8-802', 'OPLD1818SPP-8-812', 'OPLD1818SPP-8-854', 'OPLD1818SPP-8-856', 'OPLD1818SPP-8-837', 'OPLD1818SPP-8-845', 'OPLD1818SPP-8-701', 'OPLD1818SPP-8-702', 'OPLD1818SPP-8-685', 'OPLD1818SPP-8-700', 'OPLD1818SPP-8-705', 'OPLD1818SPP-8-706', 'OPLD1818SPP-8-703', 'OPLD1818SPP-8-704', 'OPLD1818SPP-8-887', 'OPLD1818SPP-8-885', 'OPLD1818SPP-8-878', 'OPLD1818SPP-8-876', 'OPLD1818SPP-8-897', 'OPLD1818SPP-8-892', 'OPLD1818SPP-8-890', 'OPLD3416SPP-4-837', 'OPLD3416SPP-4-831', 'OPLD3416SPP-4-854', 'OPLD3416SPP-4-845', 'OPLD3416SPP-4-802', 'OPLD3416SPP-4-706', 'OPLD3416SPP-4-819', 'OPLD3416SPP-4-812', 'OPLD3416SPP-4-890', 'OPLD3416SPP-4-887', 'OPLD3416SPP-4-897', 'OPLD3416SPP-4-892', 'OPLD3416SPP-4-876', 'OPLD3416SPP-4-856', 'OPLD3416SPP-4-885', 'OPLD3416SPP-4-878', 'OPLD3416SPP-5-531', 'OPLD3416SPP-5-679', 'OPLD3416SPP-5-683', 'OPLD3416SPP-5-685', 'OPLD3416SPP-5-530', 'OPLD3416SPP-5-704', 'OPLD3416SPP-5-705', 'OPLD3416SPP-5-706', 'OPLD3416SPP-5-802', 'OPLD3416SPP-5-700', 'OPLD3416SPP-5-701', 'OPLD3416SPP-5-702', 'OPLD3416SPP-5-703', 'OPLD3416SPP-2-837', 'OPLD3416SPP-2-831', 'OPLD3416SPP-2-819', 'OPLD3416SPP-2-812', 'OPLD3416SPP-2-802', 'OPLD3416SPP-2-706', 'OPLD3416SPP-2-705', 'OPLD3416SPP-2-704', 'OPLD3416SPP-2-890', 'OPLD3416SPP-2-887', 'OPLD3416SPP-2-885', 'OPLD3416SPP-2-878', 'OPLD3416SPP-2-876', 'OPLD3416SPP-2-856', 'OPLD3416SPP-2-854', 'OPLD3416SPP-2-845', 'OPLD3416SPP-4-531', 'OPLD3416SPP-4-679', 'OPLD3416SPP-4-530', 'OPLD3416SPP-2-892', 'OPLD3416SPP-2-897', 'OPLD3416SPP-4-704', 'OPLD3416SPP-4-705', 'OPLD3416SPP-4-702', 'OPLD3416SPP-4-703', 'OPLD3416SPP-4-700', 'OPLD3416SPP-4-701', 'OPLD3416SPP-4-683', 'OPLD3416SPP-4-685', 'OPLD3416SPP-2-530', 'OPLD3416SPP-2-531', 'OPLD3416SPP-2-679', 'OPLD3416SPP-2-683', 'OPLD3416SPP-2-685', 'OPLD3416SPP-2-700', 'OPLD3416SPP-2-701', 'OPLD3416SPP-2-702', 'OPLD3416SPP-2-703', 'OPLD1818SPP-7-819', 'OPLD1818SPP-7-831', 'OPLD1818SPP-7-837', 'OPLD1818SPP-7-845', 'OPLD1818SPP-7-705', 'OPLD1818SPP-7-706', 'OPLD1818SPP-7-802', 'OPLD1818SPP-7-812', 'OPLD1818SPP-7-701', 'OPLD1818SPP-7-702', 'OPLD1818SPP-7-703', 'OPLD1818SPP-7-704', 'OPLD1818SPP-7-679', 'OPLD1818SPP-7-683', 'OPLD1818SPP-7-685', 'OPLD1818SPP-7-700', 'OPLD1818SPP-8-531', 'OPLD1818SPP-8-530', 'OPLD1818SPP-8-683', 'OPLD1818SPP-8-679', 'OPLD1818SPP-7-897', 'OPLD1818SPP-7-887', 'OPLD1818SPP-7-885', 'OPLD1818SPP-7-892', 'OPLD1818SPP-7-890', 'OPLD1818SPP-7-856', 'OPLD1818SPP-7-854', 'OPLD1818SPP-7-878', 'OPLD1818SPP-7-876', 'OPLD1818SPP-5-819', 'OPLD1818SPP-5-831', 'OPLD1818SPP-5-802', 'OPLD1818SPP-5-812', 'OPLD1818SPP-5-705', 'OPLD1818SPP-5-706', 'OPLD1818SPP-5-703', 'OPLD1818SPP-5-704', 'OPLD1818SPP-5-701', 'OPLD1818SPP-5-702', 'OPLD1818SPP-5-685', 'OPLD1818SPP-5-700', 'OPLD1818SPP-5-679', 'OPLD1818SPP-5-683', 'OPLD1818SPP-5-530', 'OPLD1818SPP-5-531', 'OPLD1818SPP-7-531', 'OPLD1818SPP-7-530', 'OPLD1818SPP-5-897', 'OPLD1818SPP-5-892', 'OPLD1818SPP-5-890', 'OPLD1818SPP-5-887', 'OPLD1818SPP-5-885', 'OPLD1818SPP-5-878', 'OPLD1818SPP-5-876', 'OPLD1818SPP-5-856', 'OPLD1818SPP-5-854', 'OPLD1818SPP-5-845', 'OPLD1818SPP-5-837', 'OPLD1818SPP-4-701', 'OPLD1818SPP-4-702', 'OPLD1818SPP-4-703', 'OPLD1818SPP-4-704', 'OPLD1818SPP-4-705', 'OPLD1818SPP-4-706', 'OPLD1818SPP-4-802', 'OPLD1818SPP-4-812', 'OPLD1818SPP-4-530', 'OPLD1818SPP-4-531', 'OPLD1818SPP-4-679', 'OPLD1818SPP-4-683', 'OPLD1818SPP-4-685', 'OPLD1818SPP-4-700', 'OPLD1818SPP-4-887', 'OPLD1818SPP-2-837', 'OPLD1818SPP-2-845', 'OPLD1818SPP-2-854', 'OPLD1818SPP-2-856', 'OPLD1818SPP-2-802', 'OPLD1818SPP-2-812', 'OPLD1818SPP-2-819', 'OPLD1818SPP-2-831', 'OPLD1818SPP-2-890', 'OPLD1818SPP-2-892', 'OPLD1818SPP-2-897', 'OPLD1818SPP-2-876', 'OPLD1818SPP-2-878', 'OPLD1818SPP-2-885', 'OPLD1818SPP-2-887', 'OPLD1818SPP-2-531', 'OPLD1818SPP-2-530', 'OPLD1818SPP-2-683', 'OPLD1818SPP-2-679', 'OPLD1818SPP-2-704', 'OPLD1818SPP-2-703', 'OPLD1818SPP-2-706', 'OPLD1818SPP-2-705', 'OPLD1818SPP-2-700', 'OPLD1818SPP-2-685', 'OPLD1818SPP-2-702', 'OPLD1818SPP-2-701', 'OPLD1818SPP-4-876', 'OPLD1818SPP-4-878', 'OPLD1818SPP-4-854', 'OPLD1818SPP-4-856', 'OPLD1818SPP-4-837', 'OPLD1818SPP-4-845', 'OPLD1818SPP-4-819', 'OPLD1818SPP-4-831', 'OPLD1818SPP-4-897', 'OPLD1818SPP-4-890', 'OPLD1818SPP-4-892', 'OPLD1818SPP-4-885', 'PLD4832DPP-2-845', 'PLD4832DPP-2-837', 'PLD4832DPP-2-856', 'PLD4832DPP-2-854', 'PLD4832DPP-2-878', 'PLD4832DPP-2-876', 'PLD4832DPP-2-887', 'PLD4832DPP-2-885', 'PLD4832DPP-2-892', 'PLD4832DPP-2-890', 'PLD4832DPP-2-897', 'PLD4832DPP-4-531', 'PLD4832DPP-4-530', 'PLD4832DPP-4-679', 'PLD4832DPP-4-683', 'PLD4832DPP-4-685', 'PLD4832DPP-4-700', 'PLD4832DPP-4-701', 'PLD4832DPP-4-702', 'PLD4832DPP-4-703', 'PLD4832DPP-4-704', 'PLD4832DPP-4-705', 'PLD4832DPP-4-706', 'PLD4832DPP-4-802', 'PLD4832DPP-4-812', 'PLD4832DPP-4-819', 'PLD4832DPP-4-831', 'PLD4832DPP-4-837', 'PLD4832DPP-4-845', 'PLD4832DPP-4-878', 'PLD4832DPP-4-876', 'PLD4832DPP-4-856', 'PLD4832DPP-4-854', 'PLD4832DPP-4-892', 'PLD4832DPP-4-890', 'PLD4832DPP-4-887', 'PLD4832DPP-4-885', 'PLD4832DPP-4-897', 'PLD4832DPP-5-683', 'PLD4832DPP-5-679', 'PLD4832DPP-5-531', 'PLD4832DPP-5-530', 'PLD4832DPP-5-701', 'PLD4832DPP-5-702', 'PLD4832DPP-5-685', 'PLD4832DPP-5-700', 'PLD4832DPP-5-705', 'PLD4832DPP-5-706', 'PLD4832DPP-5-703', 'PLD4832DPP-5-704', 'PLD4832DPP-5-819', 'PLD4832DPP-5-831', 'PLD4832DPP-5-802', 'PLD4832DPP-5-812', 'PLD4832DPP-5-854', 'PLD4832DPP-5-856', 'PLD4832DPP-5-837', 'PLD4832DPP-5-845', 'PLD4832DPP-2-701', 'PLD4832DPP-2-702', 'PLD4832DPP-2-685', 'PLD4832DPP-2-700', 'PLD4832DPP-2-679', 'PLD4832DPP-2-683', 'PLD4832DPP-2-530', 'PLD4832DPP-2-531', 'PLD4832DPP-2-819', 'PLD4832DPP-2-831', 'PLD4832DPP-2-802', 'PLD4832DPP-2-812', 'PLD4832DPP-2-705', 'PLD4832DPP-2-706', 'PLD4832DPP-2-703', 'PLD4832DPP-2-704', 'PLD4226DPP-8-887', 'PLD4226DPP-8-890', 'PLD4226DPP-8-892', 'PLD4226DPP-8-897', 'PLD4226DPP-8-856', 'PLD4226DPP-8-876', 'PLD4226DPP-8-878', 'PLD4226DPP-8-885', 'PLD4226DPP-8-831', 'PLD4226DPP-8-837', 'PLD4226DPP-8-845', 'PLD4226DPP-8-854', 'PLD4226DPP-8-706', 'PLD4226DPP-8-802', 'PLD4226DPP-8-812', 'PLD4226DPP-8-819', 'PLD4226DPP-5-892', 'PLD4226DPP-5-897', 'PLD4226DPP-5-887', 'PLD4226DPP-5-890', 'PLD4226DPP-7-530', 'PLD4226DPP-7-683', 'PLD4226DPP-7-685', 'PLD4226DPP-7-531', 'PLD4226DPP-7-679', 'PLD4226DPP-7-702', 'PLD4226DPP-7-703', 'PLD4226DPP-7-700', 'PLD4226DPP-7-701', 'PLD4226DPP-5-705', 'PLD4226DPP-5-704', 'PLD4226DPP-5-703', 'PLD4226DPP-5-702', 'PLD4226DPP-5-819', 'PLD4226DPP-5-812', 'PLD4226DPP-5-802', 'PLD4226DPP-5-706', 'PLD4226DPP-5-854', 'PLD4226DPP-5-845', 'PLD4226DPP-5-837', 'PLD4226DPP-5-831', 'PLD4226DPP-5-885', 'PLD4226DPP-5-878', 'PLD4226DPP-5-876', 'PLD4226DPP-5-856', 'PLD4226DPP-7-892', 'PLD4226DPP-7-897', 'PLD4226DPP-8-530', 'PLD4226DPP-8-531', 'PLD4226DPP-8-679', 'PLD4226DPP-8-683', 'PLD4226DPP-8-685', 'PLD4226DPP-8-700', 'PLD4226DPP-8-701', 'PLD4226DPP-8-702', 'PLD4226DPP-8-703', 'PLD4226DPP-8-704', 'PLD4226DPP-8-705', 'PLD4226DPP-7-705', 'PLD4226DPP-7-704', 'PLD4226DPP-7-802', 'PLD4226DPP-7-706', 'PLD4226DPP-7-819', 'PLD4226DPP-7-812', 'PLD4226DPP-7-837', 'PLD4226DPP-7-831', 'PLD4226DPP-7-854', 'PLD4226DPP-7-845', 'PLD4226DPP-7-876', 'PLD4226DPP-7-856', 'PLD4226DPP-7-885', 'PLD4226DPP-7-878', 'PLD4226DPP-7-890', 'PLD4226DPP-7-887', 'PLD4226DPP-2-892', 'PLD4226DPP-2-897', 'PLD4226DPP-2-887', 'PLD4226DPP-2-890', 'PLD4226DPP-2-878', 'PLD4226DPP-2-885', 'PLD4226DPP-2-856', 'PLD4226DPP-2-876', 'PLD4226DPP-4-683', 'PLD4226DPP-4-685', 'PLD4226DPP-4-531', 'PLD4226DPP-4-679', 'PLD4226DPP-4-530', 'PLD4226DPP-2-705', 'PLD4226DPP-2-704', 'PLD4226DPP-2-703', 'PLD4226DPP-2-702', 'PLD4226DPP-2-701', 'PLD4226DPP-2-700', 'PLD4226DPP-2-685', 'PLD4226DPP-2-683', 'PLD4226DPP-2-854', 'PLD4226DPP-2-845', 'PLD4226DPP-2-837', 'PLD4226DPP-2-831', 'PLD4226DPP-2-819', 'PLD4226DPP-2-812', 'PLD4226DPP-2-802', 'PLD4226DPP-2-706', 'PLD4226DPP-4-892', 'PLD4226DPP-4-897', 'PLD4226DPP-4-878', 'PLD4226DPP-4-885', 'PLD4226DPP-4-887', 'PLD4226DPP-4-890', 'PLD4226DPP-5-683', 'PLD4226DPP-5-685', 'PLD4226DPP-5-700', 'PLD4226DPP-5-701', 'PLD4226DPP-5-530', 'PLD4226DPP-5-531', 'PLD4226DPP-5-679', 'PLD4226DPP-4-705', 'PLD4226DPP-4-704', 'PLD4226DPP-4-802', 'PLD4226DPP-4-706', 'PLD4226DPP-4-701', 'PLD4226DPP-4-700', 'PLD4226DPP-4-703', 'PLD4226DPP-4-702', 'PLD4226DPP-4-854', 'PLD4226DPP-4-845', 'PLD4226DPP-4-876', 'PLD4226DPP-4-856', 'PLD4226DPP-4-819', 'PLD4226DPP-4-812', 'PLD4226DPP-4-837', 'PLD4226DPP-4-831', 'PLD4226DPP-2-530', 'PLD4226DPP-2-679', 'PLD4226DPP-2-531', 'PLD5438DPP-5-683', 'PLD5438DPP-5-685', 'PLD5438DPP-5-531', 'PLD5438DPP-5-679', 'PLD5438DPP-5-702', 'PLD5438DPP-5-703', 'PLD5438DPP-5-700', 'PLD5438DPP-5-701', 'PLD5438DPP-5-706', 'PLD5438DPP-5-802', 'PLD5438DPP-5-704', 'PLD5438DPP-5-705', 'PLD5438DPP-5-831', 'PLD5438DPP-5-837', 'PLD5438DPP-5-812', 'PLD5438DPP-5-819', 'PLD5438DPP-5-876', 'PLD5438DPP-5-856', 'PLD5438DPP-5-854', 'PLD5438DPP-5-845', 'PLD5438DPP-5-890', 'PLD5438DPP-5-887', 'PLD5438DPP-5-885', 'PLD5438DPP-5-878', 'PLD5438DPP-5-897', 'PLD5438DPP-5-892', 'PLD5438DPP-7-679', 'PLD5438DPP-7-531', 'PLD5438DPP-7-530', 'PLD5438DPP-4-530', 'PLD5438DPP-4-531', 'PLD5438DPP-4-679', 'PLD5438DPP-4-683', 'PLD5438DPP-4-685', 'PLD5438DPP-4-700', 'PLD5438DPP-4-701', 'PLD5438DPP-4-702', 'PLD5438DPP-4-703', 'PLD5438DPP-4-704', 'PLD5438DPP-4-705', 'PLD5438DPP-4-706', 'PLD5438DPP-4-802', 'PLD5438DPP-4-812', 'PLD5438DPP-4-819', 'PLD5438DPP-4-837', 'PLD5438DPP-4-831', 'PLD5438DPP-4-854', 'PLD5438DPP-4-845', 'PLD5438DPP-4-876', 'PLD5438DPP-4-856', 'PLD5438DPP-4-885', 'PLD5438DPP-4-878', 'PLD5438DPP-4-890', 'PLD5438DPP-4-887', 'PLD5438DPP-4-897', 'PLD5438DPP-4-892', 'PLD5438DPP-5-530', 'PLD5438DPP None the final sku in there PLD5438DPP should be PLD5438DPP-5-683 and for some reason the list cuts off there, which is only element 564/85,892, and the program terminates without an error code I cannot attach the file of skus, this is for my job, just hoping someone can shed light on what I am doing to cause the list to cut short like that this may or may not also be relevant but when I call .append(sku) as opposed to sku[1] and grab the whole tuple the same issue occurs but at element 292, exactly half of the amount of element appended when only doing half the tuple
The issue seems to be one on my local machine, where it was unable to print such a long list, this one was of size 85,892 for those with similar issues see if any of our specs are overlapping and that may determine the cause of this issue: VSCode: Version: 1.52.0 (user setup) Commit: 940b5f4bb5fa47866a54529ed759d95d09ee80be Date: 2020-12-10T22:45:11.850Z Electron: 9.3.5 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.18363 Python: 3.9.0 see discussion in comments for other details
Tensorflow synapse output and input as text file
I have a object-detection output result with tensorflow. which is a 13*13*125 float32 array. (tiny-yolo-v2) which I can output with a text file. Now I want to write another program, to parse the text file. How can I use numpy or something else, to load the text file back to array? I just want to load the text file, and place with the right position, just like it's original (13*13*125) array, so i can do something with it. Below is the sample of text output, full file is too long so i truncate some of it. [[[ 1.02357492e-02 -4.58745286e-02 -3.53223026e-01 1.05358012e-01 -4.35989094e+00 -6.99408484e+00 -4.73687983e+00 -4.24568987e+00 -5.61564398e+00 -2.89398456e+00 -6.23602247e+00 -1.50982809e+00 -5.22811985e+00 -2.62615561e+00 -5.22997189e+00 -7.89167452e+00 -5.44317961e+00 -6.20110512e+00 -5.04192924e+00 -2.02722573e+00 -4.10300493e+00 -6.34364843e+00 -5.39359808e+00 -8.28967571e+00 -5.09567547e+00 7.58925438e-01 3.76614660e-01 -1.04403806e+00 -6.47649229e-01 -3.87396884e+00 -6.38732052e+00 -4.58577824e+00 -4.16016054e+00 -5.30572081e+00 -3.85717177e+00 -6.05014038e+00 -1.81165671e+00 -3.75763679e+00 -2.88092995e+00 -4.67342377e+00 -4.71987104e+00 -4.39510489e+00 -5.11723280e+00 -5.39322329e+00 -2.66565347e+00 -3.81883574e+00 -5.66908169e+00 -4.71839476e+00 -6.30157852e+00 -4.82082224e+00 2.92960078e-01 5.97341239e-01 -1.40992713e+00 -1.11044288e+00 -4.18370819e+00 -7.12151051e+00 -5.35866928e+00 -4.90489340e+00 -5.99866199e+00 -5.80428791e+00 -6.52985144e+00 -3.30560398e+00 -5.25323820e+00 -3.49718428e+00 -5.35445309e+00 -4.74132204e+00 -5.51197958e+00 -5.49749136e+00 -5.92978096e+00 -3.28844571e+00 -5.49212742e+00 -6.66666460e+00 -4.93477535e+00 -7.05240107e+00 -5.52950144e+00 3.19003403e-01 4.28509444e-01 -1.37157345e+00 -7.52444148e-01 -5.07417107e+00 -6.86192179e+00 -5.41829157e+00 -4.65392542e+00 -6.23983860e+00 -5.52950287e+00 -5.39464998e+00 -3.28175688e+00 -4.32805681e+00 -3.33854008e+00 -5.02955580e+00 -5.26897430e+00 -4.58855247e+00 -5.45577812e+00 -7.06963253e+00 -3.20757794e+00 -4.94750690e+00 -6.26993036e+00 -5.85515499e+00 -7.07721949e+00 -5.31591606e+00 3.89474362e-01 3.98911506e-01 -1.40775967e+00 -1.07488203e+00 -3.43887043e+00 -7.79423666e+00 -6.68394804e+00 -5.61368179e+00 -6.34769297e+00 -6.83281803e+00 -6.70960665e+00 -3.65747070e+00 -5.44360542e+00 -4.12546444e+00 -5.75262260e+00 -5.18836164e+00 -5.15945435e+00 -6.07800007e+00 -6.70447493e+00 -4.12499619e+00 -6.12767649e+00 -6.96556044e+00 -4.83318233e+00 -7.69717407e+00 -6.56721640e+00] [ 1.61234528e-01 -4.70345289e-01 2.98500329e-01 8.74740630e-03 -8.38169765e+00 -1.54907408e+01 -1.07314129e+01 -8.34741211e+00 -1.13781738e+01 -7.54940701e+00 -1.22155275e+01 -4.80996466e+00 -1.10561914e+01 -5.93502522e+00 -1.11998129e+01 -1.67726002e+01 -1.05111227e+01 -1.29506483e+01 -9.64104748e+00 -5.52446413e+00 -8.78175163e+00 -1.36118546e+01 -1.10795031e+01 -1.83356972e+01 -1.16452293e+01 4.82036829e-01 5.17037362e-02 -9.76964355e-01 -1.00542104e+00 -8.73878384e+00 -1.47731256e+01 -9.41302872e+00 -7.78294754e+00 -1.06155653e+01 -8.81066895e+00 -1.25413752e+01 -5.20565796e+00 -8.54619980e+00 -6.01115370e+00 -1.01015797e+01 -9.61278534e+00 -8.36357498e+00 -1.08267517e+01 -1.04049816e+01 -5.86520195e+00 -7.45389271e+00 -1.18097382e+01 -9.29529381e+00 -1.35695248e+01 -1.10684004e+01 -4.49465424e-01 7.23291993e-01 -1.33733368e+00 -1.57884443e+00 -9.29384422e+00 -1.66824398e+01 -1.17275839e+01 -1.19206190e+01 -1.26649590e+01 -1.42257290e+01 -1.43436852e+01 -9.10658264e+00 -1.34929924e+01 -8.85398579e+00 -1.30774622e+01 -9.42021656e+00 -1.28294401e+01 -1.38840723e+01 -1.24558411e+01 -8.84429169e+00 -1.17602949e+01 -1.50427999e+01 -1.07627420e+01 -1.64452419e+01 -1.44604845e+01 -1.37743965e-01 9.12959814e-01 -1.42015231e+00 -1.60620236e+00 -1.05381451e+01 -1.63558159e+01 -1.20377207e+01 -9.80946445e+00 -1.27067585e+01 -1.21898088e+01 -1.22341051e+01 -7.98180962e+00 -1.05312557e+01 -7.84510660e+00 -1.18309231e+01 -1.10772572e+01 -9.54380226e+00 -1.25601234e+01 -1.43880062e+01 -6.95701408e+00 -1.07601147e+01 -1.41597824e+01 -1.32586575e+01 -1.58946438e+01 -1.29948921e+01 -1.14585623e-01 6.38350546e-01 -1.65523076e+00 -1.67830050e+00 -6.13089418e+00 -1.99999962e+01 -1.58348789e+01 -1.47631931e+01 -1.50945425e+01 -1.69028625e+01 -1.67195797e+01 -1.10481138e+01 -1.45758791e+01 -1.19301071e+01 -1.46967478e+01 -1.34157457e+01 -1.31685534e+01 -1.52268438e+01 -1.63326721e+01 -1.15273895e+01 -1.43742008e+01 -1.75251045e+01 -1.33377829e+01 -1.88240013e+01 -1.68392487e+01] [ 7.36066699e-01 -3.97309035e-01 3.82082105e-01 -4.82245922e-01 -1.08697920e+01 -2.12837963e+01 -1.57861137e+01 -1.22496452e+01 -1.57928638e+01 -1.18547354e+01 -1.80118999e+01 -7.86523342e+00 -1.56991911e+01 -1.01874857e+01 -1.54575453e+01 -2.39257183e+01 -1.58380346e+01 -1.81504345e+01 -1.34132137e+01 -8.03548622e+00 -1.13906355e+01 -1.92472000e+01 -1.61356659e+01 -2.55897179e+01 -1.63397522e+01 1.27788866e+00 1.47072300e-01 -1.28866732e+00 -1.59696829e+00 -1.16580629e+01 -2.02393227e+01 -1.35793419e+01 -1.12705021e+01 -1.47425270e+01 -1.25504894e+01 -1.83755665e+01 -7.93362045e+00 -1.18984699e+01 -9.53976822e+00 -1.38737183e+01 -1.44854469e+01 -1.36983585e+01 -1.51859636e+01 -1.39583693e+01 -7.84845734e+00 -8.99971676e+00 -1.61694489e+01 -1.35863504e+01 -1.87846413e+01 -1.51690617e+01 -2.49404103e-01 7.78339028e-01 -1.56386018e+00 -1.99905097e+00 -1.37179251e+01 -2.25832596e+01 -1.66161022e+01 -1.74464626e+01 -1.75472069e+01 -1.98302021e+01 -2.10891953e+01 -1.31870728e+01 -1.92208481e+01 -1.34429426e+01 -1.86840858e+01 -1.41525555e+01 -1.94452248e+01 -1.92487373e+01 -1.68426666e+01 -1.22350378e+01 -1.52343149e+01 -2.06815968e+01 -1.60188885e+01 -2.32096100e+01 -2.02435265e+01 -4.40291494e-01 9.96976972e-01 -1.84825552e+00 -2.43193603e+00 -1.60602741e+01 -2.19036083e+01 -1.68400517e+01 -1.44771357e+01 -1.67081776e+01 -1.65251980e+01 -1.87576752e+01 -1.10540638e+01 -1.53755598e+01 -1.19390879e+01 -1.68008995e+01 -1.63949070e+01 -1.50700588e+01 -1.70634537e+01 -1.89655972e+01 -8.94600296e+00 -1.35194263e+01 -1.92807941e+01 -1.87041073e+01 -2.21856689e+01 -1.78996506e+01 -1.16609700e-01 8.56797874e-01 -1.91140997e+00 -2.10396862e+00 -1.01619406e+01 -2.68737984e+01 -2.20997658e+01 -2.17673626e+01 -2.05160961e+01 -2.39515285e+01 -2.49530716e+01 -1.63933392e+01 -2.10805988e+01 -1.75326271e+01 -2.07077827e+01 -2.00489578e+01 -1.99268951e+01 -2.12444305e+01 -2.24091759e+01 -1.62087784e+01 -1.91759224e+01 -2.42828751e+01 -1.97305717e+01 -2.62558804e+01 -2.35940552e+01] [ 1.64787069e-01 -1.68441325e-01 4.64288980e-01 -7.47514069e-01 -1.13719883e+01 -2.10964813e+01 -1.58254576e+01 -1.20305328e+01 -1.56141787e+01 -1.24658909e+01 -1.81972294e+01 -8.23118114e+00 -1.59399385e+01 -1.12004852e+01 -1.55562868e+01 -2.40003681e+01 -1.60093613e+01 -1.83026943e+01 -1.34068794e+01 -6.93028069e+00 -1.03299189e+01 -1.94805012e+01 -1.63801708e+01 -2.56201134e+01 -1.63976402e+01 1.10720372e+00 1.62255913e-01 -1.05587530e+00 -1.77236927e+00 -1.20724707e+01 -2.02502041e+01 -1.33943348e+01 -1.08683929e+01 -1.41024590e+01 -1.30132847e+01 -1.84846783e+01 -7.94123554e+00 -1.22969742e+01 -1.03535299e+01 -1.35685444e+01 -1.45834017e+01 -1.35028725e+01 -1.57420397e+01 -1.32303410e+01 -6.45265770e+00 -7.93988371e+00 -1.61845226e+01 -1.36617155e+01 -1.87895412e+01 -1.55598927e+01 -1.80259988e-01 1.03606677e+00 -1.41069508e+00 -2.04342628e+00 -1.45336590e+01 -2.16282444e+01 -1.64379387e+01 -1.69099007e+01 -1.71524391e+01 -2.03189278e+01 -2.16217175e+01 -1.30156775e+01 -1.94296246e+01 -1.43709736e+01 -1.84245052e+01 -1.49390011e+01 -1.87584820e+01 -1.90721817e+01 -1.62022648e+01 -1.08158903e+01 -1.40190802e+01 -2.06927853e+01 -1.63408413e+01 -2.31514969e+01 -2.11648083e+01 -5.68280160e-01 1.25197387e+00 -1.61449420e+00 -2.57362318e+00 -1.61436348e+01 -2.13765507e+01 -1.67169514e+01 -1.40701723e+01 -1.61057911e+01 -1.66000061e+01 -1.96425610e+01 -1.07086115e+01 -1.61478901e+01 -1.29794235e+01 -1.68822880e+01 -1.73082714e+01 -1.47676716e+01 -1.75105286e+01 -1.80940990e+01 -7.51458597e+00 -1.21162443e+01 -1.94071865e+01 -1.87942944e+01 -2.22906494e+01 -1.84283085e+01 1.27930269e-01 1.27133667e+00 -1.74558055e+00 -2.15854144e+00 -1.09730215e+01 -2.62110558e+01 -2.23466148e+01 -2.14312553e+01 -1.95770702e+01 -2.44276924e+01 -2.58058815e+01 -1.61417542e+01 -2.14367542e+01 -1.83109913e+01 -2.04648132e+01 -2.08876133e+01 -1.97048931e+01 -2.15082779e+01 -2.18297424e+01 -1.52893324e+01 -1.85209503e+01 -2.46299267e+01 -1.97363987e+01 -2.58215981e+01 -2.42690868e+01] . . . [-4.79533195e-01 -7.68981576e-01 -1.77157074e-01 -2.00561881e-01 -6.15729952e+00 -1.10808945e+01 -8.79792976e+00 -9.85613537e+00 -1.03026905e+01 -6.87720442e+00 -1.21334057e+01 -7.71150637e+00 -1.17531910e+01 -6.80997133e+00 -1.25995235e+01 -1.25998411e+01 -1.17608614e+01 -1.11489801e+01 -9.56524754e+00 -5.58242607e+00 -8.39977741e+00 -1.11510391e+01 -1.21788979e+01 -1.27471313e+01 -9.78714943e+00 1.04039955e+00 -1.47011960e+00 -1.81243956e+00 -1.05356848e+00 -7.45137024e+00 -1.10531626e+01 -7.84224939e+00 -9.17456150e+00 -8.58650589e+00 -5.74499321e+00 -1.13209743e+01 -8.41722298e+00 -1.01030149e+01 -6.03559208e+00 -1.16964493e+01 -1.01863642e+01 -1.12248173e+01 -1.11838684e+01 -8.50443459e+00 -5.21056652e+00 -8.14196777e+00 -1.00152636e+01 -1.10866699e+01 -1.11966391e+01 -9.41972065e+00 -1.03180420e+00 -1.99524832e+00 -1.77945817e+00 -1.55166841e+00 -8.39315605e+00 -1.05041189e+01 -8.82065392e+00 -9.86864853e+00 -9.29331779e+00 -7.26610661e+00 -1.02731133e+01 -8.88734341e+00 -1.01116686e+01 -7.06797981e+00 -1.14280262e+01 -1.06731510e+01 -1.14312458e+01 -1.05220804e+01 -9.01323318e+00 -5.39441586e+00 -8.52228928e+00 -9.87894917e+00 -1.08900566e+01 -1.09518299e+01 -9.72581577e+00 -2.16618586e+00 -1.49259973e+00 -1.68929064e+00 -1.36120069e+00 -8.58770275e+00 -1.00534191e+01 -9.97209167e+00 -1.05166273e+01 -9.29751587e+00 -7.26231098e+00 -1.13336391e+01 -9.37137890e+00 -1.04662256e+01 -7.50347424e+00 -1.16567268e+01 -1.01384783e+01 -1.12277622e+01 -1.08337603e+01 -9.39500999e+00 -6.51295757e+00 -9.02511883e+00 -1.06069736e+01 -1.13605204e+01 -1.08889675e+01 -9.81694508e+00 -1.06967080e+00 -1.58631933e+00 -1.36870170e+00 -1.17178059e+00 -7.71994257e+00 -9.72991562e+00 -9.93029594e+00 -1.08334541e+01 -9.51464462e+00 -9.31674480e+00 -1.08087626e+01 -9.48193550e+00 -9.81091881e+00 -8.34595966e+00 -1.10064735e+01 -9.91674614e+00 -1.18921404e+01 -1.08112535e+01 -9.73410416e+00 -7.14041519e+00 -8.62492752e+00 -1.10488844e+01 -1.03341990e+01 -1.04487247e+01 -1.07167931e+01]]] I tried to use following format, it can read out something but the sequence is totally wrong net_out = np.fromfile(filename, np.float32, count=13*13*125).reshape(13,13,125)
Tensorflow Object Detection Jupyter Notebook no detection
I tried to run the Jupyter Notebook example for the object detection of tensorflow (tutorial) but there are no detections. I printed the scores and it's seems to work but the results are very bad. Does anyone have an idea what I might have done wrong. print(scores[0]): [ 0.03587309 0.02224856 0.01864638 0.01096715 0.0100315 0.0065446 0.00633551 0.00534311 0.00495995 0.00410238 0.00362363 0.00339175 0.00308251 0.0030337 0.00293387 0.00277085 0.00269581 0.00266825 0.00263924 0.00263331 0.00258721 0.00240822 0.00225823 0.00186966 0.00184308 0.00180467 0.00177474 0.00173643 0.0017281 0.00171935 0.00171891 0.00170284 0.00163754 0.00162967 0.00160267 0.00156545 0.00153614 0.00140936 0.00132406 0.00131524 0.00131041 0.00129431 0.00125819 0.0012553 0.00122365 0.00119179 0.00115673 0.00115186 0.00112368 0.00107096 0.00105803 0.00104337 0.00102719 0.00102337 0.00100349 0.00097767 0.0009685 0.00092741 0.00088506 0.00087696 0.0008734 0.00084825 0.00084135 0.00083512 0.00083396 0.00082068 0.00080583 0.00078979 0.00078059 0.00077475 0.00075449 0.00074426 0.00074421 0.00070195 0.00068741 0.00068138 0.00067261 0.00067125 0.00067032 0.00066041 0.0006473 0.00064205 0.00061964 0.00061793 0.00060834 0.00060468 0.00059547 0.00059478 0.00059461 0.00059436 0.00059426 0.00059411 0.00059406 0.00059392 0.00059365 0.00059351 0.00059191 0.00058798 0.00058682 0.00058148] [ 0.01044157 0.00982138 0.00942336 0.00846517 0.00613665 0.00398568 0.00357755 0.00300539 0.00255862 0.00236576 0.00232631 0.00220291 0.00185227 0.00163544 0.00159791 0.00145071 0.0014366 0.0014137 0.00122685 0.00118978 0.00108457 0.00104252 0.00099215 0.00096401 0.0008708 0.00084774 0.00080484 0.00078507 0.00078379 0.00076875 0.00072774 0.00071732 0.00071343 0.00070812 0.00069253 0.0006762 0.00067269 0.00059905 0.00059367 0.000588 0.00056114 0.0005504 0.00051472 0.00051055 0.00050973 0.00048484 0.00047297 0.00046204 0.00044787 0.00043259 0.00042987 0.00042673 0.00041978 0.00040494 0.00040087 0.00039576 0.00039059 0.00037274 0.00036828 0.00036417 0.0003612 0.00034645 0.00034479 0.00034078 0.00033771 0.00033605 0.0003333 0.0003304 0.0003294 0.00032325 0.00031787 0.00031773 0.00031748 0.00031741 0.00031732 0.00031729 0.00031724 0.00031722 0.00031717 0.00031708 0.00031702 0.00031579 0.00030416 0.00030222 0.00029739 0.00029726 0.00028289 0.00026527 0.00026325 0.00024584 0.00024221 0.00024156 0.0002391 0.00023335 0.00021617 0.0002001 0.00019127 0.00018342 0.00017271 0.00015507] I'm running the example with tensorflow 1.4, python 3.5 and I tested the installation as suggested.
I had the same issue. I found in a post that you have to change: MODEL_NAME = 'ssd_mobilenet_v1_coco_2017_11_08' To: MODEL_NAME = 'ssd_mobilenet_v1_coco_11_06_2017' and it worked fine. Original answer: https://stackoverflow.com/a/47332228/8954260
How to decode javascript code within <Script LANGUAGE="JScript.Encode">
I would like to implement a Python script which has the same functionality as http://www.greymagic.com/security/tools/decoder/ Is the encoding rule open for this type of javascript code encoding? Thanks. An example of this: <Script LANGUAGE="JScript.Encode">##~^TBQAAA==-mD~kk9P'8*R0%p\CD,wr[&fP{~xhPz..lH`EFTc+{W*v~Eq!W {*+B~vqZc+GW{E~v8!W GW%ESB8!* Fc1vBBFZ* F*!ESvFZcyGXFvSEFTcy{*yBSv8!c+{l&v~EqZc+F*WB~EFZ* F*XBBBqTW GlBBBFZ*+GlGE~vFT*yGX%ESB8!*+F*,vSEFTcy{+!vBB8!cyG+qBBBq!W {yB~Eq!W G+fv~EFZc+G*E~vFZ* FvXvBBFT*yGvESEFTW FvGE~Eq!W {vRBSv8!cy{vOB~EqTcyGF!v~vqZc+GFqBBBqTW G{+E~vFZ*yG{2BBBFZcy{GWBSB8!*+FG*ESB8!cy{{vE~EFTc+{FGv~Eq!W {{RB~vqZc+GF1E~v8!W GR!ESB8!* F%qvBBFZ* F% ESvFZcyG0&vSEFTcy{%WBSv8!c+{R*v~EqZc+F%+B~EFZ* F%{BBBqTW GR0BBBFZ*+GR,E~vFT*yG1!ESB8!*+F,FvSEFTcy{O vBB8!cyGOfBBBq!W {1WB~Eq!W GOXv~EFZc+G1E~vFZ* F,{vBBFT*yG1%ESEFTW F,,E~Eq!W 0!ZBSv8!cy0!8B~EqTcy%Z v~vqZc+%ZfBBBqTW %T*E~vFZ*y%TlBBBFZcy0!+BSB8!*+R!GESB8!cy0T%E~EFTc+0Z,v~Eq!W 0qZB~vqZc+%8qE~v8!W %8 ESB8!* RFfvBBFZ* RFcESvFZcy%q*vSEFTcy0F+BSv8!c+08Gv~EqZc+RFRB~EFZ* RF1BBBqTW %yTBBBFZ*+%yFE~vFT*y%+ ESB8!*+R &vSEFTcy0ycvBB8!cy%yXBBBq!W 0++B~Eq!W %y{v~EFZc+%+0E~vFZ* R 1vBBFT*y%f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