Comments (2)
Hello,
I think the most likely explanation for the error is the way the save paths are defined. Based on your operating system you might want to modify these lines of code:
ct = datetime.now()
model_type = "DuckNet"
progress_path = 'ProgressFull/' + dataset_type + '_progress_csv_' + model_type + '_filters_' + str(filters) + '_' + str(ct) + '.csv'
progressfull_path = 'ProgressFull/' + dataset_type + '_progress_' + model_type + '_filters_' + str(filters) + '_' + str(ct) + '.txt'
plot_path = 'ProgressFull/' + dataset_type + '_progress_plot_' + model_type + '_filters_' + str(filters) + '_' + str(ct) + '.png'
model_path = 'ModelSaveTensorFlow/' + dataset_type + '/' + model_type + '_filters_' + str(filters) + '_' + str(ct)
I suggest that you try experimenting with the following:
-
First, try replacing the character ":" from the datetime with a "_", as in some cases this may be problematic. I suggest the following modification:
progress_path = './ProgressFull/' + dataset_type + '_progress_csv_' + model_type + '_filters_' + str(filters) + '_' + str(ct).replace(':', '_') + '.csv'
progressfull_path = './ProgressFull/' + dataset_type + '_progress_' + model_type + '_filters_' + str(filters) + '_' + str(ct).replace(':', '_') + '.txt'
plot_path = './ProgressFull/' + dataset_type + '_progress_plot_' + model_type + '_filters_' + str(filters) + '_' + str(ct).replace(':', '_') + '.png'
model_path = './ModelSaveTensorFlow/' + dataset_type + '/' + model_type + '_filters_' + str(filters) + '_' + str(ct).replace(':', '_') -
If the above solution doesn't work, try to change "/" into "\" or "\\", as some operating systems prefer the latter
-
Finally, if nothing else seem to work, use the "os" python library for handling the paths, you can find some online documentation on how to use it here: https://docs.python.org/3/library/os.html
I hope this helps!
from duck-net.
Thank you Sir, modification according to your method can run perfectly on Windows 11, it is very helpful for beginners like me, thank you again!
from duck-net.
Related Issues (14)
- Good jobs here! HOT 1
- result HOT 7
- module 'cv2' has no attribute 'CV_8U'
- Widescope HOT 1
- Pytorch implementation HOT 4
- library dependency HOT 2
- A question about the details of network training HOT 6
- ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() HOT 6
- Trained weights? HOT 1
- loss is always 1 HOT 3
- Unable to Access Test Dataset HOT 1
- Model training HOT 4
- Qualitative results HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duck-net.