Giter Site home page Giter Site logo

Comments (4)

nducros avatar nducros commented on June 1, 2024

+1

from spyrit.

romainphan avatar romainphan commented on June 1, 2024

@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.

tbaudier avatar tbaudier commented on June 1, 2024

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.

romainphan avatar romainphan commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.