Git Product home page Git Product logo

audiotagging2019's Issues

can't set attribute error

here is everything:

wb@i7:~/git/6th/audiotagging2019$ python run.py --model xresnet18ssa --base_dim 128 --SZ 256 --fold_number -1 --n_epochs 80 --loss_name FocalLoss --weights_file model1 --csv_name submission1.csv

Starting run using the following configuration:
path : data
working_path : .
base_dim : 128
SZ : 256
BS : 64
lr : 0.01
n_epochs : 80
epoch_size : 1000
f2cl : 1
fold_number : -1
loss_name : FocalLoss
csv_name : submission1.csv
model : xresnet18ssa
load_weights :
weights_file : model1
max_processors: 8
force : False

Computing mel spectrograms for the curated train dataset and saving as .png:
|| 100.00% [4970/4970 00:55<00:00]
Computing mel spectrograms for the noisy train dataset and saving as .png:
|| 100.00% [19815/19815 05:58<00:00]
Computing mel spectrograms for the test dataset:
|| 100.00% [3361/3361 01:04<00:00]

Loading train data:
Traceback (most recent call last):00]
File "run.py", line 250, in
load_weights=load_weights, force=args.force)
File "run.py", line 124, in main
.databunch(samplers=samplers, path=working_path, bs=BS)
File "/home/wb/anaconda3/lib/python3.6/site-packages/fastai/data_block.py", line 550, in databunch
num_workers=num_workers, dl_tfms=dl_tfms, device=device, collate_fn=collate_fn, no_check=no_check, **kwargs)
File "/home/wb/git/6th/audiotagging2019/utils.py", line 19, in create
zip(datasets, (bs,val_bs,val_bs,val_bs), samplers) if d is not None]
File "/home/wb/git/6th/audiotagging2019/utils.py", line 19, in
zip(datasets, (bs,val_bs,val_bs,val_bs), samplers) if d is not None]
File "/home/wb/git/6th/audiotagging2019/utils.py", line 42, in init
super().init(data_source)
File "/home/wb/git/6th/audiotagging2019/utils.py", line 36, in init
self.num_samples = num_samples
AttributeError: can't set attribute

NameError: name 'ImageDataBunch' is not defined

Hi! I tried to install with conda like in the instructions, but I got this error: class ImageDataBunch(ImageDataBunch):
NameError: name 'ImageDataBunch' is not defined

Doing a little research I did a fresh install with torch==1.0.0 torchvision==0.2.1 and fastai from wheel.
I still get the same error...

Could you please tell me exactly what versions you have installed? Or maybe this error is from other causes?..
Thanks a bunch!

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.