Replies: 1 comment
-
Do you see any other Jupyter notebook from the collection working - for a consistency-check if your installation is complete? From your "About your system" screenshot you have a SoC "intel-core-i5 12600k". Assuming your installation is complete and correct - then you might simply need to select the proper GPU device. The code in your screenshot assumes a single GPU in your system:
Can you check the value of the variable manually |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, could really use some help here. I've been trying to run the jupyter notebooks in order to use stable diffusion on my computer but the Jupyter notebooks is either very broken or I'm missing something. I'm currently receiving this error on the Configure Inference Pipeline step: `---------------------------------------------------------------------------
StopIteration Traceback (most recent call last)
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget_selection.py:133, in findvalue(array, value, compare)
132 try:
--> 133 return next(x for x in array if compare(x, value))
134 except StopIteration:
StopIteration:
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget_selection.py:242, in _Selection._validate_value(self, proposal)
241 try:
--> 242 return findvalue(self._options_values, value, self.equals) if value is not None else None
243 except ValueError:
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget_selection.py:135, in findvalue(array, value, compare)
134 except StopIteration:
--> 135 raise ValueError('%r not in array'%value)
ValueError: 'GPU' not in array
During handling of the above exception, another exception occurred:
TraitError Traceback (most recent call last)
Cell In[7], line 3
1 import ipywidgets as widgets
----> 3 device = widgets.Dropdown(
4 options=core.available_devices + ["AUTO"],
5 value='GPU',
6 description='Device:',
7 disabled=False,
8 )
10 device
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget_selection.py:186, in _Selection.init(self, *args, **kwargs)
183 kwargs['index'] = 0 if nonempty else None
184 kwargs['label'], kwargs['value'] = options[0] if nonempty else (None, None)
--> 186 super().init(*args, **kwargs)
187 self.initializing_traits = False
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget_description.py:35, in DescriptionWidget.init(self, *args, **kwargs)
33 kwargs.setdefault('tooltip', kwargs['description_tooltip'])
34 del kwargs['description_tooltip']
---> 35 super().init(*args, **kwargs)
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget.py:503, in Widget.init(self, **kwargs)
501 """Public constructor"""
502 self._model_id = kwargs.pop('model_id', None)
--> 503 super().init(**kwargs)
505 Widget._call_widget_constructed(self)
506 self.open()
File ~/openvino_env/lib/python3.10/site-packages/traitlets/traitlets.py:1388, in HasTraits.init(self, *args, **kwargs)
1386 changed = set(kwargs) & set(self._traits)
1387 for key in changed:
-> 1388 value = self._traits[key]._cross_validate(self, getattr(self, key))
1389 self.set_trait(key, value)
1390 changes[key]['new'] = value
File ~/openvino_env/lib/python3.10/site-packages/traitlets/traitlets.py:762, in TraitType._cross_validate(self, obj, value)
760 if self.name in obj.trait_validators:
761 proposal = Bunch({"trait": self, "value": value, "owner": obj})
--> 762 value = obj.trait_validators[self.name](obj, proposal)
763 elif hasattr(obj, "%s_validate" % self.name):
764 meth_name = "%s_validate" % self.name
File ~/openvino_env/lib/python3.10/site-packages/traitlets/traitlets.py:1260, in EventHandler.call(self, *args, **kwargs)
1258 """Pass
*args
and**kwargs
to the handler's function if it exists."""1259 if hasattr(self, "func"):
-> 1260 return self.func(*args, **kwargs)
1261 else:
1262 return self._init_call(*args, **kwargs)
File ~/openvino_env/lib/python3.10/site-packages/ipywidgets/widgets/widget_selection.py:244, in _Selection._validate_value(self, proposal)
242 return findvalue(self._options_values, value, self.equals) if value is not None else None
243 except ValueError:
--> 244 raise TraitError('Invalid selection: value not found')
TraitError: Invalid selection: value not found`
This error leads to more errors in the following steps such as :`---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[13], line 1
----> 1 text_enc = core.compile_model(TEXT_ENCODER_OV_PATH, device.value)
NameError: name 'device' is not defined
unet_model = core.compile_model(UNET_OV_PATH, device.value)
NameError Traceback (most recent call last)
Cell In[14], line 1
----> 1 unet_model = core.compile_model(UNET_OV_PATH, device.value)
NameError: name 'device' is not defined`
I'd really appreciate any help anyone can provide, I'm stumped but would still like to take advantage my Intel arc GPU.
Beta Was this translation helpful? Give feedback.
All reactions