Skip to content

Commit

Permalink
limit version of matplot (#3147) (#3149)
Browse files Browse the repository at this point in the history
### Changes

Limit version of matplot for quantization_aware_training_torch_anomalib
example

### Reason for changes

```
  File "/tmp/pytest-of-runner/pytest-0/test_examples_quantization_awa0/venv/lib/python3.10/site-packages/anomalib/utils/visualization/image.py", line 172, in _visualize_batch
    yield GeneratorResult(image=self.visualize_image(image_result), file_name=file_name)
  File "/tmp/pytest-of-runner/pytest-0/test_examples_quantization_awa0/venv/lib/python3.10/site-packages/anomalib/utils/visualization/image.py", line 184, in visualize_image
    return self._visualize_full(image_result)
  File "/tmp/pytest-of-runner/pytest-0/test_examples_quantization_awa0/venv/lib/python3.10/site-packages/anomalib/utils/visualization/image.py", line 239, in _visualize_full
    return image_grid.generate()
  File "/tmp/pytest-of-runner/pytest-0/test_examples_quantization_awa0/venv/lib/python3.10/site-packages/anomalib/utils/visualization/image.py", line 328, in generate
    img = np.frombuffer(self.figure.canvas.tostring_rgb(), dtype=np.uint8)
AttributeError: 'FigureCanvasAgg' object has no attribute 'tostring_rgb'. Did you mean: 'tostring_argb'?
```
  • Loading branch information
AlexanderDokuchaev authored Dec 16, 2024
1 parent 5daa438 commit a06f7c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
anomalib[core,openvino]==1.0.1
setuptools<=72.1.0
matplotlib<3.10.0

0 comments on commit a06f7c1

Please sign in to comment.