Comments (4)
+1
from spyrit.
@tbaudier @nducros
J'ai inclus une documentation automatique dans le master, elle fonctionne très bien en local mais échoue sur readthedocs.
La nouvelle branche doc_auto est là pour résoudre le pb
from spyrit.
Je n'arrive pas à la faire fonctionner en local et j'ai la même erreur que rtd:
python -m venv venv_doc
source venv_doc/bin/activate
git clone --depth 1 https://github.com/openspyrit/spyrit spyrit
cd spyrit
git fetch origin --force --prune --prune-tags --depth 50 refs/heads/doc_auto:refs/remotes/origin/doc_auto
git checkout --force origin/doc_auto
git clean -d -f -f
python -m pip install --upgrade --no-cache-dir pip setuptools
python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
python -m pip install --exists-action=w --no-cache-dir -r requirements.txt
cd docs/source
python -m sphinx -T -b html -d _build/doctrees -D language=en . $PWD/html
J'obtiens la meme erreur:
../../spyrit/tutorial/tuto_01_acquisition_operators.py unexpectedly failed to execute correctly:
Traceback (most recent call last):
File "/Users/tbaudier/spyrit/doc/spyrit/spyrit/tutorial/tuto_01_acquisition_operators.py", line 54, in <module>
x, _ = next(iter(dataloader))
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 631, in __next__
data = self._next_data()
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 675, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
return self.collate_fn(data)
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/_utils/collate.py", line 277, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/_utils/collate.py", line 144, in collate
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/_utils/collate.py", line 144, in <listcomp>
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "/Users/tbaudier/spyrit/doc/venv_doc/lib/python3.9/site-packages/torch/utils/data/_utils/collate.py", line 152, in collate
raise TypeError(default_collate_err_msg_format.format(elem_type))
TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found <class 'torchvision.transforms.Compose'>
from spyrit.
J'ai relancé le code que tu as copié ici, et ça marche chez moi en local... ça pourrait être un pb d'OS ?
from spyrit.
Related Issues (20)
- Remove H_adjoint Linear attribute HOT 1
- Measurement simulation (in meas.py) HOT 2
- Sketches no longer visible in the tutorials HOT 1
- self.reconstruct() and self.reconstructuct_pinv() in class PinvNet in recon.py are identical HOT 4
- Integrate changes for a script HOT 3
- Matrix multiplication in meas.py HOT 1
- Create Permuted Hadamard Matrix in 2D
- double definition of "Permutation_Matrix", in spyrit.misc.matrix_tools and spyrit.misc.sampling HOT 2
- rankdata: device cuda, torch tensor not working
- check tutos NN weights and results HOT 1
- In spyrit.core.meas.DynamicHadamSplit remove self.Perm HOT 2
- Double extension name in core.train HOT 1
- reconstruct_expe for DCNet HOT 1
- DR Unet
- Documentation source files are versionned HOT 5
- Spyrit is getting big... HOT 5
- Tuto 7 referring to spyrit.external, which is not in docs
- sampling masks HOT 4
- typo main github page (link problem) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spyrit.