Giter VIP home page Giter VIP logo

leadsheetarrangement's Issues

OSError: [Errno 29] Illegal seek: 'val_X_bars'

when run scripts.py, meet the error like:OSError: [Errno 29] Illegal seek: 'val_X_bars'. But when create this variable, output :val_X_bars exsits. So how can I solve this problem? Thanks~

code refactor and library modules version update

@liuhaumin
How to experiment this project now?

conda create env failed.

  • midi2audio==0.1.1
  • imageio==2.1.2
  • mido==1.2.8
  • pretty-midi==0.2.8
  • pypianoroll==0.1.3
  • madmom==0.16.dev0
  • music21==5.1.0
  • sharedarray==2.0.4
  • markdown==2.2.0
  • tensorflow-gpu==1.2.0

please upgrade library module version

pytorch implementation

I made a pytorch implementation of this (only for chroma_sequence and chord_sequence). If anyone interested welcome to check out my code. thanks for the great idea behind this.

Error while installing

When installing:

Step: Seeding basic data for LeadBrowser CRM kickstart...
Seeding: LeadBrowser\Admin\Database\Seeders\DatabaseSeeder
Seeding: LeadBrowser\Admin\Database\Seeders\AttributeSeeder

In Connection.php line 712:
                                                                                                               
  SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count   
  at row 8 (SQL: insert into `attributes` (`class`, `code`, `created_at`, `entity_type`, `id`, `info`, `is_re  
  quired`, `is_unique`, `is_user_defined`, `is_visible`, `lookup_type`, `name`, `quick_add`, `sort_order`, `t  
  ype`, `updated_at`, `validation`) values (col-sm-12 col-md-6, title, 2022-12-30 09:44:49, leads, 1, ?, 1, 0  
  , 0, 1, ?, Title, 1, 1, text, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, description, 2022-12-30 09:44:4  
  9, leads, 2, ?, 0, 0, 0, 1, ?, Description, 1, 2, textarea, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, l  
  ead_value, 2022-12-30 09:44:49, leads, 3, ?, 1, 0, 0, 1, ?, Lead Value, 1, 3, price, 2022-12-30 09:44:49, ?  
  ), (col-sm-12 col-md-6, lead_source_id, 2022-12-30 09:44:49, leads, 4, ?, 1, 0, 0, 1, lead_sources, Source,  
   1, 4, select, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, lead_type_id, 2022-12-30 09:44:49, leads, 5, ?  
  , 1, 0, 0, 1, lead_types, Type, 1, 5, select, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, user_id, 2022-1  
  2-30 09:44:49, leads, col-sm-12 col-md-6, ?, 0, 0, 0, 1, users, Sales Owner, 1, 7, select, 2022-12-30 09:44  
  :49, ?), (col-sm-12 col-md-6, expected_close_date, 2022-12-30 09:44:49, leads, 7, ?, 0, 0, 0, 1, ?, Expecte  
  d Close Date, 1, 8, date, 2022-12-30 09:44:49, ?), (lead_pipeline_stage_id, 2022-12-30 09:44:49, leads, 8,   
  0, 0, 0, lead_pipeline_stages, Stage, 0, 9, select, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, name, 202  
  2-12-30 09:44:49, persons, 9, ?, 1, 0, 0, 1, ?, Name, 1, 1, text, 2022-12-30 09:44:49, ?), (col-sm-12 col-m  
  d-6, emails, 2022-12-30 09:44:49, persons, 10, ?, 1, 1, 0, 1, ?, Emails, 1, 2, email, 2022-12-30 09:44:49,   
  ?), (col-sm-12 col-md-6, contact_numbers, 2022-12-30 09:44:49, persons, 11, ?, 0, 1, 0, 1, ?, Contact Numbe  
  rs, 1, 3, phone, 2022-12-30 09:44:49, numeric), (col-sm-12 col-md-6, organization_id, 2022-12-30 09:44:49,   
  persons, col-sm-12 col-md-12, ?, 0, 0, 0, 1, organizations, Organization, 1, 4, lookup, 2022-12-30 09:44:49  
  , ?), (col-sm-12 col-md-6, name, 2022-12-30 09:44:49, organizations, 13, ?, 1, 1, 0, 1, ?, Name, 1, 1, text  
  , 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, address, 2022-12-30 09:44:49, organizations, 14, ?, 0, 0, 0  
  , 1, ?, Address, 1, 2, address, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, name, 2022-12-30 09:44:49, pr  
  oducts, 15, ?, 1, 0, 0, 1, ?, Name, 1, 1, text, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, description,   
  2022-12-30 09:44:49, products, 16, ?, 0, 0, 0, 1, ?, Description, 1, 2, textarea, 2022-12-30 09:44:49, ?),   
  (col-sm-12 col-md-6, sku, 2022-12-30 09:44:49, products, 17, ?, 1, 1, 0, 1, ?, SKU, 1, 3, text, 2022-12-30   
  09:44:49, ?), (col-sm-12 col-md-6, quantity, 2022-12-30 09:44:49, products, 18, ?, 1, 0, 0, 1, ?, Quantity,  
   1, 4, number, 2022-12-30 09:44:49, numeric), (col-sm-12 col-md-6, price, 2022-12-30 09:44:49, products, 19  
  , ?, 1, 0, 0, 1, ?, Price, 1, 5, text, 2022-12-30 09:44:49, decimal), (col-sm-12 col-md-6, user_id, 2022-12  
  -30 09:44:49, quotes, 20, ?, 1, 0, 0, 1, users, Sales Owner, 1, 1, select, 2022-12-30 09:44:49, ?), (col-sm  
  -12 col-md-6, subject, 2022-12-30 09:44:49, quotes, 21, ?, 1, 0, 0, 1, ?, Subject, 1, 2, text, 2022-12-30 0  
  9:44:49, ?), (col-sm-12 col-md-6, description, 2022-12-30 09:44:49, quotes, 22, ?, 0, 0, 0, 1, ?, Descripti  
  on, 1, 3, textarea, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, billing_address, 2022-12-30 09:44:49, quo  
  tes, 23, ?, 1, 0, 0, 1, ?, Billing Address, 1, 4, address, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, sh  
  ipping_address, 2022-12-30 09:44:49, quotes, 24, ?, 0, 0, 0, 1, ?, Shipping Address, 1, 5, address, 2022-12  
  -30 09:44:49, ?), (col-sm-12 col-md-6, discount_percent, 2022-12-30 09:44:49, quotes, 25, ?, 0, 0, 0, 1, ?,  
   Discount Percent, 1, col-sm-12 col-md-6, text, 2022-12-30 09:44:49, decimal), (col-sm-12 col-md-6, discoun  
  t_amount, 2022-12-30 09:44:49, quotes, 26, ?, 0, 0, 0, 1, ?, Discount Amount, 1, 7, price, 2022-12-30 09:44  
  :49, decimal), (col-sm-12 col-md-6, tax_amount, 2022-12-30 09:44:49, quotes, 27, ?, 0, 0, 0, 1, ?, Tax Amou  
  nt, 1, 8, price, 2022-12-30 09:44:49, decimal), (col-sm-12 col-md-6, adjustment_amount, 2022-12-30 09:44:49  
  , quotes, 28, ?, 0, 0, 0, 1, ?, Adjustment Amount, 1, 9, price, 2022-12-30 09:44:49, decimal), (col-sm-12 c  
  ol-md-6, sub_total, 2022-12-30 09:44:49, quotes, 29, ?, 1, 0, 0, 1, ?, Sub Total, 1, 10, price, 2022-12-30   
  09:44:49, decimal), (col-sm-12 col-md-6, grand_total, 2022-12-30 09:44:49, quotes, 30, ?, 1, 0, 0, 1, ?, Gr  
  and Total, 1, 11, price, 2022-12-30 09:44:49, decimal), (col-sm-12 col-md-6, expired_at, 2022-12-30 09:44:4  
  9, quotes, 31, ?, 1, 0, 0, 1, ?, Expired At, 1, col-sm-12 col-md-12, date, 2022-12-30 09:44:49, ?), (col-sm  
  -12 col-md-6, person_id, 2022-12-30 09:44:49, quotes, 32, ?, 1, 0, 0, 1, persons, Person, 1, 13, lookup, 20  
  22-12-30 09:44:49, ?), (col-sm-12 col-md-6, title, 2022-12-30 09:44:49, search_locations, 33, ?, 1, 0, 0, 1  
  , ?, Key, 1, 1, text, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-3, type_id, 2022-12-30 09:44:49, search_lo  
  cations, 34, ?, 0, 0, 0, 2, search_types, Industry, 1, 5, select, 2022-12-30 09:44:49, ?), (col-sm-6 col-md  
  -6, expected_items, 2022-12-30 09:44:49, search_locations, 35, The maximum number of results you want to ge  
  t. Remember that each result will be charged to your wallet., 1, 0, 0, 1, ?, Quantity, 1, 4, text, 2022-12-  
  30 09:44:49, numeric), (col-sm-6 col-md-3, phrase, 2022-12-30 09:44:49, search_locations, 36, Decimal words  
   that should appear next to the result or on the website of the business you want to find. For example, if   
  you are looking for a company dealing with new technologies, you could enter, for example, Rust or GO., 0,   
  0, 0, 2, ?, Phrase, 1, 1, text, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-12, location, 2022-12-30 09:44:4  
  9, search_locations, 37, ?, 1, 0, 0, 1, ?, Location, 1, 2, location, 2022-12-30 09:44:49, ?), (col-sm-12 co  
  l-md-6, population_id, 2022-12-30 09:44:49, search_locations, 38, ?, 0, 0, 0, 2, population_sources, Popula  
  tion, 1, 4, select, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, duplicates, 2022-12-30 09:44:49, search_l  
  ocations, 39, Duplicates give you an insight into the headquarters of companies. For example, with this opt  
  ion you can download data of all premises of company X in the city of Y., , 0, 0, 2, ?, Duplicates, 1, 4, c  
  heckbox, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, urls, 2022-12-30 09:44:49, search_websites, 40, Add   
  page addresses so that each is with a decimal point, 0, 0, 0, 1, ?, Urls, 1, 1, text, 2022-12-30 09:44:49,   
  ?), (col-sm-12 col-md-6, phones, 2022-12-30 09:44:49, search_phones, 41, Add phones addresses so that each   
  is with a decimal point, 0, 0, 0, 1, ?, Phones, 1, 1, text, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, e  
  commerce, 2022-12-30 09:44:49, search_locations, 42, Only show results that are e-commerce, , 0, 0, 2, ?, E  
  -commerce, 1, 4, checkbox, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, emails, 2022-12-30 09:44:49, searc  
  h_locations, 43, , , 0, 0, 2, ?, Emails, 1, 4, checkbox, 2022-12-30 09:44:49, ?), (col-sm-12 col-md-6, work  
  ers, 2022-12-30 09:44:49, search_locations, 44, , , 0, 0, 2, ?, Workers, 1, 4, checkbox, 2022-12-30 09:44:4  
  9, ?))   

Couldn't run your pretrained model using Scripts

--------------Start arrangement generation !!--------------
*running sampler...
Traceback (most recent call last):
File "scripts.py", line 4, in
import main
File "/home/ohla-ai/Projects/LeadsheetArrangement/main.py", line 62, in
musegan.gen_test(input_data, is_eval=True)
File "/home/ohla-ai/Projects/LeadsheetArrangement/model/core.py", line 447, in gen_test
type_=type_)
File "/home/ohla-ai/Projects/LeadsheetArrangement/model/core.py", line 412, in run_sampler
self.model.prediction_chroma], feed_dict=feed_dict)
File "/home/ohla-ai/anaconda3/envs/tf15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 956, in run
run_metadata_ptr)
File "/home/ohla-ai/anaconda3/envs/tf15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1156, in _run
(np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (64, 48, 84, 2) for Tensor 'NowbarHybrid/x:0', which has shape '(?, 48, 84, 5)'

Above is what I am occured, my input is a 2 track 8 bar midi file with melody and chords. Need your help please...

training data

Would you minded providing us with the training data?

Why chord-roll condition have height of 84

Hi Hau-min:
I'm trying to implement a pytorch version of LeadsheetArrangement. I'm wondering why the chord-roll condition has 84 height since only 12 pitch classes can have the equal information. Is it because it's good to keep the chord-roll condition the same size as the data?

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.