Comments (11)
@ZhengMengbin Please download the model here https://cloudstor.aarnet.edu.au/plus/s/k3ys35075jmU1RP/download.
from fcos.
I use the pre-trained model from https://cloudstor.aarnet.edu.au/plus/s/k3ys35075jmU1RP/download, but it happens an another error:
'File "tools/train_net.py", line 175, in
main()
File "tools/train_net.py", line 168, in main
model = train(cfg, args.local_rank, args.distributed)
File "tools/train_net.py", line 54, in train
extra_checkpoint_data = checkpointer.load(cfg.MODEL.WEIGHT)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/utils/checkpoint.py", line 65, in load
checkpoint = self._load_file(f)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/utils/checkpoint.py", line 138, in _load_file
return load_c2_format(self.cfg, f)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/utils/c2_model_loading.py", line 175, in load_c2_format
return C2_FORMAT_LOADER[cfg.MODEL.BACKBONE.CONV_BODY](cfg, f)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/utils/c2_model_loading.py", line 170, in load_resnet_c2_format
state_dict = _rename_weights_for_resnet(state_dict, stages)
File "/home/zhengchenbin/FcosNet/FCOS/maskrcnn_benchmark/utils/c2_model_loading.py", line 124, in _rename_weights_for_resnet
w = torch.from_numpy(v)
TypeError: expected np.ndarray (got str)'
It seems this pre-trained model do not the same model from https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/20171220/X-101-64x4d.pkl.
from fcos.
@ZhengMengbin Please add the following code
if 'weight_order' in k:
continue
to
.It will skip the key
weight_order
.from fcos.
It works, thank you very much for your reply! I will close this issue.
from fcos.
I have another question, I download the trained model FCOS_X_101_64x4d_FPN_2x, its size is only 361.5M, but I use the pre-trained model from https://cloudstor.aarnet.edu.au/plus/s/k3ys35075jmU1RP/download(the pre-trained model's size is 667.7M), the saved model's size is 687M, why is the size gap so large?
from fcos.
@ZhengMengbin We remove all solver states for our released models.
from fcos.
Is it convenient to provide a script file for removing all the solver states?
from fcos.
@ZhengMengbin We will add the script into our code when we have time. For now, you can use torch.load
to load the model and then delete what you don't want. Next, you can use torch.save
to save the pruned model.
from fcos.
OK, special thanks, I will try it.
from fcos.
I use the code as follows to remove all the solver states:
Using the above code, I got the same model size as the author.
from fcos.
@ZhengMengbin Thank you very much for posting it.
from fcos.
Related Issues (20)
- Questions about details of inference speed.
- Can I use it on CPU?
- Can we use this FCOS algorithm for counting the objects in images??
- May I ask you for a train log file?
- Which is the accuracy index in the paper?
- Error pip install git+https://github.com/tianzhi0549/FCOS.git
- use my dataset to train FCOS net,why the loss is nan? HOT 2
- Can’t calculate the Params and FLOPs of Backbone
- Testing with test dataset while training
- ValueError: Unknown CUDA arch (8.6) or GPU not supported HOT 2
- weird time consuming of FCOS head when changing the backbone
- Problem with the last line of Testing-only installation HOT 1
- Deepcopy returns TypeError: 'int' object is not callable HOT 1
- assert len(proposal_losses) == 1 and proposal_losses["zero"] == 0 # loss_dict should be empty dict
- tools/train_net.py FAILED HOT 1
- Convert onnx
- Segmentation fault (core dumped)
- gempy to load csv data
- ImportError: cannot import name '_C'
- Why regression head wasn't normalized ?
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 fcos.