helblazer811 / ManimML

ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.
MIT License
2.35k stars 140 forks source link

Wrong Image to Conv Animation #42

Open Yingrjimsch opened 11 months ago

Yingrjimsch commented 11 months ago

Hello I've got an issue with Image to Convolutional 2D . I took the cnn example and changed the Neural Network to:

nn = NeuralNetwork(
            [
                ImageLayer(numpy_image, height=1.5),
                Convolutional2DLayer(1, 16, 3, activation_function="ReLU"),
                #Convolutional2DLayer(3, 5, 3, filter_spacing=0.32),
                #Convolutional2DLayer(5, 3, 3, filter_spacing=0.18),
                #FeedForwardLayer(3),
                #FeedForwardLayer(3),
            ],
            layer_spacing=0.25,
        )

when I run the code the image rotation / scaling is somehow wrong. Maybe you guys know what the problem could be. image

Tmodrzyk commented 4 months ago

Hi, I may be mistaken but I think it has to do with Manim. There is a known history of images being buggy when working in 3D in manim. For instance check https://github.com/ManimCommunity/manim/issues/3482