Skip to content

Commit

Permalink
Correct width and height label placement in AlexNet (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpauwels authored Feb 12, 2024
1 parent 6862fbf commit e65a5b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AlexNet.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ function AlexNet() {
sprite.position.copy( layer_object.position ).sub( new THREE.Vector3( wf(layer)/2 + 2, hf(layer)/2 + 2, 0 ) );
sprites.add( sprite );

sprite = makeTextSprite(layer['width'].toString());
sprite = makeTextSprite(layer['height'].toString());
sprite.position.copy( layer_object.position ).sub( new THREE.Vector3( wf(layer)/2 + 3, 0, depthFn(layer['depth'])/2 + 3 ) );
sprites.add( sprite );

sprite = makeTextSprite(layer['height'].toString());
sprite = makeTextSprite(layer['width'].toString());
sprite.position.copy( layer_object.position ).sub( new THREE.Vector3( 0, -hf(layer)/2 - 3, depthFn(layer['depth'])/2 + 3 ) );
sprites.add( sprite );

Expand Down Expand Up @@ -344,4 +344,4 @@ function AlexNet() {

}

}
}

0 comments on commit e65a5b1

Please sign in to comment.