foscat 3.0.46__tar.gz → 3.0.47__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {foscat-3.0.46 → foscat-3.0.47}/PKG-INFO +1 -1
- {foscat-3.0.46 → foscat-3.0.47}/setup.py +1 -1
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/FoCUS.py +1 -1
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/backend.py +10 -3
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat.egg-info/PKG-INFO +1 -1
- {foscat-3.0.46 → foscat-3.0.47}/README.md +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/setup.cfg +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/CNN.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/CircSpline.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/GCNN.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/GetGPUinfo.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/Softmax.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/Spline1D.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/Synthesis.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/__init__.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/backend_tens.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat1D.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat2D.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat_cov.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat_cov1D.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.0.46 → foscat-3.0.47}/src/foscat.egg-info/top_level.txt +0 -0
|
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
|
|
4
4
|
setup(
|
|
5
5
|
name='foscat',
|
|
6
|
-
version='3.0.
|
|
6
|
+
version='3.0.47',
|
|
7
7
|
description='Generate synthetic Healpix or 2D data using Cross Scattering Transform' ,
|
|
8
8
|
long_description='Utilize the Cross Scattering Transform (described in https://arxiv.org/abs/2207.12527) to synthesize Healpix or 2D data that is suitable for component separation purposes, such as denoising. \n A demo package for this process can be found at https://github.com/jmdelouis/FOSCAT_DEMO. \n Complete doc can be found at https://foscat-documentation.readthedocs.io/en/latest/index.html. \n\n List of developers : J.-M. Delouis, T. Foulquier, L. Mousset, T. Odaka, F. Paul, E. Allys ' ,
|
|
9
9
|
license='MIT',
|
|
@@ -271,9 +271,16 @@ class foscat_backend:
|
|
|
271
271
|
|
|
272
272
|
def conv2d(self,x,w,strides=[1, 1, 1, 1],padding='SAME'):
|
|
273
273
|
if self.BACKEND==self.TENSORFLOW:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
kx=w.shape[0]
|
|
275
|
+
ky=w.shape[1]
|
|
276
|
+
paddings = self.backend.constant([[0,0],
|
|
277
|
+
[kx//2,kx//2],
|
|
278
|
+
[ky//2,ky//2],
|
|
279
|
+
[0,0]])
|
|
280
|
+
tmp=self.backend.pad(x, paddings, "SYMMETRIC")
|
|
281
|
+
return self.backend.nn.conv2d(tmp,w,
|
|
282
|
+
strides=strides,
|
|
283
|
+
padding="VALID")
|
|
277
284
|
# to be written!!!
|
|
278
285
|
if self.BACKEND==self.TORCH:
|
|
279
286
|
return x
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|