[refactor] move rbm.image → image.sub_image
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+292
-346
File diff suppressed because one or more lines are too long
+228
-160
File diff suppressed because one or more lines are too long
+1
-1
@@ -21,4 +21,4 @@ readme = "README.md"
|
||||
|
||||
[tool.setuptools]
|
||||
package-dir = {"" = "src"}
|
||||
packages = ["rbm"]
|
||||
packages = ["rbm", "image"]
|
||||
|
||||
@@ -72,4 +72,4 @@ def conv2d(image: Mat, kernel: Mat, stride: tuple[int,int]):
|
||||
result[:, c] += np.convolve(image_padded[:,c], kernel[:,k])
|
||||
k += 1
|
||||
|
||||
return result
|
||||
return result
|
||||
@@ -1,4 +1,4 @@
|
||||
from rbm.image import conv2d
|
||||
from image.sub_image import conv2d
|
||||
from rbm.matrix import np
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.image import SubImage, normalize
|
||||
from image.sub_image import SubImage, normalize
|
||||
from rbm.matrix import Mat, np, convert
|
||||
from rbm.status import CheckpointStatus
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.image import normalize
|
||||
from image.sub_image import normalize
|
||||
from rbm.matrix import Mat, np
|
||||
|
||||
N = 8
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from rbm.matrix import Mat, np
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.model import Model
|
||||
from rbm.image import normalize
|
||||
from image.sub_image import normalize
|
||||
|
||||
WORK_DIR = "../../results"
|
||||
USE_OPTIMIZER = True
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from rbm.image import SubImage
|
||||
from image.sub_image import SubImage
|
||||
from rbm.matrix import np
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user