Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 187b99c9ce4509f378905332243b5ecc316a6887
  • master par défaut protégée
  • rust-playlist-sync
  • rust
  • fix-qt-deprecated-qvariant-type
  • fix-mpris-qtwindow-race-condition
  • rust-appimage-wayland
  • windows-build-rebased
  • v2.5 protégée
  • v2.4 protégée
  • v2.3-1 protégée
  • v2.3 protégée
  • v2.2 protégée
  • v2.1 protégée
  • v2.0 protégée
  • v1.8-3 protégée
  • v1.8-2 protégée
  • v1.8-1 protégée
  • v1.8 protégée
  • v1.7 protégée
  • v1.6 protégée
  • v1.5 protégée
  • v1.4 protégée
  • v1.3 protégée
  • v1.2 protégée
  • v1.1 protégée
  • v1.0 protégée
27 résultats

setup_base.bash

Blame
    • Kubat's avatar
      187b99c9
      BUILD: Multi-Stage the docker build process · 187b99c9
      Kubat a rédigé
      Generate build dockers used to build the application in appimage mode or
      in a zip file for windows.
      
      Still some issues with wayland on linux for the appimage, so we force
      xcb rendered when not relying on gtk (gnome, xfce, etc, but not tested
      there...)
      
      Logs are:
      	[07:59:29 DEBUG CC::WINDOW] module_qt_window.cc+62:mod_new: initializing a new window
      	[07:59:29 DEBUG CC::WINDOW] module_qt_window.cc+70:mod_new: waiting for the new window, active wait...
      	qt.qpa.wayland: Failed to load client buffer integration: "wayland-egl"
      	qt.qpa.wayland: Available client buffer integrations: QList("wayland-egl")
      	QOpenGLWidget is not supported on this platform.
      	QRhiGles2: Failed to create temporary context
      	QRhiGles2: Failed to create context
      	Failed to create QRhi for QBackingStoreRhiSupport
      	QOpenGLWidget: Failed to create context
      	[07:59:29 ERROR CC::WINDOW] mpvwidget.cc+268:handleMpvEvent: Should not get event idle (id is 11)
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+216:handleMpvEvent: Detected pause
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+247:handleMpvEvent: Applying unpause
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+224:handleMpvEvent: Detected unpause
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+232:handleMpvEvent: Detected idle
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+234:handleMpvEvent: Applying idle
      	[07:59:29 DEBUG CC::WINDOW] module_qt_window.cc+75:mod_new: new window OK!
      	QOpenGLWidget: Failed to create context
      	Segmentation fault (core dumped)
      BUILD: Multi-Stage the docker build process
      Kubat a rédigé
      Generate build dockers used to build the application in appimage mode or
      in a zip file for windows.
      
      Still some issues with wayland on linux for the appimage, so we force
      xcb rendered when not relying on gtk (gnome, xfce, etc, but not tested
      there...)
      
      Logs are:
      	[07:59:29 DEBUG CC::WINDOW] module_qt_window.cc+62:mod_new: initializing a new window
      	[07:59:29 DEBUG CC::WINDOW] module_qt_window.cc+70:mod_new: waiting for the new window, active wait...
      	qt.qpa.wayland: Failed to load client buffer integration: "wayland-egl"
      	qt.qpa.wayland: Available client buffer integrations: QList("wayland-egl")
      	QOpenGLWidget is not supported on this platform.
      	QRhiGles2: Failed to create temporary context
      	QRhiGles2: Failed to create context
      	Failed to create QRhi for QBackingStoreRhiSupport
      	QOpenGLWidget: Failed to create context
      	[07:59:29 ERROR CC::WINDOW] mpvwidget.cc+268:handleMpvEvent: Should not get event idle (id is 11)
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+216:handleMpvEvent: Detected pause
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+247:handleMpvEvent: Applying unpause
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+224:handleMpvEvent: Detected unpause
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+232:handleMpvEvent: Detected idle
      	[07:59:29 DEBUG CC::WINDOW] mpvwidget.cc+234:handleMpvEvent: Applying idle
      	[07:59:29 DEBUG CC::WINDOW] module_qt_window.cc+75:mod_new: new window OK!
      	QOpenGLWidget: Failed to create context
      	Segmentation fault (core dumped)
    cnn_train.py 477 o
    from cnn.model import *
    from cnn.music_processor import *
    
    
    device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
    net = convNet()
    net = net.to(device)
            
    with open('./data/pickles/train_data.pickle', mode='rb') as f:
        songs = pickle.load(f)
    
    minibatch = 128
    soundlen = 15
    epoch = 100
    
    
    net.train(songs=songs, minibatch=minibatch, val_song=None, epoch=epoch, device=device, soundlen=soundlen, save_place='./models/model.pth', log='./data/log/log.txt')