Giter Site home page Giter Site logo

dfs's People

Contributors

elch10 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dfs's Issues

A "MisconfigurationException:" error occurred when I executed the code

I downloaded the notebooks and dataset from the project. I executed the codes using jupyter notebook, and the codes were
running successfully until this one:

from pytorch_lightning import Trainer
from test_tube import Experiment
import os

model = CoolSystem(loss_attrs=loss_attrs, class_weights=class_weights)

# PyTorch summarywriter with a few bells and whistles    
exp = Experiment(save_dir=os.getcwd())

# train on cpu using only 10% of the data (for demo purposes)
# pass in experiment for automatic tensorboard logging.    
trainer = Trainer(experiment=exp, max_nb_epochs=20, gpus=[0])

  
trainer.fit(model)

and I got the error below:

---------------------------------------------------------------------------
MisconfigurationException                 Traceback (most recent call last)
<ipython-input-28-de23d35f9938> in <module>()
     13 
     14 
---> 15 trainer.fit(model)

4 frames
/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/data_loading.py in reset_train_dataloader(self, model)
    128                 must be an int. An int k specifies checking validation every k training batches.
    129                 '''
--> 130                 raise MisconfigurationException(m)
    131 
    132             self._percent_range_check('val_check_interval')

MisconfigurationException: 
                When using an infinite DataLoader (e.g. with an IterableDataset or when DataLoader
                does not implement `__len__`) for `train_dataloader`, `Trainer(val_check_interval)`
                must be an int. An int k specifies checking validation every k training batches.
                

After searching some help from Google and Stackoverflow, I still don't get the solution. Is there any way to solve this? Thanks

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.