You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importsubprocesscompleted_process=subprocess.run(
['modelscan', '--path', 'PyTorchModels/safe_model.pt'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True# I tried False, as well
Still getting back
"No settings file detected at C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\modelscan-settings.toml. Using defaults. \r\n\r\nScanning C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\PyTorchModels\safe_model.pt:safe_model/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\r\n\r\n--- Summary ---\r\n\r\nError generating report using modelscan.reports.ConsoleReport: 'charmap' codec can't encode character '\U0001f389' in position 18: character maps to \r\n"
The problem is that even on the command line I don't get the happy emoji:
(protectai) C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks>modelscan -p ./KerasModels/safe_model.h5
No settings file detected at C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\modelscan-settings.toml. Using defaults.
Scanning C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\KerasModels\safe_model.h5 using modelscan.scanners.H5LambdaDetectScan model scan
--- Summary ---
No issues found! ��
The text was updated successfully, but these errors were encountered:
Discussed in #97
Originally posted by davidmakovoz February 2, 2024
Running !modelscan -p ./KerasModels/safe_model.h5 cell I'm getting this error:
No settings file detected at C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\modelscan-settings.toml. Using defaults.
Scanning C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\KerasModels\safe_model.h5 using modelscan.scanners.H5LambdaDetectScan model scan
--- Summary ---
Error generating report using modelscan.reports.ConsoleReport: 'charmap' codec can't encode character '\U0001f389' in position 18: character maps to
It looks like the notebook is choking on 🎉.
I tried
and
Still getting back
"No settings file detected at C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\modelscan-settings.toml. Using defaults. \r\n\r\nScanning C:\Users\admin2\Documents\Jupyter\modelscan-main\notebooks\PyTorchModels\safe_model.pt:safe_model/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\r\n\r\n--- Summary ---\r\n\r\nError generating report using modelscan.reports.ConsoleReport: 'charmap' codec can't encode character '\U0001f389' in position 18: character maps to \r\n"
The problem is that even on the command line I don't get the happy emoji:
The text was updated successfully, but these errors were encountered: