Comments (8)
Fulltrace:
Using gpu device 0: GeForce GTX 675MX (CNMeM is enabled with initial size: 24.0% of memory, cuDNN 5105)
Loaded TEST_MIDI1
Traceback (most recent call last):
File "main.py", line 43, in <module>
m = model.Model([300,300],[100,50], dropout=0.5)
File "/Users/*/neural/biaxial-rnn-music-composition/model.py", line 101, in __init__
self.setup_predict()
File "/Users/*/neural/biaxial-rnn-music-composition/model.py", line 315, in setup_predict
n_steps=self.steps_to_simulate )
File "/usr/local/lib/python2.7/site-packages/theano/scan_module/scan.py", line 761, in scan
condition, outputs, updates = scan_utils.get_updates_and_outputs(fn(*args))
File "/Users/*/neural/biaxial-rnn-music-composition/model.py", line 295, in step_time
notes_result, updates = theano.scan(fn=self._predict_step_note, sequences=[time_final], outputs_info=note_outputs_info)
File "/usr/local/lib/python2.7/site-packages/theano/scan_module/scan.py", line 1058, in scan
scan_outs = local_op(*scan_inputs)
File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line 604, in __call__
node = self.make_node(*inputs, **kwargs)
File "/usr/local/lib/python2.7/site-packages/theano/scan_module/scan_op.py", line 539, in make_node
inner_sitsot_out.type.dtype))
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (`outputs_info` in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 3) has dtype int16, while the result of the inner function (`fn`) has dtype int8. This can happen if the inner function of scan results in an upcast or downcast.
from biaxial-rnn-music-composition.
I ran 'python train.py' and the same problem happened, the raise error is the same. Is there any solutions?
from biaxial-rnn-music-composition.
I forgot to mention that this happen only when the device is GPU, switching to CPU no error occorse.
Is it a theano issue?
from biaxial-rnn-music-composition.
I have no idea but if this model only train on CPU, the time maybe horrible long
from biaxial-rnn-music-composition.
My guess is that this was caused by something that changed in a recent release of Theano. I've added an explicit dtype for the offending allocation, which hopefully will fix it. Unfortunately I don't have access to a GPU system right now, so I can't easily test changes. Can you check if my most recent commit resolves the issue?
from biaxial-rnn-music-composition.
Closing for now, assuming fixed. Let me know if it still doesn't work after you pull the fix.
from biaxial-rnn-music-composition.
I confirm that the issue is fixed after adding the explicit dtype
Unfortunatly, this model is eating lot of memory and I can't finish the training because of "out of memory"
I also confirm that on CPU the training takes really too much time. On iMAC i7 with 16gb of ram for 3 midi files it take something like 5 days
Thank you for the fix
from biaxial-rnn-music-composition.
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (outputs_info
in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 3) has dtype int8, while the result of the inner function (fn
) has dtype bool. This can happen if the inner function of scan results in an upcast or downcast.
Python 3.7.1
OSX 10.14.4
from biaxial-rnn-music-composition.
Related Issues (20)
- would you guide me to get some dataset(music)? HOT 2
- ValueError: When compiling the inner function of scan the following error has been encountered HOT 2
- numpy.repeat TypeError on 32 bit systems HOT 2
- Error HOT 1
- Allocation error HOT 2
- Issue with local_bitwidth() HOT 1
- Weird behaviour HOT 3
- Any way to resume training? HOT 1
- Output tends to converge to being identical to one particular piece HOT 1
- Question HOT 3
- How to load weights? HOT 1
- Any way to train on CPU? HOT 2
- Any way to set output size?
- BUG with this program
- doesn't work, need help HOT 1
- Longer sample mids
- Error
- A question about Bi-axial LSTM structure
- Question about BEAT input HOT 1
- IOError: [Errno 2] No such file or directory: 'output/sample0.mid' 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 biaxial-rnn-music-composition.