Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

module 'utils.cv.dataset' has no attribute 'OutOfInstances' - after adding transformers #67

Closed
3sky opened this issue Sep 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@3sky
Copy link
Contributor

3sky commented Sep 17, 2021

After adding transformers lib to pipeline docker image Jenkins throw an error while building.

+ python3 benchmark_tf.py -m mobilenet_v2 -p fp32 -b 16 --timeout=15.0

The result it:

WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
Version: latest-1043-g773bbcaa0
git-773bbcaa0,jerrybdev,2021-09-10T14:12:30+02:00 built 20210917_141335 by  on  99043dd6832e
Invalid value passed to DLS_CPU_LEVEL. Possible values are 'avx2', 'avx512'. Got:  0
Attempt to register kernel  AvgPoolingMeta<FP16[8]>@NEON with priority clashes (priority-wise) with the following kernels:  AvgPoolingMeta<FLOAT[4]>@NEON AvgPoolingMeta<INT8[32]>@NEON 
Attempt to register kernel  MaxPoolingMeta<FP16[8]>@NEON with priority clashes (priority-wise) with the following kernels:  MaxPoolingMeta<FLOAT[4]>@NEON MaxPoolingMeta<INT8[16]>@NEON 
Unknown DLS variable: DLS_X86 = "0"
Unknown DLS variable: DLS_TARGET_ARCH = "altra"
Unknown DLS variable: DLS_ARM64 = "1"
AVX512_ENABLED: 0
DLS_PROCESS_MODE:  1
DLS_NUM_THREADS:  16
CPU_BIND:  1
MEM_BIND:  1
DLS_SUPERNODE 0
2021-09-17 15:17:54.290872: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:196] None of the MLIR optimization passes are enabled (registered 0 passes)
2021-09-17 15:17:54.294854: W tensorflow/core/platform/profile_utils/cpu_utils.cc:116] Failed to find bogomips or clock in /proc/cpuinfo; cannot determine CPU frequency
PlatformInfo(vendor_id=3, cpu_family=8, cpu_model=3340, isa=NEON, L1=CacheInfo(size=65536, inclusive=1, share_count=1), L2=CacheInfo(size=1048576, inclusive=0, share_count=1), L3=CacheInfo(size=33554432, inclusive=0, share_count=80))

Intraop parallelism set to 16 threads


Running with TensorFlow

Traceback (most recent call last):
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/utils/cv/imagenet.py", line 74, in __get_path_to_img
    file_name = self.__file_names[self.__current_img]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "benchmark_tf.py", line 29, in <module>
    main()
  File "benchmark_tf.py", line 25, in main
    model.handler(model, args.batch_size, None, args.timeout)
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/run_utils/imagenet.py", line 66, in imagenet_handler
    return run(model.run_func)
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/run_utils/imagenet.py", line 55, in run
    return func(
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/computer_vision/classification/mobilenet_v2/run.py", line 55, in run_tf_fp32
    return run_tf_fp(model_path, batch_size, num_of_runs, timeout, images_path, labels_path)
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/computer_vision/classification/mobilenet_v2/run.py", line 51, in run_tf_fp
    return run_model(run_single_pass, runner, dataset, batch_size, num_of_runs, timeout)
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/utils/benchmark.py", line 119, in run_model
    single_pass_func(runner, dataset)
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/computer_vision/classification/mobilenet_v2/run.py", line 38, in run_single_pass
    tf_runner.set_input_tensor("input:0", imagenet.get_input_array(shape))
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/utils/cv/imagenet.py", line 93, in get_input_array
    self.path_to_latest_image = self.__get_path_to_img()
  File "/space/jenkins/workspace/Nightly_Builds/tf2-long-run/model_zoo_dev/model_zoo/utils/cv/imagenet.py", line 76, in __get_path_to_img
    raise utils_ds.OutOfInstances("No more ImageNet images to process in the directory provided")
AttributeError: module 'utils.cv.dataset' has no attribute 'OutOfInstances'
@3sky 3sky added the bug Something isn't working label Sep 17, 2021
jan-grzybek-ampere added a commit that referenced this issue Sep 17, 2021
* Fix re module 'utils.cv.dataset' has no attribute 'OutOfInstances' - after adding transformers #67
@jan-grzybek-ampere
Copy link
Member

Fixed.

jan-grzybek-ampere added a commit that referenced this issue Sep 17, 2021
* SSD ResNet-34 (#65)

* fixes  (#46)

* Squad v1.1 pipeline + BERT's from mlcommons:inference + directory refactor (#66)

* Fix to OutOfInstances error raising (#68)

* Fix re module 'utils.cv.dataset' has no attribute 'OutOfInstances' - after adding transformers #67

Co-authored-by: Marcel Wilnicki <42609544+MarcelWilnicki@users.noreply.github.com>
jerrybdev pushed a commit that referenced this issue Oct 26, 2021
* Fix re module 'utils.cv.dataset' has no attribute 'OutOfInstances' - after adding transformers #67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants