dotnet / dotnet/machinelearning-modelbuilder
ModelBuilder- Fail to Install Runtime Error
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Dockerfile
- Sterne
- 285
- Forks
- 66
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
- Model Builder Version : 17.19.1.2460201
- Visual Studio Version:17.12.4
**Bug Description: **
Model Builder throws a "Fail to install runtime error when the Train button is clicked.
We note the error only occurs when the folder to which the file tensorflow.gpu.pdb file has an apostrophe in it.
**Steps to reproduce the behavior:**
1. Create a VS2022 Class Library project
2. Add a Machine Learning Model (.mbconfig) to the project and configure as follows:
3. Select the Image Classification Scenario
4. Select Local GPU as the Environment and confirm GPU Compatibility
5. Add Data and check the Data Preview
6. Commence Training by click on the Train button
**Expected behavior:**
We would expect training to commence and complete with the Traing Complete tick and a Training Results summary.
However, we get the following error: PLEASE NOTE THE APOSTROPHE IN THE USERS FOLDER NAME
**Error:**
restore "c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\pee5r3yg.zb0\AutoMLService\RuntimeManager\tensorflow.gpu.csproj" --configfile "c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\pee5r3yg.zb0\AutoMLService\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.103.1 /p:TorchSharpCudaRuntimeVersion=2.4.0 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\obj"
publish "c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\pee5r3yg.zb0\AutoMLService\RuntimeManager\tensorflow.gpu.csproj" -r win-x64 -c Release --no-self-contained -o "C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1" --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.103.1 /p:TorchSharpCudaRuntimeVersion=2.4.0 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\bin\\" /p:BaseIntermediateOutputPath="C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\obj\\"
start installing runtime in C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1
Determining projects to restore...
All projects are up-to-date for restore.
tensorflow.gpu -> C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\bin\Release\netstandard2.0\win-x64\tensorflow.gpu.dll
C:\Program Files\dotnet\sdk\9.0.102\Microsoft.Common.CurrentVersion.targets(4925,5): error MSB3021: Unable to copy file "C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\obj\Release\netstandard2.0\win-x64\tensorflow.gpu.pdb" to "@(_DebugSymbolsIntermediatePath->'C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\bin\Release\netstandard2.0\win-x64\%(Filename)%(Extension)')". The filename, directory name, or volume label syntax is incorrect. : 'c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\pee5r3yg.zb0\AutoMLService\RuntimeManager\@(_DebugSymbolsIntermediatePath->'C:\Users\Bruce D'Angello\AppData\Local\ModelBuilder\tensorflow-cuda.2.3.1\bin\Release\netstandard2.0\win-x64'. [c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\pee5r3yg.zb0\AutoMLService\RuntimeManager\tensorflow.gpu.csproj]
**Screenshots:**




**Additional context:**
As mentioned running the running the project with no apostrophe in the logged on user name works successfully.
Is there a way we can configure the output path.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Untersuchung des im Fehler angezeigten Aufrufs von RuntimeManager/tensorflow.gpu.csproj und reproduziere die Laufzeitinstallation mit einem Apostroph im Benutzerpfad. Die Behebung ist abgeschlossen, wenn der Trainingsablauf für Image Classification die Laufzeit installiert und das Ergebnis Training Complete ohne den MSB3021-Pfadfehler erreicht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, tensorflow
- Bereich
- build-system, machine-learning
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100