Coder Social home page Coder Social logo

deepsaber's Introduction

OXAI website

Welcome to the repository for the website of the Oxford Artificial Intelligence Society

      ___           ___           ___                 
     /\  \         |\__\         /\  \          ___   
    /::\  \        |:|  |       /::\  \        /\  \  
   /:/\:\  \       |:|  |      /:/\:\  \       \:\  \ 
  /:/  \:\  \      |:|__|__   /::\~\:\  \      /::\__\
 /:/__/ \:\__\ ____/::::\__\ /:/\:\ \:\__\  __/:/\/__/
 \:\  \ /:/  / \::::/~~/~    \/__\:\/:/  / /\/:/  /   
  \:\  /:/  /   ~~|:|~~|          \::/  /  \::/__/    
   \:\/:/  /      |:|  |          /:/  /    \:\__\    
    \::/  /       |:|  |         /:/  /      \/__/    
     \/__/         \|__|         \/__/                

To edit the website you need a Github account and to join as a collaborator on this repository. Then you can follow the instructions below. If you know how to do pull requests, you can also do that.

To add/edit Partners & Sponsors

Drag and drop an image into the folder /img/partners/ or /img/sponsors (then press "Commit changes on the bottom). Then add a new record by editing the file in the /_data folder. It is /_data/partners.yml for partners and /_data/sponsors/[gold/silver/bronze].yml for the three tiers of sponsorships. Look for the file, and click the edit button on the top right corner, which looks like

edit button

then add the field with the format like:

- name: Herbertsmith Freehills
  url: https://www.herbertsmithfreehills.com/
  img: /img/sponsors/hsf.png

where the thing in img should point to the image file which you dropped in the img folder before. The press "Commit changes". And that's it.

To add/edit team members

Edit the file _data/team.yml, and add or edit a record with the format:

- name: Guillermo Valle
  picture: /img/people/guillermo.jpg
  role: Labs Technology Officer
  email: [email protected]
  linkedin: https://www.linkedin.com/in/guillefix/
  twitter: https://twitter.com/guillefix
  facebook: https://www.facebook.com/guillermovalleperez

Where the only compulsory fields are name and role. If you want to change the profile picture you should drop it in /img/people/ and then update the field picture above. If you don't have a picture field, then the picture defaults to /img/people/anonymous.

How to add a post to the blog

Open folder /_posts/. Click on the button "Create new file" on the top right. Name your file with a name like 2018-12-5-careers_tips_communication.md, where the first bit should be the date of the post, and the next can be anything but use underscores "_" instead of spaces. Then the content of the file can use Markdown syntax, to do things like include links, images (which you can put in the /img/ folder), urls, etc. Markdown should be a pretty easy language to learn, as it's designed to be very minimal. If you want though you can use a markdown editor, of which there are many online (e.g. https://stackedit.io/app), which can give you a GUI to create markdown documents. It also supports HTML if you wanna include something fancy :D

---
layout: post 
title: 'Tips for Securing Careers in AI: Communication'
author: Timothy Seabrook
email: [email protected]
---

Content of the blog post here blah blah

where you put the content instead of the "Content of the blog post here blah blah", you replace the field title with the title of the post, the field author with the author, and email with their email. The content of the post can use

To add events

Really we'll be using this if we are going to have "event posts", but for completeness: You can manually add events by editing /_data/events.yml for "current/future" events, or /_data/pastevents.yml for past events. Both will be shown in oxai.org/events. The format is

 - title: Test event
   datetime: 2019-08-21
   day: 21
   month: Aug
   year: 2019
   time: 8:00 PM
   desc: This is a test event

deepsaber's People

Contributors

achatrian avatar furll avatar goncaloxyz avatar guillefix avatar hiinaspace avatar ralphabb avatar timothyseabrook avatar tseabrook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepsaber's Issues

PIL is also a dependency

Setting up a conda environment, I noticed that PIL is also required, but not listed in the requirements.

For reference, to setup a conda environment for deepsaber:

conda create -n deepsaber
conda activate deepsaber
conda config --add channels conda-forge
conda install numpy pytor librosa panda matplotlib pillow

Conda's ffmpeg didn't work for me though, so in level_generation_utils.py I had to explicitly set it back to the system ffmpeg in /usr/bin/ffmpeg. For how ffmpeg is used there I suspect oggenc (from vorbis tools) could be used instead, which wouldn't be co-opted by conda.

Google Collab Error

It was happened when i try to generate maps out of .mp3 file:

File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 176, in load
y, sr_native = __soundfile_load(path, offset, duration, dtype)
File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 209, in __soundfile_load
context = sf.SoundFile(path)
File "/usr/local/lib/python3.10/dist-packages/soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "/usr/local/lib/python3.10/dist-packages/soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening '../../songs/am': System error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/content/drive/My Drive/deepsaber_tmp3/scripts/generation/generate_stage1.py", line 86, in
hop, features = extract_features(song_path, args, opt)
File "/content/drive/My Drive/deepsaber_tmp3/scripts/generation/level_generation_utils.py", line 9, in extract_features
y_wav, sr = librosa.load(song_path, sr=opt.sampling_rate)
File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 184, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "", line 2, in __audioread_load
File "/usr/local/lib/python3.10/dist-packages/librosa/util/decorators.py", line 60, in __wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 241, in __audioread_load
reader = audioread.audio_open(path)
File "/usr/local/lib/python3.10/dist-packages/audioread/init.py", line 127, in audio_open
return BackendClass(path)
File "/usr/local/lib/python3.10/dist-packages/audioread/rawread.py", line 59, in init
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '../../songs/am'
usage: generate_stage2.py
[-h]
[--song_path SONG_PATH]
[--json_file JSON_FILE]
[--experiment_name EXPERIMENT_NAME]
[--checkpoint CHECKPOINT]
[--temperature TEMPERATURE]
[--bpm BPM]
[--generate_full_song]
[--use_beam_search]
[--open_in_browser]
[--cuda]
generate_stage2.py: error: unrecognized arguments: the model from ../../scripts/training/block_placement_ddc2/iter_130000_net
.pth

IndexError Traceback (most recent call last)
in <cell line: 10>()
8 get_ipython().system("cd scripts/generation; chmod +x ./script_generate.sh; ./script_generate.sh '../../songs/'{filename}")
9 generated_filename=get_ipython().getoutput('ls -t scripts/generation/generated')
---> 10 generated_filename=generated_filename[0]
11 get_ipython().system('cp scripts/generation/generated/{generated_filename} ../../../')
12 # files.download("scripts/generation/generated/"+generated_filename)

IndexError: list index out of range

Problem with general_beat_saber_dataset

Thanks for the great project! I am trying to go through the training process and encountered a problem in general_beat_saber_dataset.py. Specifically, from L169 to L172, y is padded on both sides, which makes sequence_length in L178 equals the padded length. This subsequently makes indices in L193 possibly larger than the length of blocks_reduced_classes, and triggers an error in retrieving a subsequence of blocks_reduced_classes if so (L235).

I am not entirely sure how to fix this, especially how features and targets are aligned in the presence of time_shift. Could you please point out how this can be fixed? Thanks!

Google Colab execution doesn't generate a zip file

Hello,

I'm trying to use DeepSaber via Google Colab but have a problem. I tried with a couple of different Youtube videos, but I couldn't find any zip files after the execution.

Here is the log of the default Youtube song, which is in the script.

mv generated/Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_block_placement_ddc2_130000_0.33_1.0.dat_block_selection_new2_2150000_bs_1.0/song.ogg generated/Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_block_placement_ddc2_130000_0.33_1.0.dat_block_selection_new2_2150000_bs_1.0/song.egg
zip -r Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_block_placement_ddc2_130000_0.33_1.0.dat_block_selection_new2_2150000_bs_1.0.zip Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_block_placement_ddc2_130000_0.33_1.0.dat_block_selection_new2_2150000_bs_1.0/*
cp: -r not specified; omitting directory 'scripts/generation/generated/Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_Night_Runner_-_Magnum_Bullets_feat._Dan_Avidan_Off_block_placement_ddc2_130000_0.33_1.0.dat_block_selection_new2_2150000_bs_1.0'

What am I missing here? Any help would be appreciated.

Same position of blocks throughout the generated map

Hello

I'm a complete layman, but a huge fan of beat saber and this project. I tried the browser method to generate a map for a song from youtube. The resulting map had the blocks synchronized perfectly with the beats. It was immaculate. However, the color, position and arrows of the blocks was constant throughout the entire song. There was 0 variation. Just wanted to make y'all aware of it.

Also, thank you very much for taking on this project! Much appreciated from around the globe!

Google Colab NameError: name 'os' is not defined

05. Privileged Rappers.flac(audio/x-flac) - 30820146 bytes, last modified: n/a - 100% done

Saving 05. Privileged Rappers.flac to 05. Privileged Rappers (1).flac

---------------------------------------------------------------------------

NameError                                 Traceback (most recent call last)

[<ipython-input-4-58465cc5fe2d>](https://localhost:8080/#) in <module>
     14   res=files.upload()
     15   filename=list(res.keys())[0]
---> 16   os.rename(filename,"songs/"+filename)

NameError: name 'os' is not defined

Google colab not working.

I have tried running this by pulling the song from youtube and a copy I have, I get the same error.

Generating level for Diesel_Not_Petrol.mp3
Traceback (most recent call last):
File "generate_stage1.py", line 94, in
first_samples = torch.full((1,opt.output_channels,receptive_field//2),constants.START_STATE)
RuntimeError: Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7, when dtype and out are not set a bool fill value will return a tensor of torch.bool dtype, and an integral fill value will return a tensor of torch.long dtype.
usage: generate_stage2.py [-h] [--song_path SONG_PATH] [--json_file JSON_FILE]
[--experiment_name EXPERIMENT_NAME]
[--checkpoint CHECKPOINT]
[--temperature TEMPERATURE] [--bpm BPM]
[--generate_full_song] [--use_beam_search]
[--open_in_browser] [--cuda]
generate_stage2.py: error: unrecognized arguments: the model from ../../scripts/training/block_placement_ddc2/iter_130000_net_.pth

IndexError Traceback (most recent call last)
in ()
8 get_ipython().system("cd scripts/generation; chmod +x ./script_generate.sh; ./script_generate.sh '../../songs/'{filename}")
9 generated_filename = get_ipython().getoutput('ls -t scripts/generation/generated')
---> 10 generated_filename=generated_filename[0]
11 get_ipython().system('cp scripts/generation/generated/{generated_filename} ../../../')
12 # files.download("scripts/generation/generated/"+generated_filename)

IndexError: list index out of range

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.