You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO:tensorflow:Done running local_init_op.
I0719 11:49:25.955098 139723603752768 session_manager.py:530] Done running local_init_op.
2022-07-19 11:54:59.144640: W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: generate_detections/nms_detections_3_255/PartitionedCall/cond/branch_executed/_138007
Traceback (most recent call last):
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1377, in _do_call
return fn(*args)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1360, in _run_fn
return self._call_tf_sessionrun(options, feed_dict, fetch_list,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1453, in _call_tf_sessionrun
return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict,
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
(0) INVALID_ARGUMENT: Incompatible shapes: [1,1,1203] vs. [256,1000,6]
[[{{node frcnn_layer_0/fast_rcnn_head/BroadcastTo_2}}]]
[[stack_1/_80625]]
(1) INVALID_ARGUMENT: Incompatible shapes: [1,1,1203] vs. [256,1000,6]
[[{{node frcnn_layer_0/fast_rcnn_head/BroadcastTo_2}}]]
0 successful operations.
0 derived errors ignored.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wanjiz/tpu/models/official/detection/main.py", line 184, in <module>
tf.app.run(main)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/platform/app.py", line 36, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/wanjiz/tpu/models/official/detection/main.py", line 160, in main
executor.evaluate(eval_input_fn, eval_times, ckpt)
File "/home/wanjiz/tpu/models/official/detection/executor/tpu_executor.py", line 204, in evaluate
outputs = six.next(predictor)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 642, in predict
preds_evaluated = mon_sess.run(predictions)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/training/monitored_session.py", line 782, in run
return self._sess.run(
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/training/monitored_session.py", line 1311, in run
return self._sess.run(
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/training/monitored_session.py", line 1416, in run
raise six.reraise(*original_exc_info)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/six.py", line 719, in reraise
raise value
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/training/monitored_session.py", line 1401, in run
return self._sess.run(*args, **kwargs)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/training/monitored_session.py", line 1469, in run
outputs = _WrappedSession.run(
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/training/monitored_session.py", line 1232, in run
return self._sess.run(*args, **kwargs)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 967, in run
result = self._run(None, fetches, feed_dict, options_ptr,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1190, in _run
results = self._do_run(handle, final_targets, final_fetches,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1370, in _do_run
return self._do_call(_run_fn, feeds, fetches, targets, options,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/client/session.py", line 1396, in _do_call
raise type(e)(node_def, op, message) # pylint: disable=no-value-for-parameter
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:
Detected at node 'frcnn_layer_0/fast_rcnn_head/BroadcastTo_2' defined at (most recent call last):
File "/home/wanjiz/tpu/models/official/detection/main.py", line 184, in <module>
tf.app.run(main)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/wanjiz/tpu/models/official/detection/main.py", line 160, in main
executor.evaluate(eval_input_fn, eval_times, ckpt)
File "/home/wanjiz/tpu/models/official/detection/executor/tpu_executor.py", line 204, in evaluate
outputs = six.next(predictor)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 623, in predict
estimator_spec = self._call_model_fn(features, None, ModeKeys.PREDICT,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1174, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "/home/wanjiz/tpu/models/official/detection/modeling/model_builder.py", line 51, in __call__
return self._model.predict(features)
File "/home/wanjiz/tpu/models/official/detection/modeling/base_model.py", line 389, in predict
outputs = self.build_outputs(images, labels, mode=mode_keys.PREDICT)
File "/home/wanjiz/tpu/models/official/detection/modeling/base_model.py", line 206, in build_outputs
outputs = self._build_outputs(images, labels, mode)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_model.py", line 174, in _build_outputs
distill_class_outputs) = self._frcnn_head_fn(roi_features, is_training)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_head.py", line 325, in __call__
class_outputs = _divide_no_nan(class_outputs, classifier_norm[None,
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_head.py", line 38, in _divide_no_nan
tf.greater_equal(tf.broadcast_to(y, x.get_shape()), -epsilon),
Node: 'frcnn_layer_0/fast_rcnn_head/BroadcastTo_2'
Detected at node 'frcnn_layer_0/fast_rcnn_head/BroadcastTo_2' defined at (most recent call last):
File "/home/wanjiz/tpu/models/official/detection/main.py", line 184, in <module>
tf.app.run(main)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/wanjiz/tpu/models/official/detection/main.py", line 160, in main
executor.evaluate(eval_input_fn, eval_times, ckpt)
File "/home/wanjiz/tpu/models/official/detection/executor/tpu_executor.py", line 204, in evaluate
outputs = six.next(predictor)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 623, in predict
estimator_spec = self._call_model_fn(features, None, ModeKeys.PREDICT,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1174, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "/home/wanjiz/tpu/models/official/detection/modeling/model_builder.py", line 51, in __call__
return self._model.predict(features)
File "/home/wanjiz/tpu/models/official/detection/modeling/base_model.py", line 389, in predict
outputs = self.build_outputs(images, labels, mode=mode_keys.PREDICT)
File "/home/wanjiz/tpu/models/official/detection/modeling/base_model.py", line 206, in build_outputs
outputs = self._build_outputs(images, labels, mode)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_model.py", line 174, in _build_outputs
distill_class_outputs) = self._frcnn_head_fn(roi_features, is_training)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_head.py", line 325, in __call__
class_outputs = _divide_no_nan(class_outputs, classifier_norm[None,
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_head.py", line 38, in _divide_no_nan
tf.greater_equal(tf.broadcast_to(y, x.get_shape()), -epsilon),
Node: 'frcnn_layer_0/fast_rcnn_head/BroadcastTo_2'
2 root error(s) found.
(0) INVALID_ARGUMENT: Incompatible shapes: [1,1,1203] vs. [256,1000,6]
[[{{node frcnn_layer_0/fast_rcnn_head/BroadcastTo_2}}]]
[[stack_1/_80625]]
(1) INVALID_ARGUMENT: Incompatible shapes: [1,1,1203] vs. [256,1000,6]
[[{{node frcnn_layer_0/fast_rcnn_head/BroadcastTo_2}}]]
0 successful operations.
0 derived errors ignored.
Original stack trace for 'frcnn_layer_0/fast_rcnn_head/BroadcastTo_2':
File "/home/wanjiz/tpu/models/official/detection/main.py", line 184, in <module>
tf.app.run(main)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/platform/app.py", line 36, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/wanjiz/tpu/models/official/detection/main.py", line 160, in main
executor.evaluate(eval_input_fn, eval_times, ckpt)
File "/home/wanjiz/tpu/models/official/detection/executor/tpu_executor.py", line 204, in evaluate
outputs = six.next(predictor)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 623, in predict
estimator_spec = self._call_model_fn(features, None, ModeKeys.PREDICT,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1174, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "/home/wanjiz/tpu/models/official/detection/modeling/model_builder.py", line 51, in __call__
return self._model.predict(features)
File "/home/wanjiz/tpu/models/official/detection/modeling/base_model.py", line 389, in predict
outputs = self.build_outputs(images, labels, mode=mode_keys.PREDICT)
File "/home/wanjiz/tpu/models/official/detection/modeling/base_model.py", line 206, in build_outputs
outputs = self._build_outputs(images, labels, mode)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_model.py", line 174, in _build_outputs
distill_class_outputs) = self._frcnn_head_fn(roi_features, is_training)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_head.py", line 325, in __call__
class_outputs = _divide_no_nan(class_outputs, classifier_norm[None,
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_head.py", line 38, in _divide_no_nan
tf.greater_equal(tf.broadcast_to(y, x.get_shape()), -epsilon),
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/ops/gen_array_ops.py", line 876, in broadcast_to
_, _, _op, _outputs = _op_def_library._apply_op_helper(
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/framework/op_def_library.py", line 797, in _apply_op_helper
op = g._create_op_internal(op_type_name, inputs, dtypes=None,
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/framework/ops.py", line 3754, in _create_op_internal
ret = Operation(
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/framework/ops.py", line 2133, in __init__
self._traceback = tf_stack.extract_stack_for_node(self._c_op)
Have been getting this error when running the inference script with custom class prompt and dataset with the vild_resnet.yaml configs altered as shown below.
since I kept on getting this error. every directory is structure the same way as it is mentioned here
Traceback (most recent call last):
File "/home/wanjiz/tpu/models/official/detection/main.py", line 184, in <module>
tf.app.run(main)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/platform/app.py", line 36, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/wanjiz/tpu/models/official/detection/main.py", line 116, in main
model_fn = model_builder.ModelFn(params)
File "/home/wanjiz/tpu/models/official/detection/modeling/model_builder.py", line 26, in __init__
self._model = factory.model_generator(params)
File "/home/wanjiz/tpu/models/official/detection/modeling/factory.py", line 41, in model_generator
model_fn = vild_model.ViLDModel(params)
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_model.py", line 73, in __init__
self._frcnn_class_loss_fn = vild_losses.FastrcnnClassLoss(
File "/home/wanjiz/tpu/models/official/detection/projects/vild/modeling/vild_losses.py", line 33, in __init__
self._rare_mask = np.array(np.load(f), dtype=np.float32)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/numpy/lib/npyio.py", line 414, in load
magic = fid.read(N)
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/lib/io/file_io.py", line 114, in read
self._preread_check()
File "/home/wanjiz/vild_finetune/venv/lib/python3.10/site-packages/tensorflow/python/lib/io/file_io.py", line 76, in _preread_check
self._read_buf = _pywrap_file_io.BufferedInputStream(
tensorflow.python.framework.errors_impl.NotFoundError: ; No such file or directory
Please share some insight on how to evaluate ViLD on custom dataset. Thanks!
The text was updated successfully, but these errors were encountered:
Have been getting this error when running the inference script with custom class prompt and dataset with the
vild_resnet.yaml
configs altered as shown below.Also I've set
frcnn_class_loss.mask_rare = false
since I kept on getting this error. every directory is structure the same way as it is mentioned here
Please share some insight on how to evaluate ViLD on custom dataset. Thanks!
The text was updated successfully, but these errors were encountered: