Comments (6)
Hi, i didn't meet this error before, could you try run rm -rf /mnt/lustre/gengruoxin/LibFewShot-main/results/SKDModel-miniimagenet-Conv64F-5-1
via bash-compatible shells?
PS: It would be better if you could upload/paste your logs or shell outputs in text format.
from libfewshot.
Hi, i didn't meet this error before, could you try run
rm -rf /mnt/lustre/gengruoxin/LibFewShot-main/results/SKDModel-miniimagenet-Conv64F-5-1
via bash-compatible shells?PS: It would be better if you could upload/paste your logs or shell outputs in text format.
It didn't work. And I have checked that the file doesn't exist when I run the script.
The error message is pasted:
Traceback (most recent call last):
File "/mnt/lustre/gengruoxin/LibFewShot-main/core/utils/utils.py", line 154, in force_symlink
os.symlink(source, symlink)
FileExistsError: [Errno 17] File exists: 'SKDModel-miniimagenet-Conv64F-5-1-Oct-25-2021-17-54-12' -> '/mnt/lustre/gengruoxin/LibFewShot-main/results/SKDModel-miniimagenet-Conv64F-5-1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_skd.py", line 14, in
trainer = Trainer(config)
File "/mnt/lustre/gengruoxin/LibFewShot-main/core/trainer.py", line 46, in init
) = self._init_files(config)
File "/mnt/lustre/gengruoxin/LibFewShot-main/core/trainer.py", line 276, in _init_files
force_symlink(result_dir, symlink_path)
File "/mnt/lustre/gengruoxin/LibFewShot-main/core/utils/utils.py", line 157, in force_symlink
os.remove(symlink)
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/lustre/gengruoxin/LibFewShot-main/results/SKDModel-miniimagenet-Conv64F-5-1'
from libfewshot.
We can't reproduce this error till now, can you upload/paste your config file and the outputs of the shell command ls -alh /mnt/lustre/gengruoxin/LibFewShot-main/results | grep SKD
?
from libfewshot.
Hi, you can just comment line 299 and line 307 in core/trainer.py
for a temporary solution.
We will try our best to fix this asap.
from libfewshot.
We can't reproduce this error till now, can you upload/paste your config file and the outputs of the shell command
ls -alh /mnt/lustre/gengruoxin/LibFewShot-main/results | grep SKD
?
Sometimes the error didn't happen.
$ ls -alh /mnt/lustre/gengruoxin/LibFewShot-main/results | grep SKD
lrwxrwxrwx 1 gengruoxin gengruoxin 54 Oct 27 10:41 SKDModel-miniimagenet-Conv64F-5-1 -> SKDModel-miniimagenet-Conv64F-5-1-Oct-27-2021-10-41-14
drwxrwxr-x 4 gengruoxin gengruoxin 4.0K Oct 27 10:41 SKDModel-miniimagenet-Conv64F-5-1-Oct-27-2021-10-41-14
lrwxrwxrwx 1 gengruoxin gengruoxin 54 Oct 27 15:14 SKDModel-miniimagenet-Conv64F-5-5 -> SKDModel-miniimagenet-Conv64F-5-5-Oct-27-2021-15-14-45
drwxrwxr-x 4 gengruoxin gengruoxin 4.0K Oct 27 15:14 SKDModel-miniimagenet-Conv64F-5-5-Oct-27-2021-15-14-45
lrwxrwxrwx 1 gengruoxin gengruoxin 55 Oct 27 15:28 SKDModel-miniimagenet-resnet12-5-1 -> SKDModel-miniimagenet-resnet12-5-1-Oct-27-2021-15-28-43
drwxrwxr-x 4 gengruoxin gengruoxin 4.0K Oct 27 15:28 SKDModel-miniimagenet-resnet12-5-1-Oct-27-2021-15-28-43
And this is the config file for SKD:
includes:
- headers/data.yaml
- headers/device.yaml
- headers/misc.yaml
- headers/model.yaml
- headers/optimizer.yaml
- classifiers/SKD.yaml
- backbones/Conv64F.yaml
device_ids: 0
way_num: 5
shot_num: 5
query_num: 15
episode_size: 1
train_episode: 100
test_episode: 100
batch_size: 32
save_part:
- emb_func
- cls_classifier
classifier:
name: SKDModel
kwargs:
feat_dim: 1600
num_class: 64
gamma: 1.0
alpha: 0.1
is_distill: False
backbone:
name: Conv64F
kwargs:
is_flatten: True
is_feature: False
leaky_relu: False
negative_slope: 0.2
last_pool: True
maxpool_last2: True
from libfewshot.
Hi, we think it may be caused by uncertain behaviors of the OS or file system, we will never create the symlink file after
commit b050c06, you can pull the newest codes to avoid this error.
Feel free to reopen this issue if you meet this error again.
from libfewshot.
Related Issues (20)
- verbose HOT 6
- hyperspectral images HOT 1
- How to set syncbn in this codebase HOT 1
- CUB Dataset issue HOT 1
- Suggest to support Semi-supervised and Unsupervised FSL method in the future HOT 1
- 你好,config/headers下面是不是没有losses.yaml文件 HOT 1
- Protonet HOT 3
- TypeError: __init__() missing 1 required positional argument: 'config' HOT 3
- 自己的单个数据是二维的 及类别 可以使用few shot 分类吗? HOT 3
- Questions about using the given dataset for training(such as miniImagenet) and using my own dataset for testing! HOT 5
- LibFewShot学习使用过程中的一些困惑。 HOT 1
- turn off test during training HOT 2
- Very amazing work. But loses.yaml is missing under config/headers! HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: './config/backbones/Conv64FLeakyReLU.yaml' HOT 3
- 在miniImageNet数据集上运行RENet等报错 HOT 9
- 请问目前Libfewshot支持几种数据集?谢谢 HOT 1
- device_ids is setted as 1, but it still runs on gpu 0? HOT 1
- I config as this yaml file './reproduce/RENet/RENet-miniImageNet--ravi-Conv64F-5-5-Table2.yaml'. It runs with errors as below. HOT 2
- Exact usage of 'way num' and 'test way' HOT 1
- DeepBDC方法咨询 HOT 14
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 libfewshot.