Anonymní profil daniel – Programujte.com
 x   TIP: Přetáhni ikonu na hlavní panel pro připnutí webu

Anonymní profil daniel – Programujte.comAnonymní profil daniel – Programujte.com

 

Příspěvky odeslané z IP adresy 195.146.149.–

daniel
Python › threading or multiprocess
26. 8. 2020   #386526

#3 gna
run_process je zavolana metoda z triedy Learning. Potrebujem spustit ucenie v inom vlakne alebo inom procese, pretoze mi zatazuje GUI. 

learning = Learning(
							 
    dataset_path=str(self.__le_dataset_path.text()),
    model_path=str(self.__le_model_path.text()),
    kernel=int(self.__lcd_kernel.value()),
    img_size=int(self.__lcd_img_size.value()),
    color_channel=int(self.__lcd_color_channel.value()),
    pooling=int(self.__lcd_pooling.value()),
    classes=int(self.__lcd_classes.value()),
    batch_size=int(self.__lcd_batch_size.value()),
    epochs=int(self.__lcd_epochs.value()),
    y_activation=str(self.__cmb_y_activation.currentText()),
    loss=str(self.__cmb_loss.currentText()),
    optimizer=str(self.__cmb_optimizer.currentText()),
    color_mode=str(self.__cmb_color_mode.currentText()),
    class_mode=str(self.__cmb_class_mode.currentText())
)
process = QProcess()
process.start(learning.run_process())
process.startDetached()
daniel
Python › threading or multiprocess
26. 8. 2020   #386522

   

learning = Learning(
							 
    dataset_path=str(self.__le_dataset_path.text()),
    model_path=str(self.__le_model_path.text()),
    kernel=int(self.__lcd_kernel.value()),
    img_size=int(self.__lcd_img_size.value()),
    color_channel=int(self.__lcd_color_channel.value()),
    pooling=int(self.__lcd_pooling.value()),
    classes=int(self.__lcd_classes.value()),
    batch_size=int(self.__lcd_batch_size.value()),
    epochs=int(self.__lcd_epochs.value()),
    y_activation=str(self.__cmb_y_activation.currentText()),
    loss=str(self.__cmb_loss.currentText()),
    optimizer=str(self.__cmb_optimizer.currentText()),
    color_mode=str(self.__cmb_color_mode.currentText()),
    class_mode=str(self.__cmb_class_mode.currentText())
)
process = QProcess()
process.start(learning.run_process())
process.startDetached()
daniel
Python › threading or multiprocess
26. 8. 2020   #386521

Dobrý deň, 

programujem v pyqt5 aplikaciu a potrebujem spustit cast programu(deep learning) v inom procese alebo vlakne. 

skusam QThread, QThreadPool, QProcess, ale stale neúspešne. 

ďakujem rady.

 

 

Hostujeme u Českého hostingu       ISSN 1801-1586       ⇡ Nahoru Webtea.cz logo © 20032024 Programujte.com
Zasadilo a pěstuje Webtea.cz, šéfredaktor Lukáš Churý