Skip to content

server part runtime error with mnn #5

@justin5718

Description

@justin5718

l install the related python packages as the readme said , and run demo server code on ubuntu with 2 android devices. after device join the system and the training starts there raises an error on server part. the following is the log.

[ 2022-06-19 21:13:48 ] receive mnn model from 192.168.0.101
[ 2022-06-19 21:13:48 ] receive mnn model from 192.168.0.102
./aggregateModel.out: error while loading shared libraries: libMNN_Express.so: cannot open shared object file: No such file or directory
Exception in thread modelIndexThread:
Traceback (most recent call last):
File "/home/anaconda3/envs/fl_m/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/anaconda3/envs/fl_m/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "server.py", line 59, in model_index
f = open("../model/mnist.snapshot.mnn", "rb")
FileNotFoundError: [Errno 2] No such file or directory: '../model/mnist.snapshot.mnn'

it seems the error is realated to the mnn , the server.py line57
os.system("./aggregateModel.out ../model/ ../model/mnist.snapshot.mnn")
l guess this command creates a file mnist.snapshot.mnn but failed, in the readme there is no other docs about mnn , could you give me some advice fixxing the error, thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions